Skip to content

FastLanguageModel.from_pretrained incorrectly uses revision when loading model_config and is_peft=True #1948

@wilswu99

Description

@wilswu99

This causes from_pretrained to error out when model_name points to a peft adapter and revision is specified.

I think you can fix this by deleting this one line:

revision = revision,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions