Krishna Chaitanya
b53b10ea61
Fix Train LoRA crash when training_dtype is "none" with bfloat16 LoRA weights ( #13145 )
...
When training_dtype is set to "none" and the model's native dtype is
float16, GradScaler was unconditionally enabled. However, GradScaler
does not support bfloat16 gradients (only float16/float32), causing a
NotImplementedError when lora_dtype is "bf16" (the default).
Fix by only enabling GradScaler when LoRA parameters are not in
bfloat16, since bfloat16 has the same exponent range as float32 and
does not need gradient scaling to avoid underflow.
Fixes #13124
2026-03-24 23:53:44 -04:00
..
2024-12-20 16:24:55 -05:00
2026-02-11 20:28:48 -05:00
2026-02-19 19:20:02 -08:00
2026-01-22 18:36:58 -08:00
2026-02-19 19:20:02 -08:00
2026-02-19 19:20:02 -08:00
2025-09-30 23:00:22 -07:00
2026-03-15 16:18:04 -07:00
2026-02-19 19:20:02 -08:00
2026-03-20 23:15:50 -04:00
2025-09-12 17:39:55 -04:00
2026-02-19 19:20:02 -08:00
2026-02-19 19:20:02 -08:00
2026-01-30 15:01:33 -08:00
2026-01-22 18:36:58 -08:00
2026-02-19 19:20:02 -08:00
2026-03-19 20:42:42 -07:00
2026-02-19 19:20:02 -08:00
2025-09-12 17:38:46 -04:00
2026-03-24 17:47:28 -04:00
2026-02-19 19:20:02 -08:00
2026-02-19 19:20:02 -08:00
2026-01-22 18:36:58 -08:00
2026-02-19 19:20:02 -08:00
2025-10-03 13:24:42 -07:00
2026-02-19 19:20:02 -08:00
2026-03-12 16:54:38 -04:00
2026-02-19 19:20:02 -08:00
2026-02-19 19:20:02 -08:00
2026-02-19 19:20:02 -08:00
2026-02-27 08:13:24 -08:00
2026-01-22 18:36:58 -08:00
2026-02-28 16:50:18 -05:00
2026-02-19 19:20:02 -08:00
2026-02-19 19:20:02 -08:00
2025-11-03 00:21:47 -08:00
2026-02-19 19:20:02 -08:00
2026-03-15 16:18:04 -07:00
2026-03-15 16:18:04 -07:00
2025-10-01 12:20:30 -07:00
2026-01-22 18:36:58 -08:00
2026-02-19 19:20:02 -08:00
2026-02-19 19:20:02 -08:00
2026-01-24 17:30:40 -08:00
2026-01-24 23:02:32 -05:00
2026-02-19 19:20:02 -08:00
2025-09-27 19:11:36 -07:00
2026-02-19 19:20:02 -08:00
2026-01-05 01:58:59 -05:00
2026-03-23 18:22:24 -04:00
2026-02-19 19:20:02 -08:00
2026-02-28 20:59:24 -08:00
2026-02-19 19:20:02 -08:00
2026-03-05 18:51:28 -08:00
2025-09-29 12:03:35 -07:00
2026-02-25 23:38:46 -05:00
2026-02-19 19:20:02 -08:00
2025-08-06 04:07:04 -04:00
2026-01-22 18:36:58 -08:00
2026-02-01 01:01:11 -05:00
2026-01-22 18:36:58 -08:00
2026-02-21 19:51:21 -05:00
2025-11-18 00:26:44 -05:00
2026-03-24 15:38:08 -07:00
2025-10-01 12:18:04 -07:00
2025-10-01 12:18:49 -07:00
2026-03-12 09:55:29 -07:00
2026-02-19 19:20:02 -08:00
2025-09-27 02:36:43 -07:00
2026-01-22 18:36:58 -08:00
2026-03-15 16:18:04 -07:00
2026-01-22 18:36:58 -08:00
2026-02-20 23:46:46 -08:00
2026-02-19 19:20:02 -08:00
2025-09-26 14:10:49 -07:00
2026-02-15 02:12:30 -08:00
2026-02-27 20:53:46 -08:00
2026-02-19 19:20:02 -08:00
2026-02-19 19:20:02 -08:00
2026-02-19 19:20:02 -08:00
2026-02-26 19:59:05 -05:00
2026-02-19 19:20:02 -08:00
2026-02-19 19:20:02 -08:00
2026-02-19 19:20:02 -08:00
2026-02-19 19:20:02 -08:00
2026-02-19 19:20:02 -08:00
2025-09-26 14:13:05 -07:00
2026-02-19 22:57:44 -05:00
2025-10-03 11:50:38 -07:00
2026-02-05 01:18:21 -05:00
2026-02-24 19:13:46 -05:00
2026-03-24 23:53:44 -04:00
2026-03-10 00:41:02 -04:00
2026-02-19 19:20:02 -08:00
2026-02-26 01:00:32 -08:00
2026-02-28 16:49:12 -05:00
2026-02-19 19:20:02 -08:00
2026-01-22 18:36:58 -08:00
2026-02-19 19:20:02 -08:00