Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Louly committed Oct 23, 2023
1 parent 6eda00f commit e79acc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/onnxruntime/training/language-modeling/run_clm.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ def tokenize_function(examples):
remove_columns=column_names,
)

if hasattr(config, 'max_position_embeddings'):
if hasattr(config, "max_position_embeddings"):
max_pos_embeddings = config.max_position_embeddings
else:
# Define a default value if the attribute is missing in the config.
Expand Down

0 comments on commit e79acc1

Please sign in to comment.