CodeMonkey1 commited on
Commit
4aa385f
Β·
verified Β·
1 Parent(s): e24b1a3

v2.1: native tool-calling model card

Browse files
Files changed (1) hide show
  1. README.md +20 -12
README.md CHANGED
@@ -3,14 +3,14 @@ base_model: unsloth/gemma-4-12b-it
3
  license: gemma
4
  language: [en]
5
  library_name: gguf
6
- tags: [gguf, llama.cpp, lm-studio, gemma, gemma-4, qlora, unsloth, methodology, coding-assistant, agent]
7
  pipeline_tag: text-generation
8
  quantized_by: CodeMonkey1
9
  ---
10
 
11
  # 🦾 Gemma-4-12B β€” Superpowers Edition
12
 
13
- ### *A local coding companion that thinks before it types.*
14
 
15
  Most models hear "build me a tool" and immediately vomit code. **Not this one.** Gemma-4-12B-Superpowers has six engineering disciplines fine-tuned **into its weights** β€” so it reaches for the right method on its own, **with no system prompt, no jailbreak, no babysitting.**
16
 
@@ -29,31 +29,39 @@ Most models hear "build me a tool" and immediately vomit code. **Not this one.**
29
 
30
  …and she **won't** over-think a one-liner β€” ask "what's 2+2" and you get **`4`**, not a discovery meeting.
31
 
 
 
 
 
 
 
32
  ## πŸ› οΈ Built for real work β€” WordPress, head to toe
33
 
34
  ~40% of her training lives in the trenches you actually work in: **PHP** (ACF, hooks, `WP_Query`, WP-CLI), **JavaScript** (Gutenberg blocks, enqueued scripts, jQuery/vanilla), and **CSS** (responsive, CLS-safe fonts, WCAG 2.2). She debugs *your* stack, not toy code.
35
 
36
  ## πŸš€ Quick start (LM Studio)
37
 
38
- 1. Download **`gemma-4-12b-it.Q4_K_M.gguf`** β†’ load in LM Studio.
39
- 2. **Leave the system prompt EMPTY.** The discipline is baked in β€” that's the whole point.
40
- 3. Talk to her like a sharp junior dev. Watch her ask the right questions.
 
41
 
42
- *Want her eyes too?* Also grab **`…BF16-mmproj.gguf`** β€” Gemma 4's vision projector. Drop it in the same folder as the text GGUF and LM Studio pairs it automatically; image input works (confirmed describing real photos). Vision weights are stock Gemma 4 β€” untouched by the text fine-tune.
43
 
44
  ## πŸ”§ Under the hood
45
 
46
- QLoRA on **`unsloth/gemma-4-12b-it`** via [Unsloth](https://github.com/unslothai/unsloth) β€” r=16, ~1,134 examples (389 discipline + 145 "answer-it-straight" + ~600 general to keep her smart), 2 epochs, **no system message in training** (so the behavior is unconditioned). Methodology adapted from the open-source [superpowers](https://github.com/obra/superpowers) skills (MIT).
47
 
48
- ## πŸ” v1.1 β€” serving fixes (2026-06-15)
49
 
50
- - **Chat template corrected** to the canonical Gemma-4-12B-it template. The earlier build shipped a stale template that made LM Studio's engine-protocol runtime throw `Failed to parse input` (HTTP 400) mid-generation. Fixed β€” code-gen eval now runs clean (6/6, no 400s) on q4 and q6.
51
- - **Vision restored.** The earlier `mmproj` was mis-converted and crashed on load; replaced with the stock (weight-compatible) Gemma-4-12B projector. Image input confirmed working.
 
52
 
53
  ## ⚠️ Status
54
 
55
- **v1 β€” experimental.** Code-precision A/B eval (q4 vs q6) shows both quants produce correct, idiomatic code across the probe set; the disciplines fire with no system prompt. It's a 12B running locally, so it follows the disciplines well but not frontier-perfectly. Inherits the [Gemma Terms of Use](https://ai.google.dev/gemma/terms).
56
 
57
  ---
58
 
59
- *Fine-tuned with stubbornness and ~$0.21 of GPU time. πŸ§ͺ*
 
3
  license: gemma
4
  language: [en]
5
  library_name: gguf
6
+ tags: [gguf, llama.cpp, lm-studio, gemma, gemma-4, qlora, unsloth, methodology, coding-assistant, agent, tool-calling, function-calling]
7
  pipeline_tag: text-generation
8
  quantized_by: CodeMonkey1
9
  ---
10
 
11
  # 🦾 Gemma-4-12B β€” Superpowers Edition
12
 
13
+ ### *A local coding companion that thinks before it types β€” and now calls tools natively.*
14
 
15
  Most models hear "build me a tool" and immediately vomit code. **Not this one.** Gemma-4-12B-Superpowers has six engineering disciplines fine-tuned **into its weights** β€” so it reaches for the right method on its own, **with no system prompt, no jailbreak, no babysitting.**
16
 
 
29
 
30
  …and she **won't** over-think a one-liner β€” ask "what's 2+2" and you get **`4`**, not a discovery meeting.
31
 
32
+ ## πŸ”§ NEW in v2 β€” native tool-calling
33
+
34
+ She now emits **Gemma-4's native `<|tool_call>` format**, so function/tool calling fires cleanly in LM Studio (and any engine that speaks the canonical Gemma-4 template) **with no `{action, parameters}` dispatcher and no AnythingLLM in the loop.** Trained against **real tool schemas** (74-tool catalog: filesystem, WordPress/MCP, skills) and **many-tools-at-once** menus, so she selects the right tool from a big menu and emits correct argument names instead of inventing them.
35
+
36
+ > **⚠️ Sampling matters for tool-calling.** Structured output (JSON, tool calls) needs the model to *repeat* tokens like `"`, `{`, `:` and field names. Keep `repeat_penalty` β‰ˆ **1.0–1.1** and `presence_penalty` off. High penalties (e.g. 2.0) shred tool calls β€” you'll see `<|"|>` leaks, hallucinated IDs, and half-line repeats. This is a sampling bug, not the model.
37
+
38
  ## πŸ› οΈ Built for real work β€” WordPress, head to toe
39
 
40
  ~40% of her training lives in the trenches you actually work in: **PHP** (ACF, hooks, `WP_Query`, WP-CLI), **JavaScript** (Gutenberg blocks, enqueued scripts, jQuery/vanilla), and **CSS** (responsive, CLS-safe fonts, WCAG 2.2). She debugs *your* stack, not toy code.
41
 
42
  ## πŸš€ Quick start (LM Studio)
43
 
44
+ 1. Download **`gemma-4-12b-it.Q6_K.gguf`** β†’ load in LM Studio.
45
+ 2. **Leave the discipline system prompt EMPTY.** The behavior is baked in β€” that's the whole point. (A short native-tool system prompt is fine if you want to bound her thinking.)
46
+ 3. For tool work: enable LM Studio's tool/MCP integration and keep sampling sane (see the warning above).
47
+ 4. Talk to her like a sharp junior dev. Watch her ask the right questions.
48
 
49
+ *Want her eyes too?* Also grab **`mmproj-gemma-4-12B-it-BF16.gguf`** β€” Gemma 4's vision projector. Drop it in the same folder as the text GGUF and LM Studio pairs it automatically; image input works (confirmed describing real photos). Vision weights are stock Gemma 4 β€” untouched by the text fine-tune.
50
 
51
  ## πŸ”§ Under the hood
52
 
53
+ QLoRA on **`unsloth/gemma-4-12b-it`** via [Unsloth](https://github.com/unslothai/unsloth). v2.1: **r=32, lora_alpha=64, 3 epochs, max_seq_len=4096**, ~808 examples (553 discipline + 145 "answer-it-straight" negatives + 60 tool + 50 agentic, blended with general/Dolly data to keep her smart), **trained with the canonical Gemma-4 chat template** so what she learns is exactly what LM Studio parses β€” and **no system message in training** (so the discipline is unconditioned). Methodology adapted from the open-source [superpowers](https://github.com/obra/superpowers) skills (MIT).
54
 
55
+ ## 🧬 Version history
56
 
57
+ - **v2.1 (2026-06-16) β€” native tool-calling.** Retrained on the canonical Gemma-4 template against real tool schemas + large tool menus. Emits native `<|tool_call>` (`has_tool_calls: True` where v1 returned a fabricated answer). Garbling traced to a serving-side sampling preset, not the weights. Ships q6 + the stock vision projector.
58
+ - **v1.1 (2026-06-15) β€” serving fixes.** Corrected the chat template (the earlier build shipped a stale template that 400'd LM Studio's engine-protocol runtime mid-generation); replaced the mis-converted mmproj with the stock weight-compatible Gemma-4-12B projector.
59
+ - **v1 β€” experimental.** Disciplines fired with no system prompt; tool-calling only worked in a non-native `{action, parameters}` dialect.
60
 
61
  ## ⚠️ Status
62
 
63
+ **v2.1.** Native tool-calling confirmed; disciplines fire with no system prompt; code-gen runs clean. It's a 12B running locally, so it follows the disciplines well but not frontier-perfectly. Inherits the [Gemma Terms of Use](https://ai.google.dev/gemma/terms).
64
 
65
  ---
66
 
67
+ *Fine-tuned with stubbornness and a few dollars of GPU time. πŸ§ͺ*