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

Produced by Antigma Labs, Antigma Quantize Space

Follow Antigma Labs in X https://x.com/antigma_labs

Antigma's GitHub Homepage https://github.com/AntigmaLabs

llama.cpp quantization

Using llama.cpp release b5215 for quantization. Original model: https://huggingface.co/Qwen/Qwen3-4B Run them directly with llama.cpp, or any other llama.cpp based project

Prompt format

<๏ฝœbeginโ–ofโ–sentence๏ฝœ>{system_prompt}<๏ฝœUser๏ฝœ>{prompt}<๏ฝœAssistant๏ฝœ><๏ฝœendโ–ofโ–sentence๏ฝœ><๏ฝœAssistant๏ฝœ>

Download a file (not the whole branch) from below:

Filename Quant type File Size Split
qwen3-4b-q4_k_m.gguf Q4_K_M 2.33 GB False
qwen3-4b-q4_0.gguf Q4_0 2.21 GB False
qwen3-4b-q4_k_s.gguf Q4_K_S 2.22 GB False

Downloading using huggingface-cli

Click to view download instructions First, make sure you have hugginface-cli installed:
pip install -U "huggingface_hub[cli]"

Then, you can target the specific file you want:

huggingface-cli download https://huggingface.co/Antigma/Qwen3-4B-GGUF --include "qwen3-4b-q4_k_m.gguf" --local-dir ./

If the model is bigger than 50GB, it will have been split into multiple files. In order to download them all to a local folder, run:

huggingface-cli download https://huggingface.co/Antigma/Qwen3-4B-GGUF --include "qwen3-4b-q4_k_m.gguf/*" --local-dir ./

You can either specify a new local-dir (deepseek-ai_DeepSeek-V3-0324-Q8_0) or download them all in place (./)

Downloads last month
30
GGUF
Model size
4B params
Architecture
qwen3
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 Antigma/Qwen3-4B-GGUF

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