Skip to content

Commit

Permalink
cleanup map
Browse files Browse the repository at this point in the history
Co-authored-by: NanoCode012 <kevinvong@rocketmail.com>
  • Loading branch information
winglian and NanoCode012 committed Jan 10, 2024
1 parent c295c6d commit 8eb4b0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/axolotl/utils/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def check_model_config(cfg: DictDefault, model_config: Union[AutoConfig, DictDef
or not all(x in cfg.lora_modules_to_save for x in lora_modules_to_save)
)
):
lora_modules_to_save = ", ".join(map(lambda x: f"`{x}`", lora_modules_to_save))
lora_modules_to_save = ", ".join([f"`{x}`" for x in lora_modules_to_save])
raise ValueError(
f"`lora_modules_to_save` not properly set when adding new tokens. Please include {lora_modules_to_save} in `lora_modules_to_save`."
)
Expand Down

0 comments on commit 8eb4b0a

Please sign in to comment.