sft_trainer
incompatible with accelerator.gather_for_metrics
#3047
Labels
sft_trainer
incompatible with accelerator.gather_for_metrics
#3047
Reproduction
When using
trl.SFTTrainer
as of currentmain
at https://github.com/huggingface/trl/tree/e3244d2d096ff1e2e248c931d06d39e165e20623, I get this errorHere's what
inputs["attention_mask"]
looks like:It seems #3012 hit this too, but closed it. Their solution is valid:
System Info
Checklist
The text was updated successfully, but these errors were encountered: