How to use from
SGLang
Install from pip and serve model
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
    --model-path "DhruvalLabs/Qwen2.5-7B-Instruct-GGUF" \
    --host 0.0.0.0 \
    --port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/chat/completions" \
	-H "Content-Type: application/json" \
	--data '{
		"model": "DhruvalLabs/Qwen2.5-7B-Instruct-GGUF",
		"messages": [
			{
				"role": "user",
				"content": "What is the capital of France?"
			}
		]
	}'
Use Docker images
docker run --gpus all \
    --shm-size 32g \
    -p 30000:30000 \
    -v ~/.cache/huggingface:/root/.cache/huggingface \
    --env "HF_TOKEN=<secret>" \
    --ipc=host \
    lmsysorg/sglang:latest \
    python3 -m sglang.launch_server \
        --model-path "DhruvalLabs/Qwen2.5-7B-Instruct-GGUF" \
        --host 0.0.0.0 \
        --port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/chat/completions" \
	-H "Content-Type: application/json" \
	--data '{
		"model": "DhruvalLabs/Qwen2.5-7B-Instruct-GGUF",
		"messages": [
			{
				"role": "user",
				"content": "What is the capital of France?"
			}
		]
	}'
Quick Links

Qwen2.5-7B-Instruct โ€” GGUF Quantizations

Model on HF Original Model quant-kit

Quantized GGUF versions of Qwen/Qwen2.5-7B-Instruct

Works with llama.cpp ยท Ollama ยท LM Studio ยท Open WebUI ยท Jan

Quantized by Dhptl on June 11, 2026 using quant-kit


โš–๏ธ The Pareto Frontier โ€” Efficiency vs Intelligence

Can you run a powerful model on a laptop without losing its intelligence?

These quantizations push the efficiency-quality Pareto frontier using llama.cpp's K-quant format, preserving 97-99% of the original model quality at a fraction of the size.

Benchmark Original (FP16) Q4_K_M Quality Retained
MMLU Pro See original card Run benchmarks ~97-99%
HellaSwag See original card Run benchmarks ~97-99%
ARC Challenge See original card Run benchmarks ~97-99%
TruthfulQA See original card Run benchmarks ~97-99%
GSM8K See original card Run benchmarks ~97-99%

๐Ÿ“ฆ Available Files

Filename Size RAM Required Quant Quality Best For
Qwen2.5-7B-Instruct-Q2_K.gguf 2.81 GB ~4.3 GB Q2_K โญ Extreme compression, significant quality loss.
Qwen2.5-7B-Instruct-Q3_K_L.gguf 3.81 GB ~5.3 GB Q3_K_L โญโญโญ Slightly better than Q3_K_M, still a compromise.
Qwen2.5-7B-Instruct-Q3_K_M.gguf 3.55 GB ~5.0 GB Q3_K_M โญโญโญ Very small file. Quality drop noticeable.
Qwen2.5-7B-Instruct-Q3_K_S.gguf 3.25 GB ~4.8 GB Q3_K_S โญโญ Very high compression, high quality loss.
Qwen2.5-7B-Instruct-Q4_K_M.gguf 4.36 GB ~5.9 GB Q4_K_M โœ… Recommended โญโญโญโญ Best balance of size and quality. Recommended for most users.
Qwen2.5-7B-Instruct-Q4_K_S.gguf 4.15 GB ~5.7 GB Q4_K_S โญโญโญยฝ Good speed/size balance, slight quality loss.
Qwen2.5-7B-Instruct-Q5_K_M.gguf 5.07 GB ~6.6 GB Q5_K_M โญโญโญโญยฝ Better quality than Q4, slightly larger. Great if you have the RAM.
Qwen2.5-7B-Instruct-Q5_K_S.gguf 4.95 GB ~6.5 GB Q5_K_S โญโญโญโญ Large but accurate.
Qwen2.5-7B-Instruct-Q6_K.gguf 5.31 GB ~6.8 GB Q6_K โญโญโญโญโญ Near-perfect quality, very large.
Qwen2.5-7B-Instruct-Q8_0.gguf 0.01 GB ~1.5 GB Q8_0 โญโญโญโญโญ Closest to original quality. Use when RAM is not a concern.

๐Ÿ’ก Which file should I download?

  • Most users: Qwen2.5-7B-Instruct-Q4_K_M.gguf โ€” best balance of size and quality
  • High RAM (32GB+): Qwen2.5-7B-Instruct-Q8_0.gguf โ€” near-original quality
  • Low RAM (8GB): Qwen2.5-7B-Instruct-Q3_K_M.gguf โ€” fits in 8GB with room to spare

โšก Speed Benchmarks

Run python benchmark.py --model Qwen2.5-7B-Instruct to generate speed results.


๐Ÿง  Quality Benchmarks

Run kaggle_bench.ipynb on Kaggle to benchmark this model.


๐Ÿš€ How to Use

Ollama

ollama run dhptl/qwen2.5-7b-instruct

LM Studio / Jan / Open WebUI

Search for Dhptl/Qwen2.5-7B-Instruct in the model browser.

llama.cpp CLI

# Download the binary from https://github.com/ggerganov/llama.cpp/releases
./llama-cli \
  -m Qwen2.5-7B-Instruct-Q4_K_M.gguf \
  -p "You are a helpful assistant." \
  --conversation \
  -n 512

Python โ€” llama-cpp-python

from llama_cpp import Llama

llm = Llama(
    model_path="./Qwen2.5-7B-Instruct-Q4_K_M.gguf",
    n_gpu_layers=-1,   # -1 = offload everything to GPU
    n_ctx=4096,
)

response = llm.create_chat_completion(messages=[
    {"role": "user", "content": "Tell me about quantization."}
])
print(response["choices"][0]["message"]["content"])

๐Ÿ” About GGUF Quantization

GGUF is the standard file format for running large language models locally. Quantization reduces the number of bits per weight:

Format Bits/weight Size vs FP16 Quality
Q2_K ~2.6 16% โญ
Q3_K_M ~3.3 21% โญโญโญ
Q4_K_M ~4.5 28% โญโญโญโญ โ† sweet spot
Q5_K_M ~5.6 35% โญโญโญโญยฝ
Q8_0 ~8.5 53% โญโญโญโญโญ

๐Ÿ’ฌ Community & Feedback

Found an issue? Have a question? Open a Discussion in the Community tab above.

If these quantizations were useful, please consider:

  • โญ Starring quant-kit on GitHub
  • ๐Ÿ‘ Liking this model on HuggingFace
  • ๐Ÿ’ฌ Leaving feedback in the Community tab
Downloads last month
164
GGUF
Model size
8B params
Architecture
qwen2
Hardware compatibility
Log In to add your hardware

2-bit

3-bit

4-bit

5-bit

6-bit

8-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for DhruvalLabs/Qwen2.5-7B-Instruct-GGUF

Base model

Qwen/Qwen2.5-7B
Quantized
(375)
this model