Instructions to use nbeerbower/Gemma4-Gutenberg-31B-LoRA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use nbeerbower/Gemma4-Gutenberg-31B-LoRA with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("google/gemma-4-31B-it") model = PeftModel.from_pretrained(base_model, "nbeerbower/Gemma4-Gutenberg-31B-LoRA") - Notebooks
- Google Colab
- Kaggle
Gemma4-Gutenberg-31B-LoRA
The standalone LoRA adapter (r=64, text decoder only) behind
nbeerbower/Gemma4-Gutenberg-31B
— a Gutenberg-series ORPO finetune of
google/gemma-4-31B-it for
literary, novelistic prose.
~1.96 GB. Apply to the standard base, or to any architecturally-identical Gemma-4-31B variant — it transplants cleanly onto the abliterated heretic base (the adapter dominates the prose voice regardless of base; see Gemma4-Gutenberg-31B-Heretic).
Use
import torch
from transformers import AutoModelForCausalLM
from peft import PeftModel
base = AutoModelForCausalLM.from_pretrained("google/gemma-4-31B-it", dtype=torch.bfloat16)
model = PeftModel.from_pretrained(base, "nbeerbower/Gemma4-Gutenberg-31B-LoRA")
# or .merge_and_unload() for a standalone full model
Training
ORPO (β=0.1) on schneewolflabs/Athanorlite-DPO
(14,816 pairs; the Gutenberg "Encore" mix + more). LR 5e-5 cosine, eff batch 32,
max_len 2048, 1 epoch on 1× NVIDIA GB10, via
Merlina. reward_accuracy 0.18 → 0.91.
Full details on the merged model card.
License
Apache-2.0 (matching the Gemma 4 base).
- Downloads last month
- 34
Model tree for nbeerbower/Gemma4-Gutenberg-31B-LoRA
Base model
google/gemma-4-31B