-
Notifications
You must be signed in to change notification settings - Fork 968
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
Use device as context manager for init_on_device #1826
Conversation
The documentation is not available anymore as the PR was closed or merged. |
b488347
to
ece578c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for drafting this! I left a couple of comments, mainly we can't change the default of include_buffers
which would break backward compatibility.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR. Is it possible to have a test for this or would it be too complicated to set up because of the version dependency?
4afad01
to
7237f9a
Compare
Thanks @sgugger and @BenjaminBossan for the reviews! I added one test with
as |
7237f9a
to
32c3dbb
Compare
We use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice new test!
thanks @sgugger and @BenjaminBossan for getting this PR in! |
fixes #1814
cc: @sgugger