Skip to content
New issue

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

Adapter name for SFT trainer #1649

Open
para-zhou opened this issue May 18, 2024 · 1 comment
Open

Adapter name for SFT trainer #1649

para-zhou opened this issue May 18, 2024 · 1 comment

Comments

@para-zhou
Copy link

Hi, I appreciate that the PPOTrainer is enabled to assign ''adapter_name'' to trainable adapters, would you please also enable SFTTrainer with this function?

@younesbelkada
Copy link
Collaborator

Hi @para-zhou
Thanks for the issue ! adapter_name is used on our AutoModelForxxx classes that are internal to TRL. In order to switch between adapters in SFTTrainer you should first create your PeftModelForxxx and call model.set_adapter(adapter_name)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants