Naive full fine-tuning of large pretrained LLMs often damages the base model's general abilities — a well-known trade-off when SFT is pushed too far. PoSTMEDIA's recipe is built specifically to avoid this.
For Lux-V1, three design choices keep the Gemma-4 base intact while still allowing deep adaptation:
1from transformers import AutoModelForCausalLM, AutoTokenizer
2import torch
3
4model_name = "PoSTMEDIA/Lux-V1"
5tokenizer = AutoTokenizer.from_pretrained(model_name)
6model = AutoModelForCausalLM.from_pretrained(
7 model_name,
8 torch_dtype=torch.bfloat16,
9 device_map="auto",
10)
11
12prompt = "Explain why preserving base-model capability matters during fine-tuning."
13inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
14outputs = model.generate(**inputs, max_new_tokens=512)
15print(tokenizer.decode(outputs[0], skip_special_tokens=True))
1@misc{lux_v1_2026,
2 title = {Lux-V1: Capability-Preserving Full Fine-Tuning of Gemma-4-26B-A4B},
3 author = {PoSTMEDIA AI Lab},
4 year = {2026},
5 publisher = {Hugging Face}
6}