CoolFace
Modelpublic

prithivMLmods/QwQ-LCoT-3B-Instruct

sourceHugging Facecreativeml-openrail-mupdated 2y agoView on Hugging Face
5likes40downloads
Model Card

QwQ-LCoT-3B-Instruct Model Card

The QwQ-LCoT-3B-Instruct model is a lightweight, instruction-tuned language model designed for complex reasoning and explanation tasks. It is fine-tuned on the Qwen2.5-3B-Instruct base model using the QwQ-LongCoT-130K dataset, focusing on long-chain-of-thought (LCoT) reasoning for enhanced logical comprehension and detailed output generation.

**File Name****Size****Description****Upload Status**
.gitattributes1.57 kBSpecifies LFS tracking for large files.Uploaded
README.md267 BytesBasic project information file.Updated
added_tokens.json657 BytesCustom tokens added to the tokenizer.Uploaded
config.json859 BytesConfiguration file for the model.Uploaded
generation_config.json281 BytesConfiguration file for text generation settings.Uploaded
merges.txt1.82 MBContains the byte-pair encoding (BPE) merges.Uploaded
pytorch_model-00001-of-00002.bin4.96 GBFirst shard of the model weights in PyTorch format.Uploaded (LFS)
pytorch_model-00002-of-00002.bin1.21 GBSecond shard of the model weights in PyTorch format.Uploaded (LFS)
pytorch_model.bin.index.json36 kBIndex mapping for sharded model weights.Uploaded
special_tokens_map.json644 BytesMaps special tokens to their roles.Uploaded
tokenizer.json11.4 MBSerialized tokenizer data.Uploaded (LFS)
tokenizer_config.json7.73 kBTokenizer configuration settings.Uploaded
vocab.json2.78 MBVocabulary file for the tokenizer.Uploaded

Sample Long CoT:

Screenshot 2024-12-13 211732.png

Key Features:

  1. 1.Long Chain-of-Thought Reasoning:
  2. 2.Specifically designed to generate comprehensive, step-by-step explanations for complex queries.
  1. 1.Lightweight and Efficient:
  2. 2.With only 3 billion parameters, it is optimized for systems with limited computational resources without compromising reasoning capabilities.
  1. 1.Instruction Optimization:
  2. 2.Fine-tuned to follow prompts and provide concise, actionable, and structured responses.

Training Details:

Capabilities:

  1. 1.Text Generation:
  2. 2.Provides detailed, structured, and logical text outputs tailored to user prompts.
  1. 1.Reasoning Tasks:
  2. 2.Solves step-by-step problems in math, logic, and science.
  1. 1.Educational Assistance:
  2. 2.Generates coherent explanations for academic and research purposes.
  1. 1.Dialogue and Summarization:
  2. 2.Handles conversational queries and summarizes long documents effectively.

Usage Instructions:

  1. 1.Setup: Download all model files and ensure compatibility with the Hugging Face Transformers library.
  1. 1.Loading the Model:
python
   from transformers import AutoModelForCausalLM, AutoTokenizer
   
   model_name = "prithivMLmods/QwQ-LCoT-3B-Instruct"
   tokenizer = AutoTokenizer.from_pretrained(model_name)
   model = AutoModelForCausalLM.from_pretrained(model_name)
  1. 1.Generate Long-Chain Reasoning Outputs:
python
   input_text = "Explain the process of photosynthesis step-by-step."
   inputs = tokenizer(input_text, return_tensors="pt")
   outputs = model.generate(**inputs, max_length=300, temperature=0.5)
   print(tokenizer.decode(outputs[0], skip_special_tokens=True))
  1. 1.Customize Output Generation: Modify the generation_config.json file for different scenarios:
  2. 2.`temperature`: Controls randomness (lower = deterministic, higher = creative).
  3. 3.`max_length`: Sets response length.
  4. 4.`top_p`: Adjusts sampling for diversity in outputs.