Error 802: system not yet initialized Error

Aperta
#9 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
1-2 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python, pytorch

Direzione di ricerca

The report shows vllm serve failing during CUDA device initialization in vLLM's gpu_worker.py, through PyTorch's torch.cuda.set_device; no repository files or tests are named. Start by checking whether this CUDA 802 error is reproducible with the reported GPU, driver, and CUDA versions, then inspect the worker initialization path. Done means the cause is identified and the reported launch either works or has a clear, documented resolution.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

nvidia-smi
Mon Mar 2 19:54:20 2026
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 580.126.20 Driver Version: 580.126.20 CUDA Version: 13.0 |

nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2025 NVIDIA Corporation
Built on Tue_Dec_16_07:23:41_PM_PST_2025
Cuda compilation tools, release 13.1, V13.1.115
Build cuda_13.1.r13.1/compiler.37061995_0

Run:
SAFETENSORS_FAST_GPU=1 vllm serve MiniMaxAI/MiniMax-M2.5 --trust-remote-code --tensor-parallel-size 4 --enable-auto-tool-choice --tool-call-parser minimax_m2 --reasoning-parser minimax_m2_append_think

(EngineCore_DP0 pid=120905) WARNING 03-02 19:48:25 [multiproc_executor.py:921] Reducing Torch parallelism from 112 threads to 1 to avoid unnecessary CPU contention. Set OMP_NUM_THREADS in the external environment to tune this value as needed.
ERROR 03-02 19:49:00 [multiproc_executor.py:783] WorkerProc failed to start.
ERROR 03-02 19:49:00 [multiproc_executor.py:783] Traceback (most recent call last):
ERROR 03-02 19:49:00 [multiproc_executor.py:783] File "/home/user/.venv/lib/python3.10/site-packages/vllm/v1/executor/multiproc_executor.py", line 754, in worker_main
ERROR 03-02 19:49:00 [multiproc_executor.py:783] worker = WorkerProc(*args, **kwargs)
ERROR 03-02 19:49:00 [multiproc_executor.py:783] File "/home/user/.venv/lib/python3.10/site-packages/vllm/v1/executor/multiproc_executor.py", line 571, in init
ERROR 03-02 19:49:00 [multiproc_executor.py:783] self.worker.init_device()
ERROR 03-02 19:49:00 [multiproc_executor.py:783] File "/home/user/.venv/lib/python3.10/site-packages/vllm/v1/worker/worker_base.py", line 322, in init_device
ERROR 03-02 19:49:00 [multiproc_executor.py:783] self.worker.init_device() # type: ignore
ERROR 03-02 19:49:00 [multiproc_executor.py:783] File "/home/user/.venv/lib/python3.10/site-packages/vllm/v1/worker/gpu_worker.py", line 224, in init_device
ERROR 03-02 19:49:00 [multiproc_executor.py:783] current_platform.set_device(self.device)
ERROR 03-02 19:49:00 [multiproc_executor.py:783] File "/home/user/.venv/lib/python3.10/site-packages/vllm/platforms/cuda.py", line 126, in set_device
ERROR 03-02 19:49:00 [multiproc_executor.py:783] torch.cuda.set_device(device)
ERROR 03-02 19:49:00 [multiproc_executor.py:783] File "/home/user/.venv/lib/python3.10/site-packages/torch/cuda/init.py", line 567, in set_device
ERROR 03-02 19:49:00 [multiproc_executor.py:783] torch._C._cuda_setDevice(device)
ERROR 03-02 19:49:00 [multiproc_executor.py:783] File "/home/user/.venv/lib/python3.10/site-packages/torch/cuda/init.py", line 410, in _lazy_init
ERROR 03-02 19:49:00 [multiproc_executor.py:783] torch._C._cuda_init()
ERROR 03-02 19:49:00 [multiproc_executor.py:783] RuntimeError: Unexpected error from cudaGetDeviceCount(). Did you run some cuda functions before calling NumCudaDevices() that might have already set an error? Error 802: system not yet initialized

Lingua principale
Nessun dato sulla lingua
Stelle
588
Fork
83
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di MiniMax-AI/MiniMax-M2.5

Tutte le issue di MiniMax-AI/MiniMax-M2.5

Issue simili

Altre issue su Machine Learning

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.