From 4c14a98bc75d4316023284852928a0724aee651c Mon Sep 17 00:00:00 2001 From: Cyril Vallez Date: Wed, 2 Oct 2024 14:02:44 +0200 Subject: [PATCH] style --- src/transformers/models/glm/convert_glm_weights_to_hf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/transformers/models/glm/convert_glm_weights_to_hf.py b/src/transformers/models/glm/convert_glm_weights_to_hf.py index 24696a921f7305..3878ce0d25814a 100644 --- a/src/transformers/models/glm/convert_glm_weights_to_hf.py +++ b/src/transformers/models/glm/convert_glm_weights_to_hf.py @@ -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):