Files
Table with columns: file, what| file | what |
|---|
adapter_model.safetensors, adapter_config.json | the edit as a rank-8 PEFT LoRA (r = lora_alpha = 8, 400 KB) on model.language_model.layers.23.mlp.down_proj, for vLLM or PEFT on the bf16 base |
gemma-4-E4B-terse-lora.gguf | the same edit as a GGUF LoRA (400 KB) for llama.cpp, to load on top of the base GGUF below |
astro_manifest.json | written by astro-weights: SHA-256 of each LoRA factor, requested rank and reconstruction residual |
LICENSE | Apache License 2.0 text |
SHA-256:
Table with columns: file, sha256| file | sha256 |
|---|
adapter_model.safetensors | d992613c1caf357ad22653fdb134ad75c52c2c5b664086498cb58b49e1addb26 |
gemma-4-E4B-terse-lora.gguf | da280d66946905a2d6fc161c0f2ac93e47490f7ed6ce74000d15ca404ca55477 |
base GGUF: gemma-4-E4B-it-Q4_K_M.gguf from unsloth/gemma-4-E4B-it-GGUF (revision bfc15c38) | 85a896a047553e842f25297ee5b031d64ff30147d9c4af17b1e4b394cd1fab87 |
What was changed
One tensor, model.language_model.layers.23.mlp.down_proj.weight. Layer 23 was chosen by a direction gate on prompt activations, and strength 0.05 was picked on a MATH-500 development split from a sweep of 7 strengths with 2 random controls. One candidate went on to confirm and test. The weight change is exported as a rank-8 LoRA from the float delta; reconstruction residual 3.8e-8 (astro_manifest.json). Norm screen value 7.149 (limit 28.596).
Evaluation
The astro-weights 0.3 gate ran once on a sealed GSM8K test split (verdict confirmed). Settings: chat template with thinking off, the question followed by a \boxed{} instruction, sampling temperature 1.0, top_p 0.95, top_k 20, presence penalty 1.5, 8,192-token cap, 4 samples per item. Paired against the unedited model on the same items. No answer in any arm hit the cap. vLLM 0.33.0, bf16.
Sealed test, 313 GSM8K items, 4 samples each:
Table with columns: arm, accuracy diff vs base (95% CI), tokens per item vs base| arm | accuracy diff vs base (95% CI) | tokens per item vs base |
|---|
| this adapter | +1.52 pp [+0.05, +2.99] | −48.0 (403.8 to 355.7, −11.9%) |
| system prompt "Be concise." (no adapter) | +3.04 pp [+1.44, +4.63] | −185.0 (−45.8%) |
| this adapter + the same prompt | +2.16 pp [+0.07, +4.24] | −234.7 (−58.1%) |
| scripted steering direction, strength 1.0 (report only) | +1.76 pp [+0.48, +3.04] | −1.8 (−0.4%) |
The gate's other checks:
- Screens: perplexity ratio 1.0835 (limit 1.1). Last-token KL 0.0408 (limit 0.1) on 64 neutral IFEval prompts.
- Confirm split (428 items, 1 sample): accuracy +1.17 pp [−1.77, +4.10], −47.9 tokens per item. The edit beat all 20 norm-matched random-direction controls (limit 19). None of the 21 random controls passed the full gate.
- Margins: accuracy margin 2 points, fixed before scoring. The token change had to exceed the measured noise floor (−6.38 tokens per item). Minimum detectable accuracy effect on test: 2.10 points.
- Regression suites: CI lower bounds were +4.02 pp on GSM8K and −1.66 pp on IFEval, both inside the −2 point margin.
Function calling: BFCL multi-turn (report only)
This is a side-effect check, not part of the gate. The adapter was selected on math problems and never tuned on tool use. We ran the four multi-turn categories of the Berkeley Function-Calling Leaderboard to see what it does to an agent loop.
Settings: BFCL v4 at gorilla commit 6ea57973, 200 tasks per category, all tasks scored, 4 samples per task. vLLM 0.33.0, bf16, --enable-auto-tool-choice --tool-call-parser gemma4, native tool calls, thinking off. Sampling as above (temperature 1.0, top_p 0.95, top_k 20, presence penalty 1.5), 8,192-token cap per turn. Scoring follows BFCL's multi_turn_checker, reimplemented in astro-weights; replaying BFCL's own ground-truth calls through it passes 200 of 200 tasks in every category. Differences are edit minus base, paired per task with the 4 samples averaged first; intervals are 95% bootstrap over tasks.
Table with columns: category, base pass, edit pass, pass diff (95% CI), output tokens per task, base to edit, token diff (95% CI), tool calls per task diff (95% CI)| category | base pass | edit pass | pass diff (95% CI) | output tokens per task, base to edit | token diff (95% CI) | tool calls per task diff (95% CI) |
|---|
multi_turn_base | 20.12% | 21.62% | +1.50 pp [−0.25, +3.25] | 402.3 to 347.4 | −13.6% [−16.4, −10.9] | +3.2% [−0.03, +6.43] |
multi_turn_miss_func | 0.50% | 0.12% | at floor, see below | 561.4 to 470.1 | −16.3% [−18.9, −13.6] | +2.0% [−1.7, +5.6] |
multi_turn_miss_param | 18.88% | 20.50% | +1.62 pp [−0.38, +3.62] | 511.1 to 434.2 | −15.0% [−17.9, −12.5] | +6.5% [+3.2, +9.8] |
multi_turn_long_context | 12.12% | 13.88% | +1.75 pp [+0.38, +3.38] | 698.7 to 622.9 | −10.8% [−17.7, −3.7] | +2.6% [−0.9, +6.1] |
| all four (800 tasks) | 12.91% | 14.03% | +1.12 pp [+0.38, +1.91] | 543.3 to 468.7 | −13.7% [−16.2, −11.2] | +3.7% [+2.0, +5.4] |
How to read it:
- Tokens. The adapter writes 11% to 16% fewer output tokens in every category, and every interval excludes zero. This is the only effect we claim here.
- Pass rate: no gain is claimed. The pooled difference of about +1 point is the same size as the run-to-run noise of the base model. Comparing the base model with itself (samples 1 and 2 against samples 3 and 4) gives −0.06 pp [−1.56, +1.38] on the 800 tasks, and up to ±5 points within one category. The table also reads several intervals with no correction for doing so. What the data supports is that the adapter did not lower the pass rate in any category that carries information.
multi_turn_miss_func is at the floor. The base model passed 4 of 800 runs and the adapter 1 of 800. A category that almost nothing passes cannot show whether the adapter helps or hurts, so it gives no information on pass rate. It is not evidence of "no effect".
- Tool calls. The adapter makes slightly more tool calls per task while writing less text. We have not investigated why.
- Parse loss. An assistant turn that produced no parsed tool call but whose text looks like one was rare in both arms: 80 of 25,068 turns for base (0.32%) and 48 of 25,514 for the adapter (0.19%). It is too small to explain any difference in the table.
- Cap. One base turn and no adapter turn reached the 8,192-token cap.
Caveats that apply to both arms:
- BFCL's checker does not score turns that have no ground-truth call. In
miss_func and miss_param these are the turns where the right move is to ask the user instead of calling a tool. A model that calls a tool there anyway is not penalised on that turn. We kept BFCL's behaviour so the numbers stay comparable with BFCL, which means these two categories do not measure whether the model asks when it should.
- Absolute pass rates are low. This is a 4B-class model, and we found no published BFCL multi-turn score for Gemma 4 E4B to compare with, so read the columns as base against adapter under one setup, not as leaderboard numbers.
- A system prompt arm was not run on BFCL.
Use
vllm serve google/gemma-4-E4B-it --enable-lora --max-lora-rank 8 \ --lora-modules terse=glitch401/gemma-4-E4B-terse
from transformers import AutoModelForImageTextToTextfrom peft import PeftModel model = AutoModelForImageTextToText.from_pretrained("google/gemma-4-E4B-it", dtype="bfloat16", device_map="auto")model = PeftModel.from_pretrained(model, "glitch401/gemma-4-E4B-terse")
The adapter's module names follow the checkpoint's multimodal layout (model.language_model.layers.N). Load the base with AutoModelForImageTextToText so these names match.
llama.cpp, with gravity (our llama.cpp fork), which checks both files against their hashes before loading and reports the adapter's strength and hash on every answer:
llama-server -m gemma-4-E4B-it-Q4_K_M.gguf --lora gemma-4-E4B-terse-lora.gguf \ --model-sha256 85a896a047553e842f25297ee5b031d64ff30147d9c4af17b1e4b394cd1fab87 \ --lora-sha256 da280d66946905a2d6fc161c0f2ac93e47490f7ed6ce74000d15ca404ca55477 \ --eval-mode -np 1 -ngl 99
In eval mode every adapter starts at strength 0. Send "lora": [{"id": 0, "scale": 1}] in the request to turn the edit on. If you set sampling fields such as top_p or presence_penalty, also send "samplers" with the matching stages.
To make the GGUF LoRA yourself from the PEFT adapter in this repo:
pip install 'astro-weights[gguf]'astro-weights export ADAPTER_DIR --gguf gemma-4-E4B-terse-lora.gguf --arch gemma4
Limitations
- Gated only on GSM8K, plus IFEval as a regression suite, in English with thinking off. BFCL multi-turn function calling was measured as a report-only side check (see Evaluation); no accuracy gain is claimed from it. Not checked on other tasks or with thinking enabled. The GGUF LoRA was checked only to load and run on the Q4_K_M base; none of the numbers above were measured on it.
- A system prompt alone cuts more tokens and gains more accuracy on the same test items (see Evaluation).
- The test items were scored more than once: they are also part of an earlier sealed test of this adapter that compared other arms. The gate configuration was fixed before that earlier score.
- One layer, one direction, one strength. Larger strengths were not tested on test.
License
Base model: google/gemma-4-E4B-it, Apache-2.0 (Gemma 4 license). Modification: mlp.down_proj.weight in layer 23 is changed as described above. No other weights are changed.