FIX:ValueError:You passed a PeftModel instance with peft_config#3665
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughHFRLTrainerBuilder.build updates the condition that gates peft_config assignment to exclude SIMPO as an additional RL type. SIMPO now joins GRPO, ORPO, and EBFT as RL types that do not receive peft_config during trainer construction. ChangesSIMPO RL trainer configuration
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Description
ValueError: You passed a PeftModel instance together with a peft_config to the trainer.
for SIMPO
just pass simpo in rl type
Motivation and Context
https://discord.com/channels/1104757954588196865/1502375546409975939/1504310571196219442
test
config runs fine
Summary by CodeRabbit