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

Adalora deepspeed #1625

Merged
merged 1 commit into from
Apr 12, 2024
Merged

Adalora deepspeed #1625

merged 1 commit into from
Apr 12, 2024

Conversation

sywangyi
Copy link
Contributor

@sywangyi sywangyi commented Apr 5, 2024

fix crash when enable deepspeed zero3 + adalora

Copy link
Member

@BenjaminBossan BenjaminBossan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot, these changes make sense. I have some minor comments but no real blockers. Also pinging @pacman100 as our DS expert.

src/peft/tuners/adalora/model.py Outdated Show resolved Hide resolved
src/peft/tuners/adalora/model.py Outdated Show resolved Hide resolved
src/peft/tuners/adalora/layer.py Outdated Show resolved Hide resolved
Copy link
Contributor

@pacman100 pacman100 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @sywangyi for the fixes when using AdaLoRA with DeepSpeed Stage 3 😄! Left a comment inline with a suggestion from Benjamin.

src/peft/tuners/adalora/model.py Outdated Show resolved Hide resolved
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Copy link
Member

@BenjaminBossan BenjaminBossan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the adjustments, LGTM. Sourab, please merge when you think it's ready.

Copy link
Contributor

@pacman100 pacman100 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @sywangyi for iterating and simplifying the logic!

@pacman100 pacman100 merged commit b0f1bb4 into huggingface:main Apr 12, 2024
14 checks passed
DTennant pushed a commit to DTennant/peft that referenced this pull request Apr 16, 2024
DTennant pushed a commit to DTennant/peft that referenced this pull request Apr 19, 2024
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

Successfully merging this pull request may close these issues.

4 participants