vLLM 推理服务常见故障排查方法

该文档面向 vLLM 部署与调试场景,给出模型下载与加载卡顿、显存不足、生成质量变化、后端选择查看及日志增强等排查思路,并提示调试后关闭相关环境变量以免影响性能。

## 解决问题[¶](<https://docs.vllm.ai/en/latest/usage/troubleshooting/#troubleshooting>) 此文档概述了一些您可以考虑的排除故障策略。 如果您认为您发现了一个错误, 请 [搜索现有问题](<https://github.com/vllm-project/vllm/issues?q=is%3Aissue>) 首先看是否已经报告。如果不是,请 [提交新一期](<https://github.com/vllm-project/vllm/issues/new/choose>),尽可能提供相关信息。 说明 一旦您调试过一个问题, 请记住关闭任何定义的调试环境变量, 或者简单地启动一个新的 shell 以避免受到遗留的调试设置的影响 。 否则, 系统可能会在调试功能被激活时慢下来 。 ## 挂起下载一个模型[¶](<https://docs.vllm.ai/en/latest/usage/troubleshooting/#hangs-downloading-a-model>) 如果模型尚未下载到磁盘上, vLLM 将会从互联网上下载它, 它需要时间, 取决于您的互联网连接。 建议首先使用 。 [`hf` CLI](<https://huggingface.co/docs/huggingface_hub/en/guides/cli>) 并传递本地路径到 vLLM 模型。这样,您就可以隔离这个问题 。 ## 挂起从磁盘装入模型[¶](<https://docs.vllm.ai/en/latest/usage/troubleshooting/#hangs-loading-a-model-from-disk>) 如果模型很大, 从磁盘上加载它需要很长时间。 注意您存储该模型的位置。 有些集群在节点之间共享文件系统, 例如分布式文件系统或网络文件系统, 它可能很慢。 最好将模型存储在本地磁盘中 。此外,看看CPU内存使用,当模型太大时,可能会占用大量的CPU内存,由于需要经常在磁盘和内存之间互换,导致操作系统减速. 说明 要隔离模型下载和加载问题,您可以使用 `--load-format dummy` 参数可以跳过加载模型重量。这样,您就可以检查模型的下载和加载是否是瓶颈。 ## 内存缺失[¶](<https://docs.vllm.ai/en/latest/usage/troubleshooting/#out-of-memory>) 如果模型太大, 无法装入单个的 GPU 中, 您将会得到一个 out-of-memory ( OOM) 错误 。 考虑采纳 [这些选项](<https://docs.vllm.ai/en/latest/configuration/conserving_memory/>) 减少内存消耗。 ## 生成质量改变[¶](<https://docs.vllm.ai/en/latest/usage/troubleshooting/#generation-quality-changed>) 在 v0.8.0 中,默认采样参数的来源在 [拉请求 #12622](<https://github.com/vllm-project/vllm/pull/12622>)。在 v0.8.0 之前,默认的采样参数来自 vLLM 的一组中性默认。从 v0.8.0 开始,默认的采样参数来自 `generation_config.json` 由模型创建者提供。 在大多数情况下,这应该导致更高的质量响应,因为模型创建者很可能知道哪些采样参数最适合它们的模型,然而,在某些情况下,模型创建者提供的默认会导致性能退化. 您可以通过尝试旧的默认值来检查是否正在发生 `--generation-config vllm` 在线和 `generation_config="vllm"` 如果在尝试了这个后,您的生成质量得到了提高,我们建议继续使用 vLLM 默认并请求模型创建者使用 [https://huggingface.co](<https://huggingface.co/>) 以更新其默认值 `generation_config.json` 这样它就能产生更高质量的一代人。 ## 检查模式运行的后端[¶](<https://docs.vllm.ai/en/latest/usage/troubleshooting/#check-which-backends-a-model-runs-on>) 在加载一个模型后, vLLM 记录一个关注后端和线性及MoE内核的表格, 并选择各层运行。 默认情况下, 每个模型记录一次 : ``` Backends selected for Qwen3MoeForCausalLM (Qwen/Qwen3-30B-A3B-FP8): layer | count | backend | modules attention | 48 | FLASHINFER | model.layers.[0-47].self_attn.attn linear | 50 | unquantized [w=bfloat16] | model.embed_tokens, model.layers.[0-47].mlp.gate, lm_head linear | 96 | DeepGemmFp8BlockScaledMMKernel | model.layers.[0-47].self_attn.{qkv_proj,o_proj} moe | 48 | TrtLlmFp8ExpertsMonolithic [w=float8_e4m3fn, a=float8_e4m3fn] | model.layers.[0-47].mlp.experts.routed_experts ``` 每行都是一个后端: 层的种类, 有多少层运行, 内核或注意后端被选中, 且带有索引范围的层名崩溃。 未量化的线性层显示它们的重量 Dtype 而非内核。 MoE 列还显示内核运行的重量和激活精度, 所以 。 `a=none` 表示激活不量化。未与路由专家结合的共享专家为线性层,出现在 `linear` 数行. 该表取代个人 `Using <backend> ...` 财务报告和财务报告 `Selected <kernel> for ...` ,目前登录在 DEBUG 上,每个选择地点以及被考虑的候选人: 设置 `VLLM_LOGGING_LEVEL=DEBUG` 来查看它们。解释倒置或覆置的选项仍然在 INFO 或 WARNING 上登录。 如果加载权重失败,则表格会在错误与该点所构成的选定数发生之前登录(其第一行结束于 `before loading failed`; MoE行,然后显示没有精度的专家课. 对于完整的模块树,设置 `VLLM_LOG_MODEL_INSPECTION=1` 或打电话 `LLM.get_model_inspection()`. ## 启用更多记录[¶](<https://docs.vllm.ai/en/latest/usage/troubleshooting/#enable-more-logging>) 如果其他策略无法解决问题, VLLM 实例很可能会卡在某个地方。 您可以使用以下环境变量来帮助调试这个问题 : - `export VLLM_LOGGING_LEVEL=DEBUG` 以开启更多的伐木。 - `export VLLM_LOG_STATS_INTERVAL=1.` 以获取日志统计数据,用于跟踪运行中的队列、等待的队列和缓存命中状态。 - `export CUDA_LAUNCH_BLOCKING=1` 以识别哪些CUDA内核正在引起问题。 - `export NCCL_DEBUG=TRACE` 打开更多 NCCL 的日志 。 - `export VLLM_TRACE_FUNCTION=1` 要记录所有函数, 需要检查日志文件, 以显示哪个函数崩溃或挂起 。 (WARNING : 此旗帜将减缓符号生成 。) **超过100倍**。除非绝对需要,否则不得使用。) DP协调员 `Received stats for out-of-order step` 诊断在 DEBUG 级别上被记录。来自不同引擎的统计数据可以以不同的步骤顺序到达;仅此信件并不表示请求失败 。 set `VLLM_LOGGING_LEVEL=DEBUG` 检查这些报告。 ## GPU - CPU 同步错误[¶](<https://docs.vllm.ai/en/latest/usage/troubleshooting/#gpu-cpu-synchronization-errors>) 设定 `VLLM_GPU_SYNC_CHECK=error` 在启动 vLLM 以检查推断时意外的 GPU - CPU 同步之前。 检查开始于模型热身, 并报告错误, 如 : ``` RuntimeError: GPU<->CPU sync detected - avoid it or wrap with gpu_sync_allowed() ``` 对于 dots.ocr,您可以在 TP=1 或 TP=2 中检查图像推论. 例如,启动一个两端的 GPU 服务器 : ``` VLLM_GPU_SYNC_CHECK=error vllm serve rednote-hilab/dots.ocr \ --trust-remote-code \ --tensor-parallel-size 2 \ --max-model-len 4096 \ --limit-mm-per-prompt '{"image": 1}' ``` 在服务器准备好后发送图像请求, 以便检查会练习视觉编码器。 只有文本请求不会运行模型的这一部分 。 见 [在线服务](<https://docs.vllm.ai/en/latest/features/multimodal_inputs/#online-serving>) 图像请求示例。设置请求的 `model` 改为: `rednote-hilab/dots.ocr` 当使用此服务器时。使用 `--tensor-parallel-size 1` 以检查一个单- GPU 设置 。 如果请求失败此错误, 请在错误报告中包含完整溯源、 模型修订、 GPU 类型以及编码器注意后端。 后端显示于启动日志中 。 `Using ... for MMEncoderAttention`. ## 断点[¶](<https://docs.vllm.ai/en/latest/usage/troubleshooting/#breakpoints>) 设置正常 `pdb` 如果在子程序中执行, 断点可能无法在 vLLM 的代码库中工作。 您将体验到类似的东西 : ``` File "/usr/local/uv/cpython-3.12.11-linux-x86_64-gnu/lib/python3.12/bdb.py", line 100, in trace_dispatch return self.dispatch_line(frame) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/uv/cpython-3.12.11-linux-x86_64-gnu/lib/python3.12/bdb.py", line 125, in dispatch_line if self.quitting: raise BdbQuit ^^^^^^^^^^^^^ bdb.BdbQuit ``` 一个解决方案是使用 [forked-pdb](<https://github.com/Lightning-AI/forked-pdb>)安装到 `pip install fpdb` 并设置一个断点 类似的东西: ``` __import__('fpdb').ForkedPdb().set_trace() ``` 另一种选择是完全禁用多处理,使用 `VLLM_ENABLE_V1_MULTIPROCESSING` 环境变量。这样可以让调度器处于相同的进程之中,这样您就可以使用库存 `pdb` 断点 : ``` import os os.environ["VLLM_ENABLE_V1_MULTIPROCESSING"] = "0" ``` ## 不正确的网络设置[¶](<https://docs.vllm.ai/en/latest/usage/troubleshooting/#incorrect-network-setup>) vLLM 实例无法获得正确的 IP 地址, 如果您有复杂的网络配置。 您可以找到一个日志, 例如 `DEBUG 06-10 21:32:17 parallel_state.py:88] world_size=8 rank=0 local_rank=0 distributed_init_method=tcp://xxx.xxx.xxx.xxx:54641 backend=nccl` 和 IP 地址应该是正确的。如果不是,请使用环境变量覆盖 IP 地址 `export VLLM_HOST_IP=<your_ip_address>`. 您可能还需要设置 `export NCCL_SOCKET_IFNAME=<your_network_interface>` 财务报告和财务报告 `export GLOO_SOCKET_IFNAME=<your_network_interface>` 以指定IP地址的网络接口。 ## 接近时出错 `self.graph.replay()`[¶](<https://docs.vllm.ai/en/latest/usage/troubleshooting/#error-near-selfgraphreplay>) 如果 vLLM 崩溃, 错误追踪在附近捕捉到它 `self.graph.replay()` 输入 `vllm/worker/model_runner.py`中,它是 CUDAGraph 内部的 CUDA 错误。要识别导致错误的特定 CUDA 操作,您可以添加 `--enforce-eager` 转到命令行,或 `enforce_eager=True` 页:1 [LLM](<https://docs.vllm.ai/en/latest/api/vllm/#vllm.LLM>) 类以禁用 CUDAGraph 优化并隔离导致错误的精确的 CUDA 操作。 ## 硬件/驱动器不正确[¶](<https://docs.vllm.ai/en/latest/usage/troubleshooting/#incorrect-hardwaredriver>) 如果GPU / CPU通信无法建立,您可以使用以下的Python脚本,并遵循下面的指令来确认GPU / CPU通信是否正常工作. 代码 ``` # Test PyTorch NCCL import torch import torch.distributed as dist dist.init_process_group(backend="nccl") local_rank = dist.get_rank() % torch.accelerator.device_count() torch.accelerator.set_device_index(local_rank) data = torch.FloatTensor([1,] * 128).to("cuda") dist.all_reduce(data, op=dist.ReduceOp.SUM) torch.accelerator.synchronize() value = data.mean().item() world_size = dist.get_world_size() assert value == world_size, f"Expected {world_size}, got {value}" print("PyTorch NCCL is successful!") # Test PyTorch GLOO gloo_group = dist.new_group(ranks=list(range(world_size)), backend="gloo") cpu_data = torch.FloatTensor([1,] * 128) dist.all_reduce(cpu_data, op=dist.ReduceOp.SUM, group=gloo_group) value = cpu_data.mean().item() assert value == world_size, f"Expected {world_size}, got {value}" print("PyTorch GLOO is successful!") if world_size <= 1: exit() # Test vLLM NCCL, with cuda graph from vllm.distributed.device_communicators.pynccl import PyNcclCommunicator pynccl = PyNcclCommunicator(group=gloo_group, device=local_rank) # pynccl is enabled by default for 0.6.5+, # but for 0.6.4 and below, we need to enable it manually. # keep the code for backward compatibility when because people # prefer to read the latest documentation. pynccl.disabled = False s = torch.cuda.Stream() with torch.cuda.stream(s): data.fill_(1) out = pynccl.all_reduce(data, stream=s) value = out.mean().item() assert value == world_size, f"Expected {world_size}, got {value}" print("vLLM NCCL is successful!") g = torch.cuda.CUDAGraph() with torch.cuda.graph(cuda_graph=g, stream=s): out = pynccl.all_reduce(data, stream=torch.cuda.current_stream()) data.fill_(1) g.replay() torch.cuda.current_stream().synchronize() value = out.mean().item() assert value == world_size, f"Expected {world_size}, got {value}" print("vLLM NCCL with cuda graph is successful!") dist.destroy_process_group(gloo_group) dist.destroy_process_group() ``` 如果您正在用单个节点进行测试, 请调整 `--nproc-per-node` 改为要使用的 GPU 数 : ``` NCCL_DEBUG=TRACE torchrun --nproc-per-node=<number-of-GPUs> test.py ``` 如果您正在用多节点进行测试, 请调整 `--nproc-per-node` 财务报告和财务报告 `--nnodes` 根据您的设置和设置 `MASTER_ADDR` 改为主节点的正确IP地址和端口(例如, `10.0.0.1:29400`),从所有节点可以到达。然后,运行: ``` NCCL_DEBUG=TRACE torchrun --nnodes 2 \ --nproc-per-node=2 \ --rdzv_backend=static \ --rdzv_endpoint=$MASTER_ADDR \ --node-rank $NODE_RANK test.py ``` 设定 `MASTER_ADDR` 到主节点的IP地址和端口(例如, `10.0.0.1:29400`),从所有节点可以到达。设置 `NODE_RANK` 改为: `0` 在主节点上和 `1`, `2`在工人身上 调整 `--nproc-per-node` 财务报告和财务报告 `--nnodes` 根据你的设定。 说明 我们用 `--rdzv_backend=static` 改为 `c10d` 因为 `c10d` 在多节点设置中与 DNS 相会合后端可能与解析错误失败( 请参见 [pytorch/pytorch# 85300 维基月球在线解说- 维基月球在线解说- 维基月球在线解说- 维基月球在线解说- 维基月球在线解说- 维基月球在线解说- 维基文库中相关的原始文献: 维基月球在线解说- 维基月球在线解说- 维基月球在线解说- 维基月球在线解说- 维基月球在线解说- 维基月球在线解说- 维基月球](<https://github.com/pytorch/pytorch/issues/85300>))。该 `static` 后端通过要求明确的节点排位来避免这种情况. 如果脚本运行成功, 您应该看到信件 `sanity check is successful!`. 如果测试脚本挂起或崩溃, 通常意味着硬件/ 驱动器在某种意义上被打破 。 您应该尝试联系您的系统管理员或硬件销售商以获得进一步协助 。 作为常见的工作, 您可以尝试调制一些 NCCL 环境变量, 例如 `export NCCL_P2P_DISABLE=1` 查看是否有帮助。请检查 [他们的文档](<https://docs.nvidia.com/deeplearning/nccl/user-guide/docs/env.html>) 。请只使用这些环境变量作为临时工作,因为它们可能影响系统的性能。最好的解决方案仍然是修复硬件/驱动程序,以便测试脚本能够成功运行。 ## Python 多处理[¶](<https://docs.vllm.ai/en/latest/usage/troubleshooting/#python-multiprocessing>) ### `RuntimeError` 例外[¶](<https://docs.vllm.ai/en/latest/usage/troubleshooting/#runtimeerror-exception>) 如果你的日志上有这样的警告: ``` WARNING 12-11 14:50:37 multiproc_worker_utils.py:281] CUDA was previously initialized. We must use the `spawn` multiprocessing start method. Setting VLLM_WORKER_MULTIPROC_METHOD to 'spawn'. See https://docs.vllm.ai/en/latest/usage/troubleshooting.html#python-multiprocessing for more information. ``` 或来自 Python 的类似错误 : 日志 ``` RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase. This probably means that you are not using fork to start your child processes and you have forgotten to use the proper idiom in the main module: if __name__ == '__main__': freeze_support() ... The "freeze_support()" line can be omitted if the program is not going to be frozen to produce an executable. To fix this issue, refer to the "Safe importing of main module" section in https://docs.python.org/3/library/multiprocessing.html ``` 然后您必须更新您的 Python 代码, 以守护使用 `vllm` 后面一个 `if __name__ == '__main__':` 块。例如,代替此选项: ``` import vllm llm = vllm.LLM(...) ``` 尝试此选项: ``` if __name__ == '__main__': import vllm llm = vllm.LLM(...) ``` ## `torch.compile` 错误[¶](<https://docs.vllm.ai/en/latest/usage/troubleshooting/#torchcompile-error>) vLLM 严重依赖 `torch.compile` 以优化模式,提高业绩,从而对 `torch.compile` 函数和 `triton` 库。默认情况下,我们使用 `torch.compile` 改为: [优化一些功能](<https://github.com/vllm-project/vllm/pull/10406>) 在模型中。运行 vLLM 之前,您可以检查是否 `torch.compile` 正在运行以下脚本, 以达到预期效果 : 代码 ``` import torch @torch.compile def f(x): # a simple function to test torch.compile x = x + 1 x = x * 2 x = x.sin() return x x = torch.randn(4, 4).cuda() print(f(x)) ``` 如果从中产生错误 `torch/_inductor` 目录,通常表示您有自定义 `triton` 与您使用的 PyTorch 版本不兼容的库。参见 [问题 #12219](<https://github.com/vllm-project/vllm/issues/12219>) 举个例子。 ## 型号未检查[¶](<https://docs.vllm.ai/en/latest/usage/troubleshooting/#model-failed-to-be-inspected>) 如果您看到这样的错误 : ``` File "vllm/model_executor/models/registry.py", line xxx, in _raise_for_unsupported raise ValueError( ValueError: Model architectures ['<arch>'] failed to be inspected. Please check the logs for more details. ``` 这意味着 vLLM 导入模型文件失败。 通常, 它与 vLLM 构建中缺失的依赖性或过时的二进制有关。 请仔细阅读日志以确定错误的根源 。 ## 不支持的模型[¶](<https://docs.vllm.ai/en/latest/usage/troubleshooting/#model-not-supported>) 如果您看到这样的错误 : ``` Traceback (most recent call last): ... File "vllm/model_executor/models/registry.py", line xxx, in inspect_model_cls for arch in architectures: TypeError: 'NoneType' object is not iterable ``` 或 : ``` File "vllm/model_executor/models/registry.py", line xxx, in _raise_for_unsupported raise ValueError( ValueError: Model architectures ['<arch>'] are not supported for now. Supported architectures: [...] ``` 但你确定模特儿在... [所支持的模型列表](<https://docs.vllm.ai/en/latest/models/supported_models/>)VLLM的模型解析可能有些问题。 [这些步骤](<https://docs.vllm.ai/en/latest/configuration/model_resolution/>) 明确规定该模型的 vLLM 执行。 ## 推断设备类型失败[¶](<https://docs.vllm.ai/en/latest/usage/troubleshooting/#failed-to-infer-device-type>) 如果你看到一个错误,比如 `RuntimeError: Failed to infer device type`,这意味着 vLLM 无法推断运行时环境的设备类型。您可以检查 [代码](<https://github.com/vllm-project/vllm/blob/main/vllm/platforms/__init__.py>) 以查看 vLLM 如何推断设备类型,以及设备为何没有按预期工作。 [这个 PR](<https://github.com/vllm-project/vllm/pull/14195>),也可以设置环境变量 `VLLM_LOGGING_LEVEL=DEBUG` 以查看更详细的日志来帮助调试这个问题。 ## NCCL 错误: 期间未处理系统错误 `ncclCommInitRank`[¶](<https://docs.vllm.ai/en/latest/usage/troubleshooting/#nccl-error-unhandled-system-error-during-ncclcomminitrank>) 如果您的服务工作量使用 GPUDirect RDMA 在多个节点之间分配服务并遇到错误 。 `ncclCommInitRank`,甚至没有清晰的错误消息 `NCCL_DEBUG=INFO` 设定,它可能看起来像这样: ``` Error executing method 'init_device'. This might cause deadlock in distributed execution. Traceback (most recent call last): ... File "/usr/local/lib/python3.12/dist-packages/vllm/distributed/device_communicators/pynccl.py", line 99, in __init__ self.comm: ncclComm_t = self.nccl.ncclCommInitRank( ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/dist-packages/vllm/distributed/device_communicators/pynccl_wrapper.py", line 277, in ncclCommInitRank self.NCCL_CHECK(self._funcs["ncclCommInitRank"](ctypes.byref(comm), File "/usr/local/lib/python3.12/dist-packages/vllm/distributed/device_communicators/pynccl_wrapper.py", line 256, in NCCL_CHECK raise RuntimeError(f"NCCL error: {error_str}") RuntimeError: NCCL error: unhandled system error (run with NCCL_DEBUG=INFO for details) ... ``` 这表明 vLLM 未能初始化 NCCL 通讯器,可能是因为缺少一个 `IPC_LOCK` linux 能力或未挂载 `/dev/shm`。参见 [启用 GPUDirect RDMA](<https://docs.vllm.ai/en/latest/serving/parallelism_scaling/#enabling-gpudirect-rdma>) 用于GPUDirect RDMA环境正确配置的指南。 ## CUDA 错误: 提供的 PTX 是以一个不支持的工具链编译的[¶](<https://docs.vllm.ai/en/latest/usage/troubleshooting/#cuda-error-the-provided-ptx-was-compiled-with-an-unsupported-toolchain>) 如果你看到一个错误,比如 `RuntimeError: CUDA error: the provided PTX was compiled with an unsupported toolchain`,这意味着vLLM的轮子中的 CUDA PTX 是用一个工具链编译而成的,不为您的系统所支持。如果得到错误,本节也适用 `RuntimeError: The NVIDIA driver on your system is too old`. 所发行的vLLM轮被编译为CUDA工具包的特定版本,编译的代码可能无法运行在CUDA驱动器的低版本上. Read. [CUDA 兼容性](<https://docs.nvidia.com/deploy/cuda-compatibility/>) 更多细节。 **这只支持在选定的专业和数据中心NVIDIA GPU上.** 如果您正在使用 vLLM 官方 Docker 图像, 您可以通过添加来解决这个问题 `-e VLLM_ENABLE_CUDA_COMPATIBILITY=1` 给您的 `docker run` 命令。这将启用预先安装的 CUDA 前置兼容库。 如果您在 Docker 外运行 vLLM , 解决方案是安装 `cuda-compat` 软件包管理器中的软件包 [CUDA 仓库](<https://docs.nvidia.com/cuda/cuda-installation-guide-linux/>) 启用。例如,在 Ubuntu 上,您可以运行 `sudo apt-get install cuda-compat-12-9`设置 `export VLLM_ENABLE_CUDA_COMPATIBILITY=1` 财务报告和财务报告 `export VLLM_CUDA_COMPATIBILITY_PATH="/usr/local/cuda-12.9/compat"`. 在康达,你可以安装 `conda-forge::cuda-compat` 软件包(例如, `conda install -c conda-forge cuda-compat=12.9`),然后在激活环境后,设定 `export VLLM_ENABLE_CUDA_COMPATIBILITY=1` 财务报告和财务报告 `export VLLM_CUDA_COMPATIBILITY_PATH="${CONDA_PREFIX}/cuda-compat"`. 您可以通过运行一个通过 vLLM 初始化 CUDA 的最小 Python 脚本来验证配置工作 : ``` export VLLM_ENABLE_CUDA_COMPATIBILITY=1 export VLLM_CUDA_COMPATIBILITY_PATH="/usr/local/cuda-12.9/compat" python3 - << 'EOF' import vllm import torch print(f"CUDA available: {torch.cuda.is_available()}") print(f"CUDA device count: {torch.accelerator.device_count()}") EOF ``` 注意我们在此使用CUDA 12.9作为示例,您可能想要安装一个更高版本的cuda-compat软件包,以防vLLM默认的CUDA版本变高. ## ptxas 致命: 值“ sm_110a” 没有定义“ gpu- name” 选项[¶](<https://docs.vllm.ai/en/latest/usage/troubleshooting/#ptxas-fatal-value-sm_110a-is-not-defined-for-option-gpu-name>) 如果您使用带有cuda 13的三联内核,你可能会看到一个错误,比如: `ptxas fatal: Value 'sm_110a' is not defined for option 'gpu-name'`: ``` (EngineCore_0 pid=9492) triton.runtime.errors.PTXASError: PTXAS error: Internal Triton PTX codegen error (EngineCore_0 pid=9492) `ptxas` stderr: (EngineCore_0 pid=9492) ptxas fatal : Value 'sm_110a' is not defined for option 'gpu-name' (EngineCore_0 pid=9492) (EngineCore_0 pid=9492) Repro command: /home/jetson/.venv/lib/python3.12/site-packages/triton/backends/nvidia/bin/ptxas -lineinfo -v --gpu-name=sm_110a /tmp/tmp95oy_b9d.ptx -o /tmp/tmp95oy_b9d.ptx.o (EngineCore_0 pid=9492) outputs = self.engine_core.get_output() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/jetson/.venv/lib/python3.12/site-packages/vllm/v1/engine/core_client.py", line 668, in get_output raise self._format_exception(outputs) from None vllm.v1.engine.exceptions.EngineDeadError: EngineCore encountered an issue. See stack trace (above) for the root cause. ``` 表示三联装包中的 ptxa 与您的设备不兼容。 您需要设置 。 `TRITON_PTXAS_PATH` 使用 Cuda 工具包的 ptxas 的可变环境 : ``` export CUDA_HOME=/usr/local/cuda export TRITON_PTXAS_PATH="${CUDA_HOME}/bin/ptxas" export PATH="${CUDA_HOME}/bin:$PATH" ``` ## 已知问题[¶](<https://docs.vllm.ai/en/latest/usage/troubleshooting/#known-issues>) - 内 `v0.5.2`, `v0.5.3`,以及 `v0.5.3.post1`,有一个错误是由 [兹姆克](<https://github.com/zeromq/pyzmq/issues/2000>) ,这偶尔会根据机器配置而导致 vLLM 挂起。解决方案是升级到最新版本 `vllm` 包括: [修补](<https://github.com/vllm-project/vllm/pull/6759>). - 在旧的NCCL版本中处理内存管理费用问题(见 [错误](<https://github.com/NVIDIA/nccl/issues/1234>)), vLLM 版本 `>= 0.4.3, <= 0.10.1.1` 将设置环境变量 `NCCL_CUMEM_ENABLE=0`. 连接到 vLLM 的外部进程也需要设置此变量以防止挂起或崩溃。由于基础的 NCCL bug 被固定在 NCCL 2.22.3 中,所以在更新的 vLLM 版本中取消了此覆盖,从而可以进行 NCCL 性能优化. - 在一些PCIe机器中(例如没有NVLink的机器),如果你看到一个错误,比如: `transport/shm.cc:590 NCCL WARN Cuda failure 217 'peer access is not supported between these two devices'`,很可能是由驱动器错误引起的。 [B. 这个问题](<https://github.com/NVIDIA/nccl/issues/1838>) 详细信息。在这种情况下,你可以尝试设置 `NCCL_CUMEM_HOST_ENABLE=0` 以禁用特性,或将驱动程序升级到最新版本。 11月 18, 2026 (英语).

查看原始来源