Instructions to use yuxinlu1/gemma-4-12B-agentic-fable5-composer2.5-v2-3.5x-tau2-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use yuxinlu1/gemma-4-12B-agentic-fable5-composer2.5-v2-3.5x-tau2-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="yuxinlu1/gemma-4-12B-agentic-fable5-composer2.5-v2-3.5x-tau2-GGUF", filename="MTP/gemma-4-12B-it-MTP-BF16.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use yuxinlu1/gemma-4-12B-agentic-fable5-composer2.5-v2-3.5x-tau2-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 yuxinlu1/gemma-4-12B-agentic-fable5-composer2.5-v2-3.5x-tau2-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf yuxinlu1/gemma-4-12B-agentic-fable5-composer2.5-v2-3.5x-tau2-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 yuxinlu1/gemma-4-12B-agentic-fable5-composer2.5-v2-3.5x-tau2-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf yuxinlu1/gemma-4-12B-agentic-fable5-composer2.5-v2-3.5x-tau2-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 yuxinlu1/gemma-4-12B-agentic-fable5-composer2.5-v2-3.5x-tau2-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf yuxinlu1/gemma-4-12B-agentic-fable5-composer2.5-v2-3.5x-tau2-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 yuxinlu1/gemma-4-12B-agentic-fable5-composer2.5-v2-3.5x-tau2-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf yuxinlu1/gemma-4-12B-agentic-fable5-composer2.5-v2-3.5x-tau2-GGUF:Q4_K_M
Use Docker
docker model run hf.co/yuxinlu1/gemma-4-12B-agentic-fable5-composer2.5-v2-3.5x-tau2-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use yuxinlu1/gemma-4-12B-agentic-fable5-composer2.5-v2-3.5x-tau2-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "yuxinlu1/gemma-4-12B-agentic-fable5-composer2.5-v2-3.5x-tau2-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": "yuxinlu1/gemma-4-12B-agentic-fable5-composer2.5-v2-3.5x-tau2-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/yuxinlu1/gemma-4-12B-agentic-fable5-composer2.5-v2-3.5x-tau2-GGUF:Q4_K_M
- Ollama
How to use yuxinlu1/gemma-4-12B-agentic-fable5-composer2.5-v2-3.5x-tau2-GGUF with Ollama:
ollama run hf.co/yuxinlu1/gemma-4-12B-agentic-fable5-composer2.5-v2-3.5x-tau2-GGUF:Q4_K_M
- Unsloth Studio
How to use yuxinlu1/gemma-4-12B-agentic-fable5-composer2.5-v2-3.5x-tau2-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 yuxinlu1/gemma-4-12B-agentic-fable5-composer2.5-v2-3.5x-tau2-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 yuxinlu1/gemma-4-12B-agentic-fable5-composer2.5-v2-3.5x-tau2-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for yuxinlu1/gemma-4-12B-agentic-fable5-composer2.5-v2-3.5x-tau2-GGUF to start chatting
- Pi
How to use yuxinlu1/gemma-4-12B-agentic-fable5-composer2.5-v2-3.5x-tau2-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf yuxinlu1/gemma-4-12B-agentic-fable5-composer2.5-v2-3.5x-tau2-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": "yuxinlu1/gemma-4-12B-agentic-fable5-composer2.5-v2-3.5x-tau2-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use yuxinlu1/gemma-4-12B-agentic-fable5-composer2.5-v2-3.5x-tau2-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 yuxinlu1/gemma-4-12B-agentic-fable5-composer2.5-v2-3.5x-tau2-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 yuxinlu1/gemma-4-12B-agentic-fable5-composer2.5-v2-3.5x-tau2-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use yuxinlu1/gemma-4-12B-agentic-fable5-composer2.5-v2-3.5x-tau2-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf yuxinlu1/gemma-4-12B-agentic-fable5-composer2.5-v2-3.5x-tau2-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 "yuxinlu1/gemma-4-12B-agentic-fable5-composer2.5-v2-3.5x-tau2-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"
- Docker Model Runner
How to use yuxinlu1/gemma-4-12B-agentic-fable5-composer2.5-v2-3.5x-tau2-GGUF with Docker Model Runner:
docker model run hf.co/yuxinlu1/gemma-4-12B-agentic-fable5-composer2.5-v2-3.5x-tau2-GGUF:Q4_K_M
- Lemonade
How to use yuxinlu1/gemma-4-12B-agentic-fable5-composer2.5-v2-3.5x-tau2-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull yuxinlu1/gemma-4-12B-agentic-fable5-composer2.5-v2-3.5x-tau2-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.gemma-4-12B-agentic-fable5-composer2.5-v2-3.5x-tau2-GGUF-Q4_K_M
List all available models
lemonade list
Tool Calling is not working in VScode[Cline]
Used LM Studio and VScode.
prompt:
Act as a Senior Game Developer, UI/UX Designer, and Performance Engineer. We are building an elegant Snake game in ONE single-file HTML (HTML5 Canvas + CSS3 + Vanilla JS). The aesthetic is "Modern Minimalist Neon" β dark mode background, glowing snake body with gradient tail, pulse animations on food, high-contrast score overlay, and a retro CRT scanline effect overlay.
Plan the code as if it were a multi-file project so each section stays clean:
- CSS module (layout, canvas styling, glow effects, scoring UI)
- Game Engine module (grid constants, snake state, food gen, direction handling)
- Rendering loop (requestAnimationFrame with consistent 60fps delta time)
- Input layer (keydown queue for non-backtracking turns β no reversing direction midframe)
Do not write any actual component code yet. Output the complete file structure tree of how you would organize this logic if it were split, explain what each section does within the single HTML file, and await my signal for Step 2.
Screenshots
LM Studio Settings
Hey, thanks for the detailed write-up and screenshots β they make this easy to diagnose, and the good news is your
model actually did its job here. The plan it produced is genuinely solid (clean CSS / engine / render / input split,
non-reversing direction handling, rAF loop), and the HTML it started writing was clean too. So this isn't the model
breaking down β it's that the tool calls never got executed.
What's happening: those <|tool_call>call:write_to_file{...} and <|"> bits leaking as raw text are Gemma 4's native
tool-call tokens. The model is emitting proper native tool calls β but in this LM Studio + Cline setup they aren't
being parsed into structured/executable calls, so they leak into the chat as text and Cline never actually writes the
file. I checked this on my end: the exact same model served through llama.cpp returns clean, structured tool calls
with zero leaked tokens β so the model side is fine, it's the serving/harness layer that needs the right tool parsing.
Two things to fix:
- Tool execution. Serve the model with llama.cpp's llama-server --jinja (it has the parser for Gemma 4's native tool
format β I confirmed it returns proper structured tool_calls), and point Cline at it as an OpenAI-compatible provider
with native function-calling enabled, so Cline consumes structured calls instead of trying to match its own text
format. That combo actually runs the tools instead of printing them. - Quality setting (independent, but worth it). In your LM Studio load settings you have both K Cache and V Cache
quantization set to Q4_0 β that measurably hurts precision on coding / structured output, so turn both off (FP16 KV
cache) for code work. Your GPU Offload is also at 40 (partial); if you have the VRAM, push it to full β that's just
speed, not the bug.
Honest heads-up: Cline has its own tool protocol that can clash with Gemma 4's native format, so the --jinja +
function-calling path above is the reliable combo. Once the tools actually execute, that Snake plan should turn into a
real file. Let me know how it goes!
hey thanks for the neat response. I'm a hobbyist Local AI user with limited technical knowledge. I found LM Studio to be a simple setup, and so many models work in Cline without any default configuration changes. I initially thought there was an issue with the model itself. Thanks anyway for the great work, and I look forward to further updates that will allow people like me to enjoy these community models as well.
Unfortunately, even jinja enabling won't solve the issue. I switched to llama.cpp from lm studio but still the agentic coding does not work most of the time. The task has to be absurdly simple and then it works some times, and most of the time it does not, it complain about like:
Model Response Incomplete
The model failed to use any tools in its response. This typically happens when the model provides only text/reasoning without calling the required tools to complete the task.
I'm using Zoo Code which is fork of Roo Code and support agentic coding. It is free.
Unfortunately, even jinja enabling won't solve the issue. I switched to llama.cpp from lm studio but still the agentic coding does not work most of the time. The task has to be absurdly simple and then it works some times, and most of the time it does not, it complain about like:
Model Response Incomplete
The model failed to use any tools in its response. This typically happens when the model provides only text/reasoning without calling the required tools to complete the task.I'm using Zoo Code which is fork of Roo Code and support agentic coding. It is free.
I have same experience with you.
Model just stucks, desperately tries to call non-existing tools (hit or miss) etc. etc.
It's kind of broken, at least for the agentic approach.
And it has weird behaviors like not creating a required file even though i keep insisting it to issue. (instead, it tried to screenshot lol π₯Έ )
@kremerneil @gmbiz Thank you both β and you're right to push back. What you're describing is a different, more real problem than the template leak above, so let me be straight about it instead of just repeating "use --jinja."
There are two layers here, and --jinja only fixes the first:
Harness protocol. Roo/Zoo have been migrating from the old XML tool protocol to native function-calling. The XML protocol is rough even for frontier models (~10β15% tool-call failure on things like apply_diff), and asking a 12B to follow that verbose prompt-based format reliably is a lot. Make sure you're on a recent Zoo Code build with native tool calling enabled, add the model as an OpenAI-compatible provider, and confirm tools are actually being passed through (llama-server --jinja does emit structured tool_calls, but the harness has to be in native mode to consume them). That alone moves the needle.
The honest part β the model. Even with all of that correct, v2 was trained largely on single-turn data. Sustained, fully-autonomous agentic coding β where every turn it has to commit to a tool call, never drift into "just reasoning," never invent a tool name β is genuinely this 12B's weakest area right now. The exact symptoms you're hitting (returns reasoning with no tool call, calls a non-existent tool, loops, refuses to write the file) are failure modes I've reproduced myself. That's not you doing anything wrong.
The good news: this is the #1 thing v3 was built to fix. It specifically targets execution robustness β committing to the tool call instead of stalling, not looping, not hallucinating tools. v3 (still 12B) lands in the next day or two, and I'm stress-testing this exact agentic-coding path (Roo/Zoo/Cline) before I ship. I won't oversell it β a 12B on full autonomy won't match a frontier cloud agent, and scoping tasks + native tool calling will always help β but this failure mode is precisely what it's aimed at
If it's useful, I'm happy to post the exact llama-server flags + Zoo Code provider settings I run so we're comparing the same setup. And please retest once v3 isexactly what tell me whether it actuallylanded.


