Skip to content

[Question]: 运行run_finetune.py时ImportError: cannot import name 'DisLoRAConfig' from 'paddlenlp.peft' #11204

@Buddingpopp

Description

@Buddingpopp

请提出你的问题

from paddlenlp.peft import (
ImportError: cannot import name 'DisLoRAConfig' from 'paddlenlp.peft' (/root/anaconda3/envs/paddlenlp/lib/python3.10/site-packages/paddlenlp/peft/init.py)
查看了一下import paddlenlp.peft:
import paddlenlp.peft
print(dir(paddlenlp.peft))
['LoKrConfig', 'LoKrModel', 'LoRAConfig', 'LoRAModel', 'PrefixConfig', 'PrefixModelForCausalLM', 'ReFTModel', 'VeRAConfig', 'VeRAModel', 'builtins', 'cached', 'doc', 'file', 'loader', 'name', 'package', 'path', 'spec', 'lokr', 'lora', 'prefix', 'reft', 'vera']
发现没有分布式微调DisLoRAConfig,DisLoRAModel

paddlepaddle-gpu版本为 3.2.2,paddlenlp版本为3.0.0b4

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions