Skip to content

Commit 1fd8449

Browse files
committed
update to use dtype/ torch_dtype
Signed-off-by: Suguna Velury <178320438+sugunav14@users.noreply.github.com>
1 parent e024097 commit 1fd8449

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

examples/gpt-oss/sft.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ def main(script_args, training_args, model_args, quant_args):
7272
"revision": model_args.model_revision,
7373
"trust_remote_code": model_args.trust_remote_code,
7474
"attn_implementation": model_args.attn_implementation,
75-
"torch_dtype": model_args.torch_dtype,
75+
"torch_dtype": getattr(model_args, "torch_dtype", None)
76+
or getattr(model_args, "dtype", None),
7677
"use_cache": not training_args.gradient_checkpointing,
7778
}
7879

0 commit comments

Comments
 (0)