Skip to content

Assitant model may on a different device#27995

Merged
ArthurZucker merged 4 commits intohuggingface:mainfrom
jiqing-feng:assist
Jan 11, 2024
Merged

Assitant model may on a different device#27995
ArthurZucker merged 4 commits intohuggingface:mainfrom
jiqing-feng:assist

Conversation

@jiqing-feng
Copy link
Copy Markdown
Contributor

@jiqing-feng jiqing-feng commented Dec 13, 2023

Hi @gante . Would you please have a look at this PR. The motivation is that I try to put assistant model and self model in different cuda device, or put assistant model on CPU. This PR should enable assistant model on a different device.

I have tested it on both decoder-only model and encoder-decoder model. Could you please help me to review it? Thanks!

@jiqing-feng jiqing-feng marked this pull request as ready for review December 13, 2023 08:27
@jiqing-feng
Copy link
Copy Markdown
Contributor Author

Hi @gante @amyeroberts . Would you please help me to review it? Thx!

@amyeroberts amyeroberts requested a review from gante January 10, 2024 11:50
Copy link
Copy Markdown
Contributor

@gante gante left a comment

Choose a reason for hiding this comment

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

LGTM, thank you for the fix 💛

@gante gante requested a review from ArthurZucker January 10, 2024 18:22
Copy link
Copy Markdown
Collaborator

@ArthurZucker ArthurZucker left a comment

Choose a reason for hiding this comment

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

Thanks, would be nice to have a reproducer to add as a test but good to merge

@ArthurZucker ArthurZucker merged commit 8205b26 into huggingface:main Jan 11, 2024
@jiqing-feng jiqing-feng deleted the assist branch December 19, 2024 02:02
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.

3 participants