⚗️ | Small fixes here and there
This commit is contained in:
@@ -34,7 +34,11 @@ args = parser.parse_args()
|
||||
# Init accelerator
|
||||
# ---------------------------
|
||||
|
||||
accelerator = Accelerator(mixed_precision="bf16")
|
||||
try:
|
||||
accelerator = Accelerator(mixed_precision="bf16")
|
||||
except Exception:
|
||||
accelerator = Accelerator(mixed_precision="fp16")
|
||||
accelerator.print("⚠️ | bf16 unavailable — falling back to fp16")
|
||||
|
||||
# ---------------------------
|
||||
# Models
|
||||
|
||||
Reference in New Issue
Block a user