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 "prithivMLmods/Qwen3-4B-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": "prithivMLmods/Qwen3-4B-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 "prithivMLmods/Qwen3-4B-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": "prithivMLmods/Qwen3-4B-GGUF",
		"messages": [
			{
				"role": "user",
				"content": "What is the capital of France?"
			}
		]
	}'
Quick Links

Qwen3-4B-GGUF

Qwen3 is the latest generation of large language models in Qwen series, offering a comprehensive suite of dense and mixture-of-experts (MoE) models. Built upon extensive training, Qwen3 delivers groundbreaking advancements in reasoning, instruction-following, agent capabilities, and multilingual support

Model Files

File Name Size Quantization Format Description
Qwen3_4B.F32.gguf 16.1 GB FP32 GGUF Full precision (float32) version
Qwen3_4B.BF16.gguf 8.05 GB BF16 GGUF BFloat16 precision version
Qwen3_4B.F16.gguf 8.05 GB FP16 GGUF Float16 precision version
Qwen3_4B.Q3_K_M.gguf 2.08 GB Q3_K_M GGUF 3-bit quantized (K M variant)
Qwen3_4B.Q3_K_S.gguf 1.89 GB Q3_K_S GGUF 3-bit quantized (K S variant)
Qwen3_4B.Q4_K_M.gguf 2.5 GB Q4_K_M GGUF 4-bit quantized (K M variant)
Qwen3_4B.Q4_K_S.gguf 2.38 GB Q4_K_S GGUF 4-bit quantized (K S variant)
Qwen3_4B.Q5_K_M.gguf 2.89 GB Q5_K_M GGUF 5-bit quantized (K M variant)
Qwen3_4B.Q8_0.gguf 4.28 GB Q8_0 GGUF 8-bit quantized
.gitattributes 2.02 kB Git LFS tracking file
config.json 31 B Configuration placeholder
README.md 3.6 kB Model documentation

Quants Usage

(sorted by size, not necessarily quality. IQ-quants are often preferable over similar sized non-IQ quants)

Link Type Size/GB Notes
GGUF Q2_K 0.4
GGUF Q3_K_S 0.5
GGUF Q3_K_M 0.5 lower quality
GGUF Q3_K_L 0.5
GGUF IQ4_XS 0.6
GGUF Q4_K_S 0.6 fast, recommended
GGUF Q4_K_M 0.6 fast, recommended
GGUF Q5_K_S 0.6
GGUF Q5_K_M 0.7
GGUF Q6_K 0.7 very good quality
GGUF Q8_0 0.9 fast, best quality
GGUF f16 1.6 16 bpw, overkill

Here is a handy graph by ikawrakow comparing some lower-quality quant types (lower is better):

image.png

Downloads last month
323
GGUF
Model size
4B params
Architecture
qwen3
Hardware compatibility
Log In to add your hardware

3-bit

4-bit

5-bit

8-bit

16-bit

32-bit

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

Model tree for prithivMLmods/Qwen3-4B-GGUF

Finetuned
Qwen/Qwen3-4B
Quantized
(282)
this model

Collection including prithivMLmods/Qwen3-4B-GGUF