Skip to content

IsADirectoryError: [Errno 21] Is a directory: pytorch_model.bin #33

@LakshmikarPolamreddy

Description

@LakshmikarPolamreddy

When trying to merge LoRA weights and save the model in Hugging Face format using
merge_lora_weights_and_save_hf_model.py, the script fails with an IsADirectoryError because the model checkpoint is sharded across multiple .bin files instead of being a single file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions