-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a fallback to change torch_dtype if cuda isn't available.
config.py: - Added TORCH_DTYPE_SAFETY. model.py: - Updated _load_model to force (if config.TORCH_DTYPE_SAFETY is True) torch_dtype to be set to float32 if cuda isn't available. Because otherwise, it will lead to an error during generation. See #31
- Loading branch information
1 parent
92e52a9
commit e41567f
Showing
2 changed files
with
16 additions
and
0 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