Instructions to use Xylolabs/Sophon-Realtime-4B-Flash-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 Xylolabs/Sophon-Realtime-4B-Flash-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 Xylolabs/Sophon-Realtime-4B-Flash-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Xylolabs/Sophon-Realtime-4B-Flash-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 Xylolabs/Sophon-Realtime-4B-Flash-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Xylolabs/Sophon-Realtime-4B-Flash-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf Xylolabs/Sophon-Realtime-4B-Flash-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf Xylolabs/Sophon-Realtime-4B-Flash-GGUF:Q4_K_M
Use Docker
docker model run hf.co/Xylolabs/Sophon-Realtime-4B-Flash-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use Xylolabs/Sophon-Realtime-4B-Flash-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Xylolabs/Sophon-Realtime-4B-Flash-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": "Xylolabs/Sophon-Realtime-4B-Flash-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Xylolabs/Sophon-Realtime-4B-Flash-GGUF:Q4_K_M
- Ollama
How to use Xylolabs/Sophon-Realtime-4B-Flash-GGUF with Ollama:
ollama run hf.co/Xylolabs/Sophon-Realtime-4B-Flash-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use Xylolabs/Sophon-Realtime-4B-Flash-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Xylolabs/Sophon-Realtime-4B-Flash-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:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "Xylolabs/Sophon-Realtime-4B-Flash-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use Xylolabs/Sophon-Realtime-4B-Flash-GGUF with Docker Model Runner:
docker model run hf.co/Xylolabs/Sophon-Realtime-4B-Flash-GGUF:Q4_K_M
- Lemonade
How to use Xylolabs/Sophon-Realtime-4B-Flash-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Xylolabs/Sophon-Realtime-4B-Flash-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Sophon-Realtime-4B-Flash-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use Xylolabs/Sophon-Realtime-4B-Flash-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 Xylolabs/Sophon-Realtime-4B-Flash-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:9931/v1 hermes config set model.default Xylolabs/Sophon-Realtime-4B-Flash-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Xylolabs/Sophon-Realtime-4B-Flash-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Xylolabs/Sophon-Realtime-4B-Flash-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:9931/v1 \ --custom-model-id "Xylolabs/Sophon-Realtime-4B-Flash-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"
GGUF quants of the text model (the thinker) of adventists-ai/Sophon-Realtime-4B-Flash for llama.cpp; the audio encoder, the talker and the voices are not included.
Files
| File | Parts | Size |
|---|---|---|
Sophon-Realtime-4B-Flash-Q8_0.gguf |
1 | 4.28 GB |
Sophon-Realtime-4B-Flash-Q6_K.gguf |
1 | 3.31 GB |
Sophon-Realtime-4B-Flash-Q5_K_M.gguf |
1 | 2.89 GB |
Sophon-Realtime-4B-Flash-Q4_K_M.gguf |
1 | 2.50 GB |
Sophon-Realtime-4B-Flash-Q4_K_S.gguf |
1 | 2.38 GB |
Sophon-Realtime-4B-Flash-Q3_K_M.gguf |
1 | 2.08 GB |
Sophon-Realtime-4B-Flash-Q2_K.gguf |
1 | 1.67 GB |
Sophon-Realtime-4B-Flash.imatrix |
1 | 7.77 MB |
How to run
Needs llama.cpp cd959bae or newer.
./build/bin/llama-server -m Sophon-Realtime-4B-Flash-Q4_K_M.gguf --jinja -ngl 99 -c 32768
Accuracy
KL and top-1 against BF16; Answers = right on 33 normal + 7 thinking items.
| Quant | Size | WikiText-2 KL | top-1 | Chat KL | top-1 | Held-out KL | top-1 | Answers |
|---|---|---|---|---|---|---|---|---|
| Q8_0 | 4.28 GB | 0.001298 | 98.27% | 0.001165 | 98.53% | 0.002291 | 98.06% | 29/33 + 1/7 |
| Q6_K | 3.31 GB | 0.004544 | 96.73% | 0.004013 | 97.18% | 0.006404 | 96.84% | 28/33 + 1/7 |
| Q5_K_M | 2.89 GB | 0.010587 | 95.33% | 0.009248 | 96.14% | 0.012417 | 95.22% | 27/33 + 0/7 |
| Q4_K_M | 2.50 GB | 0.036419 | 91.78% | 0.030192 | 92.67% | 0.035295 | 91.02% | 28/33 + 0/7 |
| Q4_K_S | 2.38 GB | 0.042298 | 91.12% | 0.036180 | 92.33% | 0.040708 | 90.63% | 29/33 + 0/7 |
| Q3_K_M | 2.08 GB | 0.117611 | 85.58% | 0.099802 | 86.39% | 0.136515 | 82.92% | 27/33 + 0/7 |
| Q2_K | 1.67 GB | 0.364607 | 74.48% | 0.368231 | 77.22% | 0.479837 | 69.51% | 29/33 + 0/7 |
| BF16 reference | 28/33 + 1/7 |
Which file for your hardware
Q8_0 weights are 4.28 GB; the f16 KV cache at 32K context is 4.83 GB.
License and notices
Adventists.ai declares the Apache License 2.0 for the original model. Xylolabs converted the thinker weights to GGUF and quantized them; NOTICE names the source.
Upstream description
The following description comes from Adventists.ai's model card.
Sophon-Realtime-4B-Flash
🎧 Try it in your browser, no GPU and no sign-up: Sophon-Realtime on Hugging Face Spaces. Talk to it, interrupt it, turn on your camera.
No GPU? Try it through the hosted API: sign up and get 3 hours of free voice chat (OpenAI Realtime-compatible, docs).
Version 1.4.0 (2026-11-16) · changelog · GitHub
On a Mac? Sophon-Realtime-4B-Flash-MLX runs this build locally on Apple silicon Macs with 16 GB or more (MLX; new in 1.5.0).
The 4B member of the Sophon-Realtime family: the same full-duplex design as the 32B builds, on one 24 GB GPU (uses ~21 GB). It listens while you talk,
decides from your voice when you have finished, writes a reply with sound tags ([laughter] [cough] [sigh] [breath] <strong>…</strong>)
and speaks while it writes; a lighter, faster speech model speaks the tagged reply (one forward pass per 80 ms frame). Served as one vLLM-Omni model, with /v1/realtime and /v1/chat/completions.
Sophon-Realtime 4B: three builds, one 4B brain
| Tag | Flash | E2E | |
|---|---|---|---|
| How it speaks | an expressive speech model (tag-tts) performs the sound tags | a lighter, faster speech model speaks the tagged reply (one forward pass per 80 ms frame) | a compact talker (about 350M parameters) turns the tagged reply straight into voice vectors; a decoder turns them into sound |
| Runs on | one 32 GB GPU (uses ~27 GB) | one 24 GB GPU (uses ~21 GB) | one 32 GB GPU (uses ~31 GB) |
| Full-Duplex-Bench v1.0 (4-task avg) | 94.3 | 87.7 | 92.3 |
| First audio, one user (RTX PRO 6000) | 0.4 s | 0.21 s | 0.31 s |
| Weights | HF · ModelScope | HF · ModelScope | HF · ModelScope |
The 4B brain is DuplexJev-4B-Para, our open 4B speech model, with a tag-writing adapter merged in. Speech only: the 4B brain has no vision. For the strongest answers, use the 32B builds (Tag · Flash · E2E) or the hosted API.
Benchmarks
| 4B | 32B (published) | |
|---|---|---|
| VoiceBench overall | 62.4 | 82.8 |
| Big Bench Audio (spoken answer, transcribed) | 44.3% | 81.8% |
| Full-Duplex-Bench v1.0, Flash build (avg of 2 pause tasks, turn-taking, interruption) | 87.7 | 94.0 |
| Sound-tag rate on held-out conversations (reference: 0.36) | 0.36 | n/a |
What 4B is for. The 4B brain keeps the conversation skills of the family: listening while you talk, deciding when you have finished, back-channels, barge-in and sound tags (Full-Duplex-Bench close to the 32B builds, and the same tag rate as the reference data). It knows and reasons much less than the 32B brain (VoiceBench 62.4 vs 82.8, Big Bench Audio 44.3% vs 81.8%), so it can state wrong facts with confidence. Use it for local demos, companions and characters, and research on turn-taking; use the 32B builds or the hosted API when answers must be right. Among open full-duplex models, its VoiceBench score is above Freeze-Omni (55.2) and Moshi (29.5) and below MiniCPM-o (71.2).
Measured 2026-11-16 on one RTX PRO 6000 with each build held to the memory of the card it is configured for. VoiceBench: official evaluators, gpt-4o-mini judge, AlpacaEval on the standard 199-question subset, overall = mean of 9 tasks. Big Bench Audio: 1,000 questions, GPT-4.1 judges the transcript of the spoken answer. Full-Duplex-Bench v1.0: average of candor and synthetic pause handling, turn-taking and user interruption (backchannel is reported but not averaged), the same scripts as for the 32B release. First audio: one user, client_example.py, median of 6. The 32B column repeats the numbers published for the 32B builds.
Quick start
git clone https://github.com/adventists-ai/sophon-realtime && cd sophon-realtime/flash
bash install.sh # once: Python 3.12 venv, vLLM 0.30, vLLM-Omni 0.30, plugin
modelscope download --model AdventistsAI/Sophon-Realtime-4B-Flash --local_dir ./model # or: hf download adventists-ai/Sophon-Realtime-4B-Flash --local-dir ./model
GPU=0 PORT=8000 bash start.sh # sees the 4B model and picks its 24 GB config
python client_example.py --url http://127.0.0.1:8000
Full instructions, the realtime protocol, zero-shot voice cloning and Live mode: flash/README.md.
Layout
config.json · thinker/ (4B, bf16), talker/, voices/
License: Apache-2.0; see NOTICE for the sources of the bundled weights. Only clone your own voice or a voice you have permission to use.
Updates
- 2026-11-29: Added the importance matrix
Sophon-Realtime-4B-Flash.imatrixused for the quantized levels. - 2026-11-29: Charts redrawn in the dark theme with fewer point labels.
- 2026-11-28: Card corrections.
- Downloads last month
- 224
2-bit
3-bit
4-bit
5-bit
6-bit
8-bit
Model tree for Xylolabs/Sophon-Realtime-4B-Flash-GGUF
Base model
adventists-ai/Sophon-Realtime-4B-Flash