unslothai/unsloth

DPO, ORPO - grad accumulation fix

Closed

#1,178 opened on Oct 24, 2024

 (1 comment) (0 reactions) (0 assignees)Python (5,658 forks)batch import
feature requesthelp wanted

Repository metrics

Stars
 (64,271 stars)
PR merge metrics
 (Avg merge 3d 15h) (525 merged PRs in 30d)

Description

Goal: Propagate gradient accumulation fix to DPO - much harder since it requires a full rewrite of https://github.com/huggingface/trl/blob/main/trl/trainer/dpo_trainer.py

Contributor guide