We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
llamafactory
this problem in "LLaMA-Factory/src/llamafactory/train/dpo/trainer.py" def get_batch_loss_metrics
# in def get_batch_loss_metrics metrics[f"{prefix}logps/rejected"] = policy_chosen_logps.mean().item() metrics[f"{prefix}logps/chosen"] = policy_rejected_logps.mean().item() metrics[f"{prefix}logits/rejected"] = policy_chosen_logits.mean().item() metrics[f"{prefix}logits/chosen"] = policy_rejected_logits.mean().item()
it should be
metrics[f"{prefix}logps/rejected"] = policy_rejected_logps.mean().item() metrics[f"{prefix}logps/chosen"] = policy_chosen_logps.mean().item() metrics[f"{prefix}logits/rejected"] = policy_rejected_logits.mean().item() metrics[f"{prefix}logits/chosen"] = policy_chosen_logits.mean().item()
No response
The text was updated successfully, but these errors were encountered:
fix #6050
dc82821
thanks for your reporting
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Reminder
System Info
llamafactory
version: 0.9.1.dev0Reproduction
this problem in "LLaMA-Factory/src/llamafactory/train/dpo/trainer.py"
def get_batch_loss_metrics
it should be
Expected behavior
No response
Others
No response
The text was updated successfully, but these errors were encountered: