Improve default dtype configuration

This commit is contained in:
Philipp Emanuel Weidmann 2025-09-23 13:31:41 +05:30
parent b6c715ab6f
commit c447805fc2
No known key found for this signature in database
GPG Key ID: CE6A7756AD520E0F
1 changed files with 9 additions and 1 deletions

View File

@ -1,4 +1,12 @@
dtypes = ["float32", "float16", "bfloat16"]
dtypes = [
# In practice, "auto" almost always means bfloat16.
"auto",
# If that doesn't work (e.g. on pre-Ampere hardware), fall back to float16.
"float16",
# If that still doesn't work (e.g. due to https://github.com/meta-llama/llama/issues/380),
# fall back to float32.
"float32",
]
device_map = "auto"