Instructions to use sh111111111111111/Qwen3-4B-Instruct-2507-BitClass-MX1-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use sh111111111111111/Qwen3-4B-Instruct-2507-BitClass-MX1-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 sh111111111111111/Qwen3-4B-Instruct-2507-BitClass-MX1-GGUF:Q3_K_S # Run inference directly in the terminal: llama cli -hf sh111111111111111/Qwen3-4B-Instruct-2507-BitClass-MX1-GGUF:Q3_K_S
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf sh111111111111111/Qwen3-4B-Instruct-2507-BitClass-MX1-GGUF:Q3_K_S # Run inference directly in the terminal: llama cli -hf sh111111111111111/Qwen3-4B-Instruct-2507-BitClass-MX1-GGUF:Q3_K_S
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 sh111111111111111/Qwen3-4B-Instruct-2507-BitClass-MX1-GGUF:Q3_K_S # Run inference directly in the terminal: ./llama-cli -hf sh111111111111111/Qwen3-4B-Instruct-2507-BitClass-MX1-GGUF:Q3_K_S
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 sh111111111111111/Qwen3-4B-Instruct-2507-BitClass-MX1-GGUF:Q3_K_S # Run inference directly in the terminal: ./build/bin/llama-cli -hf sh111111111111111/Qwen3-4B-Instruct-2507-BitClass-MX1-GGUF:Q3_K_S
Use Docker
docker model run hf.co/sh111111111111111/Qwen3-4B-Instruct-2507-BitClass-MX1-GGUF:Q3_K_S
- LM Studio
- Jan
- vLLM
How to use sh111111111111111/Qwen3-4B-Instruct-2507-BitClass-MX1-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "sh111111111111111/Qwen3-4B-Instruct-2507-BitClass-MX1-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "sh111111111111111/Qwen3-4B-Instruct-2507-BitClass-MX1-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/sh111111111111111/Qwen3-4B-Instruct-2507-BitClass-MX1-GGUF:Q3_K_S
- Ollama
How to use sh111111111111111/Qwen3-4B-Instruct-2507-BitClass-MX1-GGUF with Ollama:
ollama run hf.co/sh111111111111111/Qwen3-4B-Instruct-2507-BitClass-MX1-GGUF:Q3_K_S
- Unsloth Desktop
- Pi
How to use sh111111111111111/Qwen3-4B-Instruct-2507-BitClass-MX1-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf sh111111111111111/Qwen3-4B-Instruct-2507-BitClass-MX1-GGUF:Q3_K_S
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "sh111111111111111/Qwen3-4B-Instruct-2507-BitClass-MX1-GGUF:Q3_K_S" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use sh111111111111111/Qwen3-4B-Instruct-2507-BitClass-MX1-GGUF with Docker Model Runner:
docker model run hf.co/sh111111111111111/Qwen3-4B-Instruct-2507-BitClass-MX1-GGUF:Q3_K_S
- Lemonade
How to use sh111111111111111/Qwen3-4B-Instruct-2507-BitClass-MX1-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull sh111111111111111/Qwen3-4B-Instruct-2507-BitClass-MX1-GGUF:Q3_K_S
Run and chat with the model
lemonade run user.Qwen3-4B-Instruct-2507-BitClass-MX1-GGUF-Q3_K_S
List all available models
lemonade list
- Hermes Agent
How to use sh111111111111111/Qwen3-4B-Instruct-2507-BitClass-MX1-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf sh111111111111111/Qwen3-4B-Instruct-2507-BitClass-MX1-GGUF:Q3_K_S
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default sh111111111111111/Qwen3-4B-Instruct-2507-BitClass-MX1-GGUF:Q3_K_S
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use sh111111111111111/Qwen3-4B-Instruct-2507-BitClass-MX1-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf sh111111111111111/Qwen3-4B-Instruct-2507-BitClass-MX1-GGUF:Q3_K_S
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "sh111111111111111/Qwen3-4B-Instruct-2507-BitClass-MX1-GGUF:Q3_K_S" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Qwen3-4B-Instruct-2507 โ BitClass MX-1 (Mixed-Precision, 3.54 bpw)
A GGUF-quantized version of Qwen3-4B-Instruct-2507 using BitClass, our learned mixed-precision quantization.
This is the MX-1 (compact) variant at 3.54 bits per weight, optimized for size and throughput. For a higher-quality variant, see MX-2 (4.00 bpw).
Model
| File | Bits/Weight | Size | Perplexity โ | Throughput (GPU) | Throughput (CPU) |
|---|---|---|---|---|---|
| Qwen3-4B-Instruct-2507-Q3_K_S-3.54bpw.gguf | 3.54 | 1.78 GB | 3.337 | 93.3 tok/s | 11.4 tok/s |
Benchmark Results
All models evaluated using lm-evaluation-harness v0.4.11 (0-shot) on identical hardware. Higher is better for all metrics.
| Model | BPW | Size | ARC-C โ | GSM8K โ | IFEval โ | TruthfulQA โ | Avg |
|---|---|---|---|---|---|---|---|
| Unsloth Q5_K_M | 5.75 | 2.69 GB | 58.79 | 72.55 | 57.49 | 62.49 | 62.83 |
| Unsloth Q4_K_M | 4.97 | 2.33 GB | 57.76 | 66.87 | 55.27 | 60.75 | 60.16 |
| Ours MX-2 | 4.00 | 2.01 GB | 57.42 | 51.40 | 53.60 | 60.21 | 55.66 |
| Ours MX-1 | 3.54 | 1.78 GB | 53.75 | 53.60 | 50.46 | 60.14 | 54.49 |
| ByteShape KQ 3.34 | 3.34 | 1.69 GB | 55.72 | 45.56 | 51.20 | 58.41 | 52.72 |
| Unsloth Q3_K_S | 3.75 | 1.76 GB | 55.89 | 41.24 | 52.13 | 60.10 | 52.34 |
ARC-C: acc_norm, GSM8K: exact_match (flexible-extract), IFEval: prompt_level_strict_acc, TruthfulQA: acc (mc2). All values ร100.
MX-1 at a glance:
- +2.15 average over Unsloth Q3_K_S at comparable size (1.78 vs 1.76 GB)
- GSM8K 53.60 โ massively beats both Q3_K_S (41.24, +12.36) and ByteShape (45.56, +8.04)
- TruthfulQA 60.14 โ on par with Q4_K_M (60.75) at smaller size (1.78 vs 2.33 GB)
- 93.3 tok/s GPU throughput โ fastest in our tests
Perplexity Comparison
| Model | BPW | Size | PPL โ | Source |
|---|---|---|---|---|
| Unsloth Q5_K_M | 5.75 | 2.69 GB | 2.907 | unsloth |
| Unsloth Q3_K_S | 3.75 | 1.76 GB | 3.007 | unsloth |
| Unsloth Q4_K_M | 4.97 | 2.33 GB | 2.956 | unsloth |
| ByteShape KQ 3.34 | 3.34 | 1.69 GB | 3.175 | byteshape |
| ByteShape KQ 3.19 | 3.19 | 1.61 GB | 3.192 | byteshape |
| Ours MX-1 | 3.54 | 1.78 GB | 3.337 | This repo |
| ByteShape IQ 3.07 | 3.07 | 1.55 GB | 3.423 | byteshape |
Comparable perplexity to ByteShape's IQ3_S 3.07bpw, but with 2.1x higher CPU throughput (11.4 vs 5.4 tok/s) and dramatically better task scores โ especially GSM8K where MX-1 scores 53.60 versus Q3_K_S's 41.24.
Quantization Labels
The filename label Q3_K_S indicates the base quantization type. The actual model uses a mix of quantization types across tensor groups, with an average effective bits per weight of 3.54.
Running with Ollama
ollama run hf.co/sh111111111111111/Qwen3-4B-Instruct-2507-BitClass-MX1-GGUF:Qwen3-4B-Instruct-2507-Q3_K_S-3.54bpw.gguf
Running with llama.cpp
# Chat
llama-cli -m Qwen3-4B-Instruct-2507-Q3_K_S-3.54bpw.gguf -cnv
# Server (OpenAI-compatible API)
llama-server -m Qwen3-4B-Instruct-2507-Q3_K_S-3.54bpw.gguf --port 8080
Evaluation Details
- Perplexity & Throughput: llama.cpp b8514, measured on both NVIDIA GB10 GPU (
-ngl 999) and CPU - Task benchmarks: lm-evaluation-harness v0.4.11, 0-shot, via llama-cpp-python with
logits_all=True - All models benchmarked in the same session on identical hardware for fair comparison
Disclaimer
Independent project. Not affiliated with or endorsed by Qwen, Unsloth, ByteShape, Bartowski, or llama.cpp. Competitor figures are from our own benchmark harness and may differ from those projects' self-reported numbers; competitor file sizes reflect the revision we tested and may since have changed.
License
Apache 2.0, inherited from Qwen3-4B-Instruct-2507.
Acknowledgments
- Downloads last month
- 48
3-bit
Model tree for sh111111111111111/Qwen3-4B-Instruct-2507-BitClass-MX1-GGUF
Base model
Qwen/Qwen3-4B-Instruct-2507