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
Gave it a simple coding task, it began looping and hallucinating hard
Hey, first off β thank you, genuinely. Glad you're enjoying the work, and thanks for taking the time to write up such
a clear report with the screenshot. That made this easy to pin down.
Good news: this isn't a problem with the weights β it's a harness config issue, and it's fully fixable on your side.
Two things are stacking here:
- The runaway 0000β¦ is the sampler. That's classic degenerate repetition. KoboldCpp ships with rep_pen = 1.0 (no
repetition penalty) by default, so once the model emits a long numeric path, nothing stops it from looping zeros
forever. I reproduced this exact 0000β¦ collapse on Q4_K_M under default sampling, and it disappears with proper
settings. Please set: temp 1.0, top_p 0.95, top_k 64, rep_pen 1.1 β and if your build has it, DRY multiplier ~0.8.
Q4_K_M is clean here with those. - The leaked <|channel> and <|tool_call>call:...{} tokens mean your front-end isn't parsing Gemma 4's native tool
format. Those aren't gibberish β they're Gemma 4's native control tokens (<|channel>thought β¦ <channel|> for the
reasoning channel, and <|tool_call>call:name{args}<tool_call|> for tool calls). KoboldCpp needs a recent build with
the --jinjatools option to parse them back into real tool calls; without it they leak as raw text. The most reliable
path for agentic/tool use is llama.cpp's llama-server --jinja, which has the proper parser for Gemma 4's tool
protocol. So: update KoboldCpp to the latest and add --jinjatools, or switch to llama-server --jinja.
Fix the sampler and the tool parsing and the "incoherence" should be gone. One honest caveat: in very long autonomous
multi-step loops a 12B will still occasionally invent a tool that isn't in your set (here EssentiaPy...compile) β
keeping the tool list small and adding "complete all steps before yielding" to the system prompt helps.
I've pinned this thread so everyone running into the same thing can find the fix.
And please β if anything else comes up, don't hesitate to post here in the community. I check it and will reply as
fast as I can.
I appreciate the attention to this matter! Updating on the issue: The sampling did fix the issue with looping. I did enable the jinjatools in kobold(using most recent version of kobold), however, results were most unexpected, I'll leave a proper screenshot:
It stops abruptly, most likely kobold issue, I'll later test this out with other backends...
+1 here.
I would like to call out the positives first. The model was able to do a bunch of appropriate tool calls at the very start.
However, it proceeded to hallucinate to the extent that the model itself said that it is hallucinating.
I mean just off the bat im not surprised. Your prompt was:
Can you explain this codebase to me please?
Thought: 3.9s
Large request - "explain this codebase" for a 5820-Line TypeScript React app with no index.ts/md landing page and the user asking in Korean. First step: orient myself on high level before diving into details. List files, grep top dirs to locate entry point (App.tsx?),
check package. json dependencies (react, ui libs), and use codemap for a structured overview of the codebase architecture I can share with them later. Keep response brief; I'll build understanding through tools first.
Question : Is it hallucinating about a 5820-Line TypeScript file?
Do you have a main.ts that large because if thats the case id also start hallucinating if i was tasked to read it and explain it. If it hallucianted the file then sure valid. But if not i suggest trying to learn more on the limitations. And Also perhaps first start to learn basicis of maintainable readable code . If a humans not gonna read it, expecting a brand new experimental local model to do this is naive.
I tried the q8 model now. And it works well considering. Thats for the 12b which i honeslty wasnt expecting much fom it was more so just a smoke test , currently waiting on the 3.6 27b to download and will play with it more until then and see if its able to onboard to more complex workspace .If i come off as condescending im sorry its just at first glace i just saw 5000 lines of code and yeah thats the bottleneck if its real. Local Ai is finnicky though you wanna set reasonable expectations or smaller models also.
Thanks for letting us know
@KoushikSahu @Jexposition Thanks for the detailed trace β and for calling out the good part first. I'll be straight: this one isn't the sampler or the harness, it's the genuine weak spot of a 12B in long autonomous loops, and your log shows it exactly.
What's happening: it makes the right opening moves (glob, list, lsp), but the first few "not found" results don't make it re-ground β instead it guesses another absolute path, then another, and its own failed guesses pile up in context until it treats them as real "session data" and spirals. It even narrates that it's hallucinating, which means it knows but can't break the loop on its own at this size. That's precisely the execution-robustness axis β over-guessing, repeating failed calls, inventing paths β that v3 (aiming for before next Wednesday) is built to target. Not waving it away; it's the real limitation and it's the thing I'm working on.
What helps a lot right now:
- Cut the tool surface. You've got ~8 MCP servers + LSP wired in; every extra tool is another way to emit a bad-arg call. Fewer tools β far fewer of those "schema error / failed call" loops.
- Drop temperature to ~0.4 for agentic/grounding work (keep rep_pen ~1.1). The temp 1.0 I gave earlier was for the creative HTML task; high temp makes it invent paths and IDs.
- Don't cold-start with "explain the whole codebase." Hand it an entry file, or let it ls -R first and feed the tree. A 5820-line single file with no landing page (as @Jexposition noted) is about the hardest cold start there is.
- Fresh session per task, so stale paths from a prior run don't poison the new one β that's the "old session data" it keeps blaming.
@Jexposition β agreed on all of it, and thanks for the fair read on the q8 smoke test. Honest framing for a 12B local: it's a focused worker, not yet a drop-in autonomous agent for a cold large repo. That gap is squarely what v3 is for.


