Skip to content

FileNotFoundError when using SentenceTransformerTrainingArguments(load_best_model_at_end=True) and Peft #3056

@GTimothee

Description

@GTimothee

When I try to train a peft model with the load_best_model_at_end=True option enabled, it crashes, raising a FileNotFoundError.

Here is the example code as a gist: gist

Error I get: FileNotFoundError: [Errno 2] No such file or directory: 'training_trial/checkpoint-250/pytorch_model.bin'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions