transformers
make run_generation more generic for other devices
#25133
Merged

make run_generation more generic for other devices #25133

ji-huazhong
ji-huazhong make run_generation more generic for other devices
fc08a1b8
HuggingFaceDocBuilderDev
sgugger
sgugger commented on 2023-07-27
ji-huazhong ji-huazhong force pushed 3 years ago
ji-huazhong ji-huazhong force pushed 3 years ago
ji-huazhong ji-huazhong force pushed 3 years ago
ji-huazhong ji-huazhong force pushed 3 years ago
sgugger
sgugger approved these changes on 2023-07-27
ji-huazhong use Accelerate to support any device type it supports.
795efd65
ji-huazhong ji-huazhong force pushed to 795efd65 3 years ago
make style
ff1256d2
ji-huazhong
muellerzr
muellerzr commented on 2023-07-27
fix error usage of accelerator.prepare_model
20cf9891
ji-huazhong
muellerzr
muellerzr commented on 2023-07-27
ji-huazhong use `PartialState` to make sure everything is running on the right de…
1ae7ee48
ji-huazhong
sgugger
sgugger approved these changes on 2023-07-28
sgugger
sgugger sgugger merged afa96fff into main 3 years ago
ji-huazhong ji-huazhong deleted the improve-text-generation branch 2 years ago

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone