Skip to content

使用Kunlunxin XPU通过FastDeploy部署模型错误 #3664

@dddlli

Description

@dddlli
XCCL /opt/conda/envs/python35-paddle120-env/lib/python3.10/site-packages/paddle/libs/libbkcl.so loaded
[12:30:35][jupyter-338262-9442594][125547:125547][WARN][BKCL][globals.cpp:259] xccl version: 7b9c31e [rdma] [fix compile issue] build data: May 13 2025 06:07:35
/opt/conda/envs/python35-paddle120-env/lib/python3.10/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(
[2025-08-27 12:30:37,233] [    INFO] distributed_strategy.py:333 - distributed strategy initialized
======================= Modified FLAGS detected =======================
FLAGS(name='FLAGS_selected_xpus', current_value='0', default_value='')
FLAGS(name='FLAGS_enable_pir_in_executor', current_value=True, default_value=False)
FLAGS(name='FLAGS_specialize_device_in_dy2st', current_value=True, default_value=False)
FLAGS(name='FLAGS_pir_interpreter_record_stream_for_gc_cache', current_value=True, default_value=False)
FLAGS(name='FLAGS_parameters_persistent_mode_in_dy2st', current_value=True, default_value=False)
=======================================================================
/opt/conda/envs/python35-paddle120-env/lib/python3.10/site-packages/paddle/distributed/parallel.py:1054: UserWarning: Currently not a parallel execution environment, `paddle.distributed.init_parallel_env` will not do anything.
  warnings.warn(
[2025-08-27 12:30:37,235] [    INFO] topology.py:525 - Total 1 pipe comm group(s) create successfully!
/opt/conda/envs/python35-paddle120-env/lib/python3.10/site-packages/paddle/distributed/communication/group.py:145: UserWarning: Current global rank 0 is not in group _default_pg10
  warnings.warn(
[2025-08-27 12:30:37,243] [    INFO] topology.py:525 - Total 1 data comm group(s) create successfully!
[2025-08-27 12:30:37,243] [    INFO] topology.py:525 - Total 1 model comm group(s) create successfully!
[2025-08-27 12:30:37,244] [    INFO] topology.py:525 - Total 1 sharding comm group(s) create successfully!
[2025-08-27 12:30:37,244] [    INFO] topology.py:439 - HybridParallelInfo: rank_id: 0, mp_degree: 1, sharding_degree: 1, pp_degree: 1, dp_degree: 1, sep_degree: 1, mp_group: [0],  sharding_group: [0], pp_group: [0], dp_group: [0], sep:group: None, check/clip group: [0]
�[32m[2025-08-27 12:30:37,244] [    INFO]�[0m - Loading configuration file baidu/ERNIE-4.5-21B-A3B-Paddle/config.json�[0m
�[33m[2025-08-27 12:30:37,244] [ WARNING]�[0m - You are using a model of type ernie4_5_moe to instantiate a model of type . This is not supported for all configurations of models and can yield errors.�[0m
Traceback (most recent call last):
  File "/home/aistudio/external-libraries/lib/python3.10/site-packages/fastdeploy/engine/../worker/worker_process.py", line 753, in <module>
    run_worker_proc()
  File "/home/aistudio/external-libraries/lib/python3.10/site-packages/fastdeploy/engine/../worker/worker_process.py", line 728, in run_worker_proc
    worker_proc = PaddleDisWorkerProc(fd_config, ranks, local_rank)
  File "/home/aistudio/external-libraries/lib/python3.10/site-packages/fastdeploy/engine/../worker/worker_process.py", line 149, in __init__
    self.worker = get_worker(fd_config=fd_config, local_rank=self.local_rank, rank=self.ranks)
  File "/home/aistudio/external-libraries/lib/python3.10/site-packages/fastdeploy/engine/../worker/worker_process.py", line 67, in get_worker
    from fastdeploy.worker.xpu_worker import XpuWorker
  File "/home/aistudio/external-libraries/lib/python3.10/site-packages/fastdeploy/worker/xpu_worker.py", line 29, in <module>
    from fastdeploy.worker.xpu_model_runner import XPUModelRunner
  File "/home/aistudio/external-libraries/lib/python3.10/site-packages/fastdeploy/worker/xpu_model_runner.py", line 41, in <module>
    from fastdeploy.model_executor.ops.xpu import (
ImportError: cannot import name 'adjust_batch' from 'fastdeploy.model_executor.ops.xpu' (/home/aistudio/external-libraries/lib/python3.10/site-packages/fastdeploy/model_executor/ops/xpu/__init__.py)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions