forked from microsoft/DeepSpeedExamples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify codes so that different accelerators can be called according t…
…o specific device conditions (microsoft#844) * modify inference-test.py to meet with the requirement of using Intel's device * modify ds-hf-compare.py to meet with the requirement of using Intel's device * use deepspeed.accelerator.get_accelerator() to replace the original hard code about cuda to access and enable the accelerators available(not just Nvidia's GPU) in the current device * column 117: self.model.xpu().to(self.device)--->self.model.to(self.device) for generalization. * For upstream, use get_accelerator() to hide backend. Add bf16 dtype for cpu. * Update README.md * Delete redundant comment code * Delete +123 in README title * delete checkpoints.json * modify inference-test.py * modify inference-test.py v2 * modify inference.py v3 * add bfloat16 for cpu * fix an error in setup commands with conda --------- Co-authored-by: Olatunji Ruwase <[email protected]>
- Loading branch information
1 parent
fae277a
commit 94677c7
Showing
5 changed files
with
11 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters