We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25a308e commit 6d41365Copy full SHA for 6d41365
src/transformers/training_args.py
@@ -2567,7 +2567,7 @@ def to_dict(self):
2567
quantization_config = v.get("quantization_config")
2568
if quantization_config and not isinstance(quantization_config, dict):
2569
d[k]["quantization_config"] = quantization_config.to_dict()
2570
- if k == "parallelism_config":
+ if k == "parallelism_config" and v is not None:
2571
import copy
2572
2573
# This is a hack as torch DeviceMesh is not json serializable
0 commit comments