Downloads · 30 days
10
14% of all-time downloads
shahfazal/lgtm-575-gemma4-e4b-v0.1
lgtm-575-gemma4-e4b-v0.1 is a text generation model from shahfazal. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as mit.
[](https://github.com/shahfazal/lgtm-575/blob/main/LICENSE)
Downloads · 30 days
10
14% of all-time downloads
All-time downloads
74
Public
Repo size
234 MB
Likes
0
Public
Click a slice to open those files.
.safetensors202 MB · 86%
From the Hugging Face model README
v0.1: research artifact, not a production model.
This is the first iteration in a four-part methodology series. Form (5-7-5 syllable compliance) did NOT improve to a statistically significant degree under SFT (McNemar's exact test, p=0.167, n=100, n_discordant=19). Content metrics improved substantially. v0.1 is published as a reproducibility anchor for the lgtm-575 blog series, not as a tool for production code review.
The primary deliverable of this project is the eval harness, not these weights. v1.0 (reasoning-token architecture) is in progress.
A LoRA adapter on Gemma 4 E4B that distills a PR code-review comment into a 5-7-5 haiku. The project's primary deliverable is the evaluation harness, not the model; the model is the artifact the harness was built to judge.
The student sees only a code diff and writes a haiku review from scratch (autonomous reviewer: it finds and phrases the issue itself). The human reviewer comment is never shown to the model; it was used only to build the teacher's distillation target and to score the output. That framing makes relevance a stiff test, by design.
Held-out 100 (Python subset of ronantakizawa/codereview-bench), scored by the canonical harness (scripts/score.py) with the same prompt and greedy decoding on both the base and the fine-tuned model (bench-drop discipline: same code, same set, both sides).
| Metric | Base floor | v0.1 | Golden number | Verdict |
|---|---|---|---|---|
| #1 Form (valid 5-7-5) | 14% (14/100) | 7% (7/100) | >= 45% | Miss |
| #3 Relevance (real-pair mean) | 0.321 | 0.394 | >= 0.37 | Hit |
| #2 Category (4-class macro-F1) | 0.319 | 0.458 | hold gap (>= +0.139) | Hit |
Details:
Golden numbers were committed before any SFT run, so the result cannot be retrofit. The form target was the ambitious one (~3.2x the floor); a miss there is reported honestly and is on-thesis for a project whose argument is that the eval mattered more than the model.