InternLM / InternLM/lmdeploy

[Bug] 沐曦C500推理报错

Open
#4,051 3 comments 0 reactions 1 assignee Claimed by @jinminxi104 View on GitHub
Dominant language
Python
Stars
8.1k
Forks
748
Avg merge
6d 2h
Merged PRs (30d)
54

Description

### Checklist

- [ ] 1. I have searched related issues but cannot get the expected help.
- [ ] 2. The bug has not been fixed in the latest version.
- [ ] 3. Please note that if the bug-related issue you submitted lacks corresponding environment info and a minimal reproducible demo, it will be challenging for us to reproduce and resolve the issue, reducing the likelihood of receiving feedback.

### Describe the bug

docker run -it --name lmdeploy-server --net=host -v /app/models:/models crpi-4crprmm5baj1v8iv.cn-hangzhou.personal.cr.aliyuncs.com/lmdeploy_dlinfer/maca:latest bash -i -c "lmdeploy serve api_server --backend pytorch --device maca /models"
上面的方法会报错:
/opt/conda/lib/python3.10/site-packages/torch/cuda/__init__.py:130: UserWarning: CUDA initialization: CUDA driver initialization failed, you might not have a CUDA gpu. (Triggered internally at /workspace/framework/mcPytorch/c10/cuda/CUDAFunctions.cpp:109.)
return torch._C._cuda_getDeviceCount() > 0
2025-10-20 12:34:09,560 - lmdeploy - WARNING - __init__.py:10 - Disable DLSlime Backend
2025-10-20 12:34:12,917 - lmdeploy - WARNING - __init__.py:10 - Disable DLSlime Backend
2025-10-20 12:34:13,915 - lmdeploy - ERROR - base.py:53 - RuntimeError: CUDA driver initialization failed, you might not have a CUDA gpu.
2025-10-20 12:34:13,915 - lmdeploy - ERROR - base.py:54 - check failed!
PyTorch is not available.

### Reproduction

docker run -it --name lmdeploy-server --net=host -v /app/models:/models crpi-4crprmm5baj1v8iv.cn-hangzhou.personal.cr.aliyuncs.com/lmdeploy_dlinfer/maca:latest bash -i -c "lmdeploy serve api_server --backend pytorch --device maca /models"

### Environment

```Shell
沐曦C500 ubuntu22.04
```

### Error traceback

```Shell
/opt/conda/lib/python3.10/site-packages/torch/cuda/__init__.py:130: UserWarning: CUDA initialization: CUDA driver initialization failed, you might not have a CUDA gpu. (Triggered internally at /workspace/framework/mcPytorch/c10/cuda/CUDAFunctions.cpp:109.)
return torch._C._cuda_getDeviceCount() > 0
2025-10-20 12:34:09,560 - lmdeploy - WARNING - __init__.py:10 - Disable DLSlime Backend
2025-10-20 12:34:12,917 - lmdeploy - WARNING - __init__.py:10 - Disable DLSlime Backend
2025-10-20 12:34:13,915 - lmdeploy - ERROR - base.py:53 - RuntimeError: CUDA driver initialization failed, you might not have a CUDA gpu.
2025-10-20 12:34:13,915 - lmdeploy - ERROR - base.py:54 - check failed!
PyTorch is not available.
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.