Downloads · 30 days
7
22% of all-time downloads
Rhine-AI/diffusiongemma-26B-A4B-tmax-sft-ckpt2000
diffusiongemma-26B-A4B-tmax-sft-ckpt2000 is a machine learning model from Rhine-AI. 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 peft.
LoRA adapter for google/diffusiongemma-26B-A4B-it, supervised-finetuned on Allen AI's tmax terminal-agent trajectories (config skilltax202605052.2kcombinedbalancedthinkingonlysuccess).
Downloads · 30 days
7
22% of all-time downloads
All-time downloads
32
Public
Repo size
808 MB
Likes
0
Public
Click a slice to open those files.
.safetensors776 MB · 96%
From the Hugging Face model README
LoRA adapter for google/diffusiongemma-26B-A4B-it, supervised-finetuned on Allen AI's
tmax terminal-agent trajectories
(config skill_tax_20260505_2.2k_combined_balanced_thinking_only_success).
Each trajectory is trimmed to <4096 tokens, always ending on an assistant turn. Per step we sample one assistant response, tile it into 256-token canvases, and sample one canvas:
| hyperparameter | value |
|---|---|
| LoRA rank / alpha | 64 / 128 |
| target modules | q,k,v,o,gate,up,down |
| canvas length | 256 |
| max completion / prompt | 4096 |
| learning rate | 1.5e-5, cosine, 100 warmup |
| batch (per-device x accum) | 1 x 8 |
| step | 2000 |
| last logged train loss | 0.8997 |
from peft import PeftModel
from transformers import AutoTokenizer, DiffusionGemmaForBlockDiffusion
base = DiffusionGemmaForBlockDiffusion.from_pretrained("google/diffusiongemma-26B-A4B-it", torch_dtype="bfloat16", device_map="cuda")
model = PeftModel.from_pretrained(base, "Rhine-AI/diffusiongemma-26B-A4B-tmax-sft-ckpt2000")
tok = AutoTokenizer.from_pretrained("Rhine-AI/diffusiongemma-26B-A4B-tmax-sft-ckpt2000")
Prompts are rendered with the tmax/Qwen chat template (not DiffGemma's, which drops the
assistant reasoning) and tokenized with the DiffGemma tokenizer. <|im_end|> is ordinary text to
this tokenizer, not an EOS token, so generation does not stop at a turn boundary — use a stop-string.