Skip to content

Loading multi-file pytorch_model.bin files (eg. Mistral)? #454

Open
@cicero-ai

Description

Love the crate. Curious, any way to get these larger models like Mistral 7X8B into it?

Their pytoch_model.bin files are split into multiple files, and uncertain how to convert that. Have used the convert_model.py utility lots on smaller models and works great, but not sure how to handle a larger model.

Tried to concatenate all three "pytorch_model-0000X-of-00003.bin" files, but that just errored out saying invalid zip file. Is there anything that can be done to get these larger models loaded via rust-bert? I'm quite familiar with the repo code now, and am more than happy to put any necessary hours into developing out whatever solution is necessary. If you could point me in the right direction, I'm sure I'd be able to figure out the rest.

Thanks in advance.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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