Downloads · 30 days
0
rpDungeon/glimmer-b200-final
glimmer-b200-final is a machine learning model from rpDungeon. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as gemma.
This is the B200 production-scale validation of the instruct-subspace gradient-mask technique on google/gemma-4-E4B-it. The model was trained on a deliberately wild 7-corpus mix at 16k context, with a high-rank mask (…
Downloads · 30 days
0
Access
Public
Updated May 17, 2026
Repo size
16.5 GB
Likes
0
Public
Click a slice to open those files.
.safetensors16.4 GB · 100%
From the Hugging Face model README
This is the B200 production-scale validation of the instruct-subspace gradient-mask technique on google/gemma-4-E4B-it. The model was trained on a deliberately wild 7-corpus mix at 16k context, with a high-rank mask (rank 256) protecting the directions in weight space that carry instruction-following behavior.
The goal was to see whether the mask could absorb a much larger and more aggressive corpus than any of the small-scale single-source experiments (T2 INSTRUCT, T2 CPT-marvin, SD CPT — each ~6-34M tokens) while still preserving IFEval. Answer: largely yes, with one caveat (long-form repetition).
| Setting | Value |
|---|---|
| Hardware | 1× NVIDIA B200 (RunPod secure tier, $5.51/hr) |
| Base | google/gemma-4-E4B-it |
| LoRA | r=64, α=128 (4:1 ratio), all linear targets |
| Instruct-subspace mask | rank 256, per-step gradient projection via post-accumulate-grad hook (see TIES sibling card for math) |
| Sequence length | 16384 (cce_patch was incompatible with transformers 5.8.1; without CCE 32k OOM'd on 178GB B200, so dropped to 16k) |
| Optimizer | paged adamw 8-bit, lr 5e-5, bf16 mixed precision, PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True |
| Epochs | 1 (~2083 steps; trainer cleanup saved at step 2000) |
| Wall clock | 23752s (~6.6h) |
| Total cost | ~$41-42 |
| Source | Description | Note |
|---|---|---|
erotica_quality_cleaned (full) | Mixed erotic CHYOA concatenated into cohesive storylines | Primary signal; the full set, not the 30% subset previous balancing runs used |
counter_signal_training_balanced | Mixed-genre fiction, some lewd, predominantly good prose | Non-erotica style anchor |
erotic_books_filtered | Filtered novels | |
rosier_inf_strict (subset) | Heavily-rated adult fiction | "if you really want to fry it" tier |
spring_dragon | Old AI-Dungeon-era 2nd-person text-adventure | Adventure mode signal |
terry_pratchett (chapter set) | Discworld and other Pratchett novels | High-quality British genre fiction style |
worm_chapters | Worm web serial | Long-form descriptive prose |
Total chunked at 32k tokens with 256-token overlap (Gemma 4 tokenizer); shuffled with seed=42; trained at 16k effective ctx (chunks split when longer).
Same harness as the rest of the E4B masking experiment lineage (IFEval strict 541 prompts + 10-prompt style gen + grpo_v12d metrics including V3 humanness classifier output). All numbers from the bf16 GGUF.
| Metric | base-it | B200 mix r=256 | Δ vs base |
|---|---|---|---|
| IFEval strict prompt-level | 83.36 | 78.00 | -5.36pp |
| IFEval strict instruction-level | — | 84.53 | — |
| IFEval loose prompt-level | — | 81.52 | — |
| V3 humanness h_delta | -16.74 | -12.89 | +3.85 (top of E4B cohort) |
| q_prob (qwen-DPO classifier — interpret with caution) | 0.098 | 0.182 | +0.084 |
| det_open_frac | 0.322 | 0.248 | -0.074 |
| amod_frac | 0.142 | 0.065 | -0.077 |
| dialogue_frac | 0.417 | 0.423 | flat |
| contrast_per_1k | 6.26 | 1.27 | -4.99 |
| em_dash_per_1k | 1.60 | 0.47 | -1.13 |
| slop/1k | 19.94 | 13.62 | -6.32 (best non-base) |
| rep3g/1k | 7.39 | 50.30 | +42.91 ⚠️ |
| word_count (avg) | 880 | 980 | +100 |
| sent_count (avg) | 64.1 | 78.1 | +14 |
| Path | Description |
|---|---|
adapter/ | Final LoRA adapter (558 MB safetensors + tokenizer + chat template + adapter_config) |
merged/ | Full merged bf16 safetensors model (15.9 GB) — adapter applied to google/gemma-4-E4B-it |
A bf16 GGUF + Q6_K quant are published at ToastyPigeon/Gemma4-Test-GGUFs/Gemma4-E4B-b200-mix-masked-r256.{bf16,Q6_K}.gguf for llama.cpp use.
ToastyPigeon/Gemma4-Test-GGUFs (T2 INSTRUCT/CPT masked, SD CPT masked at r=64 and r=256, TIES merge)Apply antirep DPO (the Stage 4 approach that worked on Qwen Marvin: ~250-500 pairs, chosen=clean, rejected=repetitive, mask_thinking=true) to clean up the rep3g/1k score, then re-eval. Target: bring rep3g/1k below 15 while preserving the h_delta/slop wins.
Gemma 4 defaults: temperature=1.0, no top_p / top_k / rep_penalty.