How to use from
llama.cpp
Install from brew
brew install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama-server -hf TurkishCodeMan/Qwen2.5-3B-Instruct-Q4_K_M-GGUF:Q4_K_M
# Run inference directly in the terminal:
llama-cli -hf TurkishCodeMan/Qwen2.5-3B-Instruct-Q4_K_M-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama-server -hf TurkishCodeMan/Qwen2.5-3B-Instruct-Q4_K_M-GGUF:Q4_K_M
# Run inference directly in the terminal:
llama-cli -hf TurkishCodeMan/Qwen2.5-3B-Instruct-Q4_K_M-GGUF:Q4_K_M
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 TurkishCodeMan/Qwen2.5-3B-Instruct-Q4_K_M-GGUF:Q4_K_M
# Run inference directly in the terminal:
./llama-cli -hf TurkishCodeMan/Qwen2.5-3B-Instruct-Q4_K_M-GGUF:Q4_K_M
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 TurkishCodeMan/Qwen2.5-3B-Instruct-Q4_K_M-GGUF:Q4_K_M
# Run inference directly in the terminal:
./build/bin/llama-cli -hf TurkishCodeMan/Qwen2.5-3B-Instruct-Q4_K_M-GGUF:Q4_K_M
Use Docker
docker model run hf.co/TurkishCodeMan/Qwen2.5-3B-Instruct-Q4_K_M-GGUF:Q4_K_M
Quick Links

Qwen2.5-3B-Instruct-Q4_K_M-GGUF

GGUF quantized version of Qwen2.5-3B-Instruct for mobile and edge deployment.

Model Details

  • Base Model: Qwen/Qwen2.5-3B-Instruct
  • Quantization: Q4_K_M (4-bit quantization with K-quants)
  • File Size: ~1.8 GB
  • Format: GGUF

Usage

With llama.cpp

./llama-cli -m Qwen2.5-3B-Instruct-Q4_K_M.gguf -p "Hello, how are you?"

With llama.swiftui (iOS)

This model is optimized for running on iOS devices using the llama.swiftui app.

  1. Download the model
  2. Copy to app's Documents folder
  3. Load and chat!

Chat Template

<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
{user_message}<|im_end|>
<|im_start|>assistant

Performance

Device Tokens/sec
iPhone 15 Pro ~15-25 t/s
iPhone 14 ~10-15 t/s
M1 Mac ~30-50 t/s

License

Apache 2.0 (following the base model license)

Credits

  • Original model by Qwen Team
  • Quantization and mobile optimization by TurkishCodeMan
Downloads last month
29
GGUF
Model size
3B params
Architecture
qwen2
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for TurkishCodeMan/Qwen2.5-3B-Instruct-Q4_K_M-GGUF

Base model

Qwen/Qwen2.5-3B
Quantized
(224)
this model