Skip to content

[BUG] peft 0.19 target_modules (str) use set #3229

@Jintao-Huang

Description

@Jintao-Huang

System Info

peft_config.target_parameters = set(peft_config.target_parameters or [])
peft_config.target_modules = set(peft_config.target_modules or [])

peft_config.target_parameters = set(peft_config.target_parameters or [])
peft_config.target_modules = set(peft_config.target_modules or [])

The target_modules here may be a string, which could lead to a bug.

Image

modelscope/ms-swift#9321

Who can help?

No response

Reproduction

Expected behavior

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