Instructions to use AtomicChat/Qwen3.8-Flash-Next-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 AtomicChat/Qwen3.8-Flash-Next-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 AtomicChat/Qwen3.8-Flash-Next-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf AtomicChat/Qwen3.8-Flash-Next-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 AtomicChat/Qwen3.8-Flash-Next-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf AtomicChat/Qwen3.8-Flash-Next-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 AtomicChat/Qwen3.8-Flash-Next-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf AtomicChat/Qwen3.8-Flash-Next-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 AtomicChat/Qwen3.8-Flash-Next-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf AtomicChat/Qwen3.8-Flash-Next-GGUF:Q4_K_M
Use Docker
docker model run hf.co/AtomicChat/Qwen3.8-Flash-Next-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use AtomicChat/Qwen3.8-Flash-Next-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AtomicChat/Qwen3.8-Flash-Next-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": "AtomicChat/Qwen3.8-Flash-Next-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/AtomicChat/Qwen3.8-Flash-Next-GGUF:Q4_K_M
- Ollama
How to use AtomicChat/Qwen3.8-Flash-Next-GGUF with Ollama:
ollama run hf.co/AtomicChat/Qwen3.8-Flash-Next-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use AtomicChat/Qwen3.8-Flash-Next-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf AtomicChat/Qwen3.8-Flash-Next-GGUF:Q4_K_M
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": "AtomicChat/Qwen3.8-Flash-Next-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use AtomicChat/Qwen3.8-Flash-Next-GGUF with Docker Model Runner:
docker model run hf.co/AtomicChat/Qwen3.8-Flash-Next-GGUF:Q4_K_M
- Lemonade
How to use AtomicChat/Qwen3.8-Flash-Next-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull AtomicChat/Qwen3.8-Flash-Next-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Qwen3.8-Flash-Next-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use AtomicChat/Qwen3.8-Flash-Next-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 AtomicChat/Qwen3.8-Flash-Next-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 AtomicChat/Qwen3.8-Flash-Next-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use AtomicChat/Qwen3.8-Flash-Next-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf AtomicChat/Qwen3.8-Flash-Next-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 "AtomicChat/Qwen3.8-Flash-Next-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"
Linear speed degradation correlated with context length
Thanks for making this available.
I've used this model for a little while over the weekend on my Mac Studio M4 Max 64GB. One thing I discovered was the performance degrades with context linearly. On my machine the generation speed in tokens per second can be reliably predicted by 1000/(31.6 + n * 4.7 * 10^-4). It starts out at around 31 T/S in a fresh conversation and drops to 20 pretty quickly, after one or two turns of agent actions. It really compounds with how much this model thinks too. Memory was not the bottleneck.
Is this expected and / or explained by the model's architecture? any ideas to optimize the degradation slope?
adding more details - 4.27bpw variant,
--jinja --flash-attn on
-ngl 99
--fit off
--no-warmup
--kv-unified
-ctk q8_0 -ctv q8_0
--cache-ram 0
llama cpp b10679
same result on different context length limits:
"q38fn_slots_4_in_140k_unified": "--parallel 4 --ctx-size 140000"
"q38fn_slots_4_in_180k_unified": "--parallel 4 --ctx-size 180000"
"q38fn_slots_4_in_240k_unified": "--parallel 4 --ctx-size 240000"
"q38fn_slots_6_in_240k_unified": "--parallel 6 --ctx-size 240000"
"q38fn_slots_6_in_256k_unified": "--parallel 6 --ctx-size 262144"
I had to push the iogpu.wired_limit_mb to 60GB for the full context length, but with --ctx-size 140000and iogpu.wired_limit_mb at 56GB I saw the same linear degradation and memory was definitely not the bottleneck, total memory usage was steady at 60GB and no swapping.
Your formulation is the right one β it is time per token that grows linearly, not tok/s that falls. Fitting our M2 Max 64 GB data the same way:
build ms/token
b10698 45.3 + 8.73e-4 Β· n
b10731 45.3 + 5.90e-4 Β· n
The slope drops 32 %, the intercept does not move (β0.2 %).
That is #28023, merged today 04:24 UTC β eleven lines, qwen4exp: sum the indexer heads by slices. The head summation went through a transpose and a reduction over a dimension of 4, and the transpose copied a large surface twice for nothing. You are on b10679, so you do not have it; it is in b10730 and later.
Measured here, same prompts, same flags, only the binary swapped:
prompt tokens decode b10698 β b10731 prefill b10698 β b10731
1 188 21.7 β 21.9 291.0 β 290.9
5 808 19.7 β 20.4 302.6 β 306.9
17 464 16.5 β 18.0 261.8 β 275.2
34 894 13.2 β 15.2 220.5 β 241.5
So: part of the slope was a kernel inefficiency, not architecture. The rest is inherent β attention still grows with context.
Two other things, in case they help:
--spec-type ngram-mod does not change the slope, but it multiplies throughput where the output repeats the prompt. On a copy-heavy task here (return a 60-line file with one line changed) decode went 22.1 β 54.5 t/s, byte-identical output. For code editing that is most of the work. ngram-simple gave 50.4; --spec-draft-n-max made no difference at 8 or 16.
Your --parallel 4-6 may be working against you for single-turn latency: the KV cache is divided across slots, so each conversation gets a fraction of the window and slots compete. We run -np 1. And your q8_0 KV cache cost about 4.5 % prefill in our measurements (310 β 296 t/s), so it buys memory rather than speed.
For reference, your fit against ours at n = 35 000: yours 20.8 t/s, ours 15.2 t/s on b10731. The M4 Max is ahead on both terms, as expected.