mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
fix: hfdeepspeed config argument (#15711)
`HfDeepSpeedConfig` accepts a dictionary or path to `.json` file containing DS configurations, not `TrainingArguments`.
This commit is contained in:
parent
83f45cd656
commit
3de12906c8
@ -971,7 +971,7 @@ class Trainer:
|
||||
# Rebuild the deepspeed config to reflect the updated training parameters
|
||||
from transformers.deepspeed import HfDeepSpeedConfig
|
||||
|
||||
self.args.hf_deepspeed_config = HfDeepSpeedConfig(self.args)
|
||||
self.args.hf_deepspeed_config = HfDeepSpeedConfig(self.args.deepspeed)
|
||||
|
||||
def _report_to_hp_search(
|
||||
self, trial: Union["optuna.Trial", Dict[str, Any]], epoch: int, metrics: Dict[str, float]
|
||||
|
Loading…
Reference in New Issue
Block a user