Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyrilvallez committed Oct 8, 2024
1 parent aab9dcf commit 4c14a98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/transformers/models/glm/convert_glm_weights_to_hf.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ def map_old_key_to_new(old_key):
# Early exit of the loop
if n_replace > 0:
return new_key
raise ValueError(f'Key: {old_key} could not be mapped (check the mapping).')

raise ValueError(f"Key: {old_key} could not be mapped (check the mapping).")


def convert_state_dict(original_state_dict: dict, config: GlmConfig):
Expand Down

0 comments on commit 4c14a98

Please sign in to comment.