We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e024097 commit 1fd8449Copy full SHA for 1fd8449
1 file changed
examples/gpt-oss/sft.py
@@ -72,7 +72,8 @@ def main(script_args, training_args, model_args, quant_args):
72
"revision": model_args.model_revision,
73
"trust_remote_code": model_args.trust_remote_code,
74
"attn_implementation": model_args.attn_implementation,
75
- "torch_dtype": model_args.torch_dtype,
+ "torch_dtype": getattr(model_args, "torch_dtype", None)
76
+ or getattr(model_args, "dtype", None),
77
"use_cache": not training_args.gradient_checkpointing,
78
}
79
0 commit comments