Text Generation
GGUF
English
llama.cpp
quantized
empero-ai
qwen3.5
qwen3.8
distillation
reasoning
gated-deltanet
conversational
Instructions to use empero-ai/Qwen3.8-4B-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 empero-ai/Qwen3.8-4B-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 empero-ai/Qwen3.8-4B-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf empero-ai/Qwen3.8-4B-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf empero-ai/Qwen3.8-4B-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf empero-ai/Qwen3.8-4B-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 empero-ai/Qwen3.8-4B-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf empero-ai/Qwen3.8-4B-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 empero-ai/Qwen3.8-4B-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf empero-ai/Qwen3.8-4B-GGUF:Q4_K_M
Use Docker
docker model run hf.co/empero-ai/Qwen3.8-4B-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use empero-ai/Qwen3.8-4B-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "empero-ai/Qwen3.8-4B-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": "empero-ai/Qwen3.8-4B-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/empero-ai/Qwen3.8-4B-GGUF:Q4_K_M
- Ollama
How to use empero-ai/Qwen3.8-4B-GGUF with Ollama:
ollama run hf.co/empero-ai/Qwen3.8-4B-GGUF:Q4_K_M
- Unsloth Studio
How to use empero-ai/Qwen3.8-4B-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for empero-ai/Qwen3.8-4B-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for empero-ai/Qwen3.8-4B-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for empero-ai/Qwen3.8-4B-GGUF to start chatting
- Pi
How to use empero-ai/Qwen3.8-4B-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf empero-ai/Qwen3.8-4B-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "empero-ai/Qwen3.8-4B-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use empero-ai/Qwen3.8-4B-GGUF with Docker Model Runner:
docker model run hf.co/empero-ai/Qwen3.8-4B-GGUF:Q4_K_M
- Lemonade
How to use empero-ai/Qwen3.8-4B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull empero-ai/Qwen3.8-4B-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Qwen3.8-4B-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use empero-ai/Qwen3.8-4B-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 empero-ai/Qwen3.8-4B-GGUF:Q4_K_M
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 empero-ai/Qwen3.8-4B-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use empero-ai/Qwen3.8-4B-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf empero-ai/Qwen3.8-4B-GGUF:Q4_K_M
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 "empero-ai/Qwen3.8-4B-GGUF:Q4_K_M" \ --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"
Commit ·
391fc7d
0
Parent(s):
Qwen3.8 GGUF release
Browse files- .gitattributes +40 -0
- Qwen3.8-4B-BF16.gguf +3 -0
- Qwen3.8-4B-Q4_K_M.gguf +3 -0
- Qwen3.8-4B-Q5_K_M.gguf +3 -0
- Qwen3.8-4B-Q6_K.gguf +3 -0
- Qwen3.8-4B-Q8_0.gguf +3 -0
- README.md +96 -0
- SHA256SUMS +5 -0
.gitattributes
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 33 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
Qwen3.8-4B-BF16.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
Qwen3.8-4B-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
Qwen3.8-4B-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
Qwen3.8-4B-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
Qwen3.8-4B-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
Qwen3.8-4B-BF16.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:448616595da523e57f694e1c8379aa5700bb1e3d9273eb2db4b9dab91bb85c6e
|
| 3 |
+
size 8665619744
|
Qwen3.8-4B-Q4_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dec96e8cf2e11b613bb46513dec485377f9ca5a351e71712ee0e244f287c6790
|
| 3 |
+
size 2783446304
|
Qwen3.8-4B-Q5_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:735cd00b154f1a3f88899e7cc79e6a15b056b65d71049a75d88ec2948c4c0892
|
| 3 |
+
size 3161425184
|
Qwen3.8-4B-Q6_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:529393d9f7859122da727a8b662ea063127fb4320af8f58496a794b9bbf46e65
|
| 3 |
+
size 3563027744
|
Qwen3.8-4B-Q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:770b780d6754a4954d1caf395c9239eaeb394f15c7a7ea34039883377c93c9c3
|
| 3 |
+
size 4610579744
|
README.md
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: empero-ai/Qwen3.8-4B
|
| 4 |
+
base_model_relation: quantized
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
library_name: gguf
|
| 8 |
+
pipeline_tag: text-generation
|
| 9 |
+
tags:
|
| 10 |
+
- gguf
|
| 11 |
+
- llama.cpp
|
| 12 |
+
- quantized
|
| 13 |
+
- empero-ai
|
| 14 |
+
- qwen3.5
|
| 15 |
+
- qwen3.8
|
| 16 |
+
- distillation
|
| 17 |
+
- reasoning
|
| 18 |
+
- gated-deltanet
|
| 19 |
+
---
|
| 20 |
+
|
| 21 |
+
# Qwen3.8-4B — GGUF
|
| 22 |
+
|
| 23 |
+
**Developed by [Empero](https://empero.org)**
|
| 24 |
+
|
| 25 |
+
GGUF quantizations of **[empero-ai/Qwen3.8-4B](https://huggingface.co/empero-ai/Qwen3.8-4B)** — a full-parameter distillation of **Qwen3.8 2.4T A95B** into the Qwen3.5-4B architecture — for [llama.cpp](https://github.com/ggml-org/llama.cpp), Ollama, LM Studio, Jan, KoboldCpp, and other stock GGUF runtimes.
|
| 26 |
+
|
| 27 |
+
This card is about choosing a file and running it. The capability writeup, full benchmark results, and best practices live on the **[main model card](https://huggingface.co/empero-ai/Qwen3.8-4B)**.
|
| 28 |
+
|
| 29 |
+
Headline results for the source model (CoT protocols, `lm-evaluation-harness`, identical settings base vs. student):
|
| 30 |
+
|
| 31 |
+
| Task | Qwen3.5-4B (base) | **Qwen3.8-4B** | Δ |
|
| 32 |
+
|---|---:|---:|---:|
|
| 33 |
+
| mmlu (CoT, 57 subjects) | 0.354 | **0.553** | **+0.199** |
|
| 34 |
+
| gsm8k_cot | 0.850 | 0.785 | −0.065 |
|
| 35 |
+
|
| 36 |
+
> [!Note]
|
| 37 |
+
> Qwen3.5-class models are hybrids: three Gated DeltaNet layers for every full-attention layer. A **recent llama.cpp build with Qwen3.5 / Gated DeltaNet support** is required — older builds will fail to load the architecture.
|
| 38 |
+
|
| 39 |
+
## Files
|
| 40 |
+
|
| 41 |
+
| File | Quant | Size | Notes |
|
| 42 |
+
|---|---|---:|---|
|
| 43 |
+
| `Qwen3.8-4B-Q4_K_M.gguf` | Q4_K_M | 2.783 GB | **Recommended.** Best quality/size balance for most users. |
|
| 44 |
+
| `Qwen3.8-4B-Q5_K_M.gguf` | Q5_K_M | 3.161 GB | Higher quality at a modest size increase. |
|
| 45 |
+
| `Qwen3.8-4B-Q6_K.gguf` | Q6_K | 3.563 GB | Near-lossless. |
|
| 46 |
+
| `Qwen3.8-4B-Q8_0.gguf` | Q8_0 | 4.611 GB | Highest-quality quantization. |
|
| 47 |
+
| `Qwen3.8-4B-BF16.gguf` | BF16 | 8.666 GB | Full precision reference. |
|
| 48 |
+
|
| 49 |
+
Sizes are exact decimal GB from the uploaded files (1 GB = 1,000,000,000 bytes).
|
| 50 |
+
|
| 51 |
+
### What fits on a GPU?
|
| 52 |
+
|
| 53 |
+
Practical weight-size-based guidance at modest context — the KV cache is the dominant cost at long context and may require offload regardless of weight quant:
|
| 54 |
+
|
| 55 |
+
| Quant | Guidance |
|
| 56 |
+
|---|---|
|
| 57 |
+
| Q4_K_M / Q5_K_M | Comfortable on 4–6 GB cards; strong CPU-only option as well. |
|
| 58 |
+
| Q6_K / Q8_0 | 6–8 GB recommended. |
|
| 59 |
+
| BF16 | 12 GB+. |
|
| 60 |
+
|
| 61 |
+
## Usage
|
| 62 |
+
|
| 63 |
+
### llama.cpp
|
| 64 |
+
|
| 65 |
+
```bash
|
| 66 |
+
llama-cli -m Qwen3.8-4B-Q4_K_M.gguf \
|
| 67 |
+
--temp 0.6 --top-p 0.95 --top-k 20 \
|
| 68 |
+
-n 16384 -cnv
|
| 69 |
+
```
|
| 70 |
+
|
| 71 |
+
Use the built-in chat template (`-cnv`). The model is a reasoning model: every answer opens with a `<think>` block, so allow a generous `-n` and strip the `<think>...</think>` span for end users.
|
| 72 |
+
|
| 73 |
+
### Ollama / LM Studio / Jan / KoboldCpp
|
| 74 |
+
|
| 75 |
+
Download the GGUF of your choice and load it directly; the chat template is embedded in the file. Recommended sampling: `temperature=0.6, top_p=0.95, top_k=20`.
|
| 76 |
+
|
| 77 |
+
## Provenance & licensing
|
| 78 |
+
|
| 79 |
+
Quantizations of **[empero-ai/Qwen3.8-4B](https://huggingface.co/empero-ai/Qwen3.8-4B)**, a distillation of Qwen3.8 2.4T A95B into [Qwen/Qwen3.5-4B](https://huggingface.co/Qwen/Qwen3.5-4B) trained on ~45,000 curated teacher traces from our internal Qwen3.8 distillation datasets. Weights are **Apache-2.0**, inherited from the Qwen base, shared as-is.
|
| 80 |
+
|
| 81 |
+
## Stay in the loop
|
| 82 |
+
|
| 83 |
+
Sign up for the Empero newsletter at **[empero.org](https://empero.org)** for releases, evals, and research notes.
|
| 84 |
+
|
| 85 |
+
## Support / Donate
|
| 86 |
+
|
| 87 |
+
If this model helped you, consider supporting the project:
|
| 88 |
+
|
| 89 |
+
- **BTC**: `bc1qx6zepu6sfkvshgdmc4ewu6pk6rpadvpgffpp7v`
|
| 90 |
+
- **LTC**: `ltc1qv2mefzps2vtjcpwfx8xxdrpplrcvltswm68r7x`
|
| 91 |
+
|
| 92 |
+
## Acknowledgements
|
| 93 |
+
|
| 94 |
+
- Developed and released by [Empero](https://empero.org)
|
| 95 |
+
- Base model: [Qwen3.5-4B](https://huggingface.co/Qwen/Qwen3.5-4B) (Alibaba Qwen team)
|
| 96 |
+
- GGUF quantization: [llama.cpp](https://github.com/ggml-org/llama.cpp) (ggml-org)
|
SHA256SUMS
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
448616595da523e57f694e1c8379aa5700bb1e3d9273eb2db4b9dab91bb85c6e ./Qwen3.8-4B-BF16.gguf
|
| 2 |
+
dec96e8cf2e11b613bb46513dec485377f9ca5a351e71712ee0e244f287c6790 ./Qwen3.8-4B-Q4_K_M.gguf
|
| 3 |
+
735cd00b154f1a3f88899e7cc79e6a15b056b65d71049a75d88ec2948c4c0892 ./Qwen3.8-4B-Q5_K_M.gguf
|
| 4 |
+
529393d9f7859122da727a8b662ea063127fb4320af8f58496a794b9bbf46e65 ./Qwen3.8-4B-Q6_K.gguf
|
| 5 |
+
770b780d6754a4954d1caf395c9239eaeb394f15c7a7ea34039883377c93c9c3 ./Qwen3.8-4B-Q8_0.gguf
|