We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent adbaa23 commit e802f5fCopy full SHA for e802f5f
examples/language-modeling/run_clm.py
@@ -487,7 +487,7 @@ def main():
487
# workaraund for https://github.com/huggingface/transformers/issues/36258
488
# TODO: remove after fix is avalible in a release version of `transformers``
489
if torch_dtype is None:
490
- torch_dtype = getattr(config, 'torch_dtype', None)
+ torch_dtype = getattr(config, "torch_dtype", None)
491
492
model = AutoModelForCausalLM.from_pretrained(
493
model_args.model_name_or_path,
0 commit comments