Skip to content

[Question]: PP_UIE在微调部分启动报包导入错误 #11060

@Chinesejunzai

Description

@Chinesejunzai

请提出你的问题

环境如下:
paddle2onnx 2.0.2rc3
paddlefsl 1.1.0
paddlenlp 3.0.0b4
paddlepaddle-gpu 3.0.0rc1
x2paddle 1.6.0

问题:
Container rank 0 status failed cmd ['/mnt/hdd/xxx/workspace/docker_envs/uie/.venv/bin/python', '-u', 'run_finetune.py', './config/winwin_uie/sft_argument.json'] code 1 log log/workerlog.0
LAUNCH INFO 2025-09-03 16:30:06,254 ------------------------- ERROR LOG DETAIL -------------------------
/mnt/hdd/xxx/workspace/docker_envs/uie/.venv/lib/python3.11/site-packages/paddle/utils/cpp_extension/extension_utils.py:711: UserWarning: No ccache found. Please be aware that recompiling all source files may be required. You can download and install ccache from: https://github.com/ccache/ccache/blob/master/doc/INSTALL.md
warnings.warn(warning_message)
/mnt/hdd/xxx/workspace/docker_envs/uie/.venv/lib/python3.11/site-packages/_distutils_hack/init.py:30: UserWarning: Setuptools is replacing distutils. Support for replacing an already imported distutils is deprecated. In the future, this condition will fail. Register concerns at https://github.com/pypa/setuptools/issues/new?template=distutils-deprecation.yml
warnings.warn(
/mnt/hdd/xxx/workspace/docker_envs/uie/.venv/lib/python3.11/site-packages/jieba/_compat.py:18: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
import pkg_resources
Traceback (most recent call last):
File "/mnt/hdd/xxx/workspace/docker_envs/uie/PaddleNLP/llm/run_finetune.py", line 80, in
from paddlenlp.utils.optimizer import AdamWLoRAPro
ImportError: cannot import name 'AdamWLoRAPro' from 'paddlenlp.utils.optimizer' (/mnt/hdd/xxx/workspace/docker_envs/uie/.venv/lib/python3.11/site-packages/paddlenlp/utils/optimizer.py)
LAUNCH INFO 2025-09-03 16:30:06,254 Exit code 1

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