mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
Fix: Cast prefetch_bucket_size to integer for deepspeed >= 0.15 (#33402)
Fix: Cast prefetch bucket size to integer in zero_optimization
This commit is contained in:
parent
7a51cbc65f
commit
ecf7024bde
@ -241,7 +241,7 @@ class HfTrainerDeepSpeedConfig(HfDeepSpeedConfig):
|
||||
# automatically assign the optimal config values based on model config
|
||||
self.fill_only(
|
||||
"zero_optimization.stage3_prefetch_bucket_size",
|
||||
0.9 * hidden_size * hidden_size,
|
||||
int(0.9 * hidden_size * hidden_size),
|
||||
)
|
||||
self.fill_only(
|
||||
"zero_optimization.stage3_param_persistence_threshold",
|
||||
|
Loading…
Reference in New Issue
Block a user