Instructions to use Vinitha2004/qwen2.5-coder-3b-instruct-awq-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Vinitha2004/qwen2.5-coder-3b-instruct-awq-gguf with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Vinitha2004/qwen2.5-coder-3b-instruct-awq-gguf with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf Vinitha2004/qwen2.5-coder-3b-instruct-awq-gguf:F16 # Run inference directly in the terminal: llama cli -hf Vinitha2004/qwen2.5-coder-3b-instruct-awq-gguf:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Vinitha2004/qwen2.5-coder-3b-instruct-awq-gguf:F16 # Run inference directly in the terminal: llama cli -hf Vinitha2004/qwen2.5-coder-3b-instruct-awq-gguf:F16
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf Vinitha2004/qwen2.5-coder-3b-instruct-awq-gguf:F16 # Run inference directly in the terminal: ./llama-cli -hf Vinitha2004/qwen2.5-coder-3b-instruct-awq-gguf:F16
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf Vinitha2004/qwen2.5-coder-3b-instruct-awq-gguf:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf Vinitha2004/qwen2.5-coder-3b-instruct-awq-gguf:F16
Use Docker
docker model run hf.co/Vinitha2004/qwen2.5-coder-3b-instruct-awq-gguf:F16
- LM Studio
- Jan
- Ollama
How to use Vinitha2004/qwen2.5-coder-3b-instruct-awq-gguf with Ollama:
ollama run hf.co/Vinitha2004/qwen2.5-coder-3b-instruct-awq-gguf:F16
- Unsloth Studio
How to use Vinitha2004/qwen2.5-coder-3b-instruct-awq-gguf with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Vinitha2004/qwen2.5-coder-3b-instruct-awq-gguf to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Vinitha2004/qwen2.5-coder-3b-instruct-awq-gguf to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Vinitha2004/qwen2.5-coder-3b-instruct-awq-gguf to start chatting
- Docker Model Runner
How to use Vinitha2004/qwen2.5-coder-3b-instruct-awq-gguf with Docker Model Runner:
docker model run hf.co/Vinitha2004/qwen2.5-coder-3b-instruct-awq-gguf:F16
- Lemonade
How to use Vinitha2004/qwen2.5-coder-3b-instruct-awq-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Vinitha2004/qwen2.5-coder-3b-instruct-awq-gguf:F16
Run and chat with the model
lemonade run user.qwen2.5-coder-3b-instruct-awq-gguf-F16
List all available models
lemonade list
- Atomic Chat
Qwen2.5-Coder-3B Distilled Model
This is a knowledge-distilled version of Qwen2.5-Coder-3B-Instruct-AWQ, trained using knowledge distillation from Qwen2.5-Coder-7B-Instruct-AWQ.
Model Details
- Base Model: Qwen/Qwen2.5-Coder-3B-Instruct-AWQ
- Teacher Model: Qwen/Qwen2.5-Coder-7B-Instruct-AWQ
- Training Method: Knowledge Distillation with LoRA
- Best Validation Loss: 1.9286
- Training Time: ~5 minutes
- Parameters Trained: 14.9M (4.59% of base model)
Training Configuration
- Temperature: 2.0 (optimal)
- Alpha: 0.95 (95% distillation weight)
- LoRA Rank: 8
- Target Modules: q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj
Usage
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel
# Load base model and tokenizer
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-Coder-3B-Instruct-AWQ",
torch_dtype=torch.float16,
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen2.5-Coder-3B-Instruct-AWQ")
# Load distilled adapter
model = PeftModel.from_pretrained(base_model, "Vinitha2004/qwen2.5-coder-3b-instruct-awq-gguf")
# Generate code
input_text = "Original Code:\ndef add(a, b):\n return a + b\n\nUpdate Snippet:\n// ... existing code ...\ndef add(a: int, b: int) -> int:\n// ... existing code ...\n\nUpdated Code:\n"
inputs = tokenizer(input_text, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=100)
result = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(result)
Performance
This distilled model retains the knowledge from the 7B teacher model while being significantly more efficient:
- Faster inference (3B vs 7B parameters)
- Lower memory usage
- Maintained code generation quality
Training Dataset
Trained on 5000 code editing examples from custom dataset.
Files
adapter_config.json: LoRA configurationadapter_model.safetensors: Trained LoRA weights (59MB)- Other standard tokenizer files
- Downloads last month
- 51
4-bit
5-bit
8-bit
16-bit
Model tree for Vinitha2004/qwen2.5-coder-3b-instruct-awq-gguf
Base model
Qwen/Qwen2.5-3B