How to use from
Lemonade
Pull the model
# Download Lemonade from https://lemonade-server.ai/
lemonade pull Hariharan05/Qwen3-1.7B-Distill-Claude:Q4_K_M
Run and chat with the model
lemonade run user.Qwen3-1.7B-Distill-Claude-Q4_K_M
List all available models
lemonade list
Quick Links

Qwen3-1.7B-Distill-Claude

This is a fine-tuned version of the Qwen/Qwen3-1.7B model, trained to follow instructions and generate high-quality responses using a distilled Claude-Alpaca dataset.

This model was trained using EasyFineTuner and Unsloth for 2x faster training and optimized memory usage. It is provided in lightweight GGUF formats (q4_k_m and q5_k_m) for seamless local inference.

📊 Model Details

  • Base Model: Qwen/Qwen3-1.7B
  • Architecture: Causal LM
  • Parameters: 1.7 Billion
  • Trainable Parameters: 17,432,576 (LoRA)
  • Format: GGUF & LoRA Adapters

📚 Dataset Information

The model was trained on a high-quality blend of 30,000 instruction-following examples:

  • Norquinal/WizardLM_alpaca_claude_evol_instruct_70k (25,000 examples)
  • AlSamCur123/Alpaca (5,000 examples)

Dataset Statistics:

  • Total Training Examples: 28,500
  • Total Validation Examples: 1,500
  • Average Sequence Length: 139 tokens
  • Max Sequence Length Used: 1024 tokens

⚙️ Training Configuration

The model was fine-tuned using Low-Rank Adaptation (LoRA) with the following hyperparameters:

  • Epochs: 1
  • Learning Rate: 2.0e-04
  • Batch Size: 4
  • Gradient Accumulation Steps: 4 (Total Effective Batch Size: 32)
  • LoRA Rank (r): 16
  • LoRA Alpha: 64
  • Warmup Steps: 100
  • Weight Decay: 0.01
  • Optimizer: AdamW

Performance:

  • Final Training Loss: 1.1782
  • Training Time: ~3.3 hours on a single Tesla T4 GPU

💻 Usage (Local Inference)

You can run this model locally using Ollama or llama.cpp.

Using Ollama

Create a Modelfile with the following content:

FROM ./Qwen3-1.5B-Distill-Claudeq4_k_m.gguf
TEMPLATE \"\"\"<|im_start|>system
You are a helpful AI assistant trained to assist with coding questions, explain technical concepts, and engage in friendly conversation. Be concise but thorough in your explanations.<|im_start|>user
{{ .Prompt }}<|im_start|>assistant
\"\"\"
PARAMETER temperature 0.7
PARAMETER top_p 0.9
PARAMETER stop "<|im_end|>"
PARAMETER stop "<|endoftext|>"

Quick start

from transformers import pipeline

question = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"
generator = pipeline("text-generation", model="None", device="cuda")
output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
print(output["generated_text"])

Training procedure

This model was trained with SFT.

Framework versions

  • PEFT 0.18.1
  • TRL: 0.23.0
  • Transformers: 4.56.2
  • Pytorch: 2.10.0+cu128
  • Datasets: 4.3.0
  • Tokenizers: 0.22.2
Downloads last month
53
Safetensors
Model size
2B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for Hariharan05/Qwen3-1.7B-Distill-Claude

Finetuned
Qwen/Qwen3-1.7B
Adapter
(563)
this model

Datasets used to train Hariharan05/Qwen3-1.7B-Distill-Claude