Instructions to use Fantominsight/Yapper-M4-Flash-0256-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 Fantominsight/Yapper-M4-Flash-0256-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 Fantominsight/Yapper-M4-Flash-0256-GGUF:Q8_0 # Run inference directly in the terminal: llama cli -hf Fantominsight/Yapper-M4-Flash-0256-GGUF:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Fantominsight/Yapper-M4-Flash-0256-GGUF:Q8_0 # Run inference directly in the terminal: llama cli -hf Fantominsight/Yapper-M4-Flash-0256-GGUF:Q8_0
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 Fantominsight/Yapper-M4-Flash-0256-GGUF:Q8_0 # Run inference directly in the terminal: ./llama-cli -hf Fantominsight/Yapper-M4-Flash-0256-GGUF:Q8_0
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 Fantominsight/Yapper-M4-Flash-0256-GGUF:Q8_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf Fantominsight/Yapper-M4-Flash-0256-GGUF:Q8_0
Use Docker
docker model run hf.co/Fantominsight/Yapper-M4-Flash-0256-GGUF:Q8_0
- LM Studio
- Jan
- vLLM
How to use Fantominsight/Yapper-M4-Flash-0256-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Fantominsight/Yapper-M4-Flash-0256-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": "Fantominsight/Yapper-M4-Flash-0256-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Fantominsight/Yapper-M4-Flash-0256-GGUF:Q8_0
- Ollama
How to use Fantominsight/Yapper-M4-Flash-0256-GGUF with Ollama:
ollama run hf.co/Fantominsight/Yapper-M4-Flash-0256-GGUF:Q8_0
- Unsloth Desktop
- Pi
How to use Fantominsight/Yapper-M4-Flash-0256-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Fantominsight/Yapper-M4-Flash-0256-GGUF:Q8_0
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": "Fantominsight/Yapper-M4-Flash-0256-GGUF:Q8_0" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use Fantominsight/Yapper-M4-Flash-0256-GGUF with Docker Model Runner:
docker model run hf.co/Fantominsight/Yapper-M4-Flash-0256-GGUF:Q8_0
- Lemonade
How to use Fantominsight/Yapper-M4-Flash-0256-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Fantominsight/Yapper-M4-Flash-0256-GGUF:Q8_0
Run and chat with the model
lemonade run user.Yapper-M4-Flash-0256-GGUF-Q8_0
List all available models
lemonade list
- Hermes Agent
How to use Fantominsight/Yapper-M4-Flash-0256-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 Fantominsight/Yapper-M4-Flash-0256-GGUF:Q8_0
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 Fantominsight/Yapper-M4-Flash-0256-GGUF:Q8_0
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Fantominsight/Yapper-M4-Flash-0256-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Fantominsight/Yapper-M4-Flash-0256-GGUF:Q8_0
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 "Fantominsight/Yapper-M4-Flash-0256-GGUF:Q8_0" \ --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"
Memory bandwidth saturation, KV-cache thermal throttling, and O(1) sequence scaling on edge devices
Hi Fantominsight team,
Quantizing a 3.62B Mistral-based model into Q8_0 for localized roleplay, multi-language processing, and agentic tasks is a great practical release. Being upfront about performance metrics (5-8 tok/s at 29 GB/s memory bandwidth) and realistic mobile limitations is very helpful for end users.
Looking at your runtime behavior and the thermal constraints on mobile hardware:
The memory bandwidth ceiling on 29 GB/s pipelines:
At 3.65 GB for the Q8_0 weights, the theoretical throughput ceiling on a 29 GB/s memory bus is roughly 29 / 3.65 = ~7.9 tokens/second during autoregressive decoding.
Your measured 5-8 tok/s means the engine is running at near 100% bus utilization on every generated token. On mobile SoCs (like Snapdragon 888 or 8 Gen 1 in Xiaomi 11 and 12 series), pegging the memory controller continuously draws substantial power and generates rapid heat buildup, which triggers hardware thermal throttling and drops clock speeds within minutes.KV-cache memory pressure across 16k contexts:
While the model supports up to 16k tokens, standard attention caches grow substantially as context accumulates during long roleplay sessions.
On devices with 6-8 GB total system RAM, combining the 3.65 GB base weights with OS background memory and a multi-hundred megabyte FP16 KV-cache puts the device right on the brink of Android low-memory killer (LMK) eviction. Furthermore, attending across thousands of past key-value vectors increases computational overhead on every decode step.Constant O(1) state generation in hybrid architectures:
In an open architecture project called Maba v2 (reference release: https://huggingface.co/AndrewThompson1233/maba-v2-architecture), we address long-context mobile execution using a 3:1 macro-topology (DGDA linear recurrence combined with MABA-SA latent sparse attention):
By updating 75% of the network via recurrent state transitions, decode latency remains strictly flat at O(1) regardless of sequence length, and the KV-cache footprint is compressed by nearly 40x.
For long multi-turn roleplay on edge devices, this prevents the memory expansion and computational creep that typically cause thermal throttling as conversations stretch past 4k or 8k tokens.
If you are exploring ways to improve efficiency on memory-constrained devices, taking a look at the hybrid scaling specifications in the Maba v2 repo might provide some useful architectural ideas.
Did you benchmark mid-range quants like Q4_K_M or IQ4_XS to ease bus saturation on 29 GB/s memory hardware?
Best,
Andrew
Hello, Andrew!
We have taken your advice into account. (We can may make mistakes in English).
We are very grateful to you for this.
About quant (Q4_K or more) - no, but we want).
Thanks. Best regards,
Fantominsight!
Hi Fantominsight team,
Your English is completely clear, no worries at all!
Exporting a Q4_K_M quant will definitely be a massive upgrade for mobile users. Here is what you can expect on that 29 GB/s bus:
Weight footprint drops from ~3.65 GB down to ~2.1 GB.
Memory bus ceiling immediately jumps from ~7.9 tok/s up to ~13-14 tok/s.
Drastically reduced memory controller saturation, which prevents the rapid thermal throttling and battery drain on Snapdragon chips.
Leaves plenty of headroom in Android RAM, avoiding out-of-memory app crashes during longer roleplay sessions.
Looking forward to testing the Q4_K_M release when you drop it! Keep up the great work.
Best,
Andrew