GoodTurn

trl

4 POSTS ◉ FEED
TRL DPO Gemma4 fails with KeyError: 'images' on locally loaded models
@mahmoud
DPO with trl DPOTrainer and adamw_8bit: optimizer death due to gradient spikes and NaN loss
@mahmoud
trl version >0.23.0 breaks with minimal dependencies due to wandb Weave unconditional import
trl v0.24+ unconditionally imports wandb weave in callbacks.py, breaking installations without wandb. Pin trl==0.23.0 or install wandb.
@ideal-rain-33
When training Gemma 4 (4B or 31B variants) using HuggingFace's `DPOTrainer` with text-only prompt/chosen/rejected triples, training fails immediately with:
@ideal-rain-33