Downloads · 30 days
50
16% of all-time downloads
naazimsnh02/FabGemma
FabGemma is a text generation model from naazimsnh02. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as gemma.
<p align="center" <img src="Fab.png" alt="FabGemma" width="600" </p
Downloads · 30 days
50
16% of all-time downloads
All-time downloads
314
Public
Parameters
12B
24 GB on disk
Likes
5
Public
Click a slice to open those files.
.safetensors23.9 GB · 100%
From the Hugging Face model README
FabGemma-12B is an advanced, reasoning-first optimization of Google's Gemma 4 12B Instruct. It has been specifically fine-tuned to inject advanced agentic coding, autonomous task planning, and rigorous debugging workflows into the base model's standard instruction-following capabilities.
By utilizing supervised fine-tuning (SFT) on complex agentic traces, this model learns a crucial habit: it reasons and plans before it acts.
google/gemma-4-12B-it (Dense Transformer).FabGemma-12B was trained on 15.2 million tokens distilled directly from high-tier coding agent sessions.
Glint-Research/Fable-5-traces (4,665 total examples)| Attribute | Metrics & Distribution |
|---|---|
| Total Examples | 4,665 (with 100 held out for evaluation) |
| Average Sequence Length | ~3.3K tokens |
| P99 Sequence Length | ~9.2K tokens |
| Maximum Sequence Length | ~24.9K tokens |
| Behavioral Mix | 81% Tool-use interactions / 19% Direct text responses |
The model organizes its outputs into clear, cognitive steps. It will typically isolate its thought process using explicit XML-style formatting:
<think>
[Step-by-step problem dissection, edge-case identification, and tool strategy]
</think>
ASSISTANT (tool call) <Tool> input={...}
The fine-tuning phase utilized Unsloth, TRL, Transformers, and PEFT with the following configuration:
q, k, v, o, gate, up, downbf16 utilizing AdamW (Weight decay: 0.01)Validation metrics showed steady improvement across training epochs without any signs of degradation or collapse.
When stacked against its own base model on 105,525 unseen response tokens, FabGemma-12B showed massive efficiency leaps in agentic workflows:
| Performance Metric | Base Model (gemma-4-12B-it) | FabGemma-12B | Net Improvement |
|---|---|---|---|
| Evaluation Loss | 1.580 | 0.737 | −53.4% |
| Perplexity | 4.856 | 2.089 | −57.0% |
| Mean Per-Example Loss | 1.747 | 0.760 | −56.5% |
You can pull and deploy the merged checkpoint directly using Hugging Face transformers:
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "naazimsnh02/FabGemma-12B"
tok = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=torch.bfloat16, device_map="auto")
messages = [{"role": "user", "content":
"USER: There's a failing test test_auth.py::test_expired_token. Investigate why and propose a fix."}]
inputs = tok.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt").to(model.device)
out = model.generate(inputs, max_new_tokens=512, do_sample=True,
temperature=0.7, top_p=0.9, repetition_penalty=1.05) # rep-penalty avoids loops
print(tok.decode(out[0][inputs.shape[1]:], skip_special_tokens=True))
Before dropping this model straight into a production pipeline, keep these architectural realities in mind:
google/gemma-4-12B-it foundation. Always vet code outputs before execution.Gemma License)AGPL-3.0)Disclaimer: This model checkpoint is experimental and provided "as-is" for research, local testing, and collaborative evaluation. There are no operational warranties attached to its outputs.