-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
Closed
Labels
Description
Your current environment
The output of python collect_env.py
Collecting environment information...
==============================
System Info
==============================
OS : CentOS Stream 9 (x86_64)
GCC version : (GCC) 11.5.0 20240719 (Red Hat 11.5.0-5)
Clang version : 20.1.1 (CentOS 20.1.1-3.el9)
CMake version : version 3.26.5
Libc version : glibc-2.34
==============================
PyTorch Info
==============================
PyTorch version : 2.7.0+cu128
Is debug build : False
CUDA used to build PyTorch : 12.8
ROCM used to build PyTorch : N/A
==============================
Python Environment
==============================
Python version : 3.12.10 (main, Apr 9 2025, 00:00:00) [GCC 11.5.0 20240719 (Red Hat 11.5.0-5)] (64-bit runtime)
Python platform : Linux-6.4.3-0_fbk20_zion_2830_g3e5ab162667d-x86_64-with-glibc2.34
==============================
CUDA / GPU Info
==============================
Is CUDA available : True
CUDA runtime version : 12.8.93
CUDA_MODULE_LOADING set to : LAZY
GPU models and configuration :
GPU 0: NVIDIA H100
GPU 1: NVIDIA H100
GPU 2: NVIDIA H100
GPU 3: NVIDIA H100
GPU 4: NVIDIA H100
GPU 5: NVIDIA H100
GPU 6: NVIDIA H100
GPU 7: NVIDIA H100
Nvidia driver version : 535.154.05
cuDNN version : Probably one of the following:
/usr/lib64/libcudnn.so.8.9.2
/usr/lib64/libcudnn.so.9.2.0
/usr/lib64/libcudnn_adv.so.9.2.0
/usr/lib64/libcudnn_adv_infer.so.8.9.2
/usr/lib64/libcudnn_adv_train.so.8.9.2
/usr/lib64/libcudnn_cnn.so.9.2.0
/usr/lib64/libcudnn_cnn_infer.so.8.9.2
/usr/lib64/libcudnn_cnn_train.so.8.9.2
/usr/lib64/libcudnn_engines_precompiled.so.9.2.0
/usr/lib64/libcudnn_engines_runtime_compiled.so.9.2.0
/usr/lib64/libcudnn_graph.so.9.2.0
/usr/lib64/libcudnn_heuristic.so.9.2.0
/usr/lib64/libcudnn_ops.so.9.2.0
/usr/lib64/libcudnn_ops_infer.so.8.9.2
/usr/lib64/libcudnn_ops_train.so.8.9.2
HIP runtime version : N/A
MIOpen runtime version : N/A
Is XNNPACK available : True
==============================
CPU Info
==============================
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Address sizes: 52 bits physical, 57 bits virtual
Byte Order: Little Endian
CPU(s): 384
On-line CPU(s) list: 0-383
Vendor ID: AuthenticAMD
Model name: AMD EPYC 9654 96-Core Processor
CPU family: 25
Model: 17
Thread(s) per core: 2
Core(s) per socket: 96
Socket(s): 2
Stepping: 1
Frequency boost: enabled
CPU(s) scaling MHz: 80%
CPU max MHz: 3707.8120
CPU min MHz: 1500.0000
BogoMIPS: 4792.82
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good amd_lbr_v2 nopl nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 invpcid_single hw_pstate ssbd mba perfmon_v2 ibrs ibpb stibp ibrs_enhanced vmmcall fsgsbase bmi1 avx2 smep bmi2 erms invpcid cqm rdt_a avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local avx512_bf16 clzero irperf xsaveerptr rdpru wbnoinvd amd_ppin cppc arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif x2avic v_spec_ctrl vnmi avx512vbmi umip pku ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg avx512_vpopcntdq rdpid overflow_recov succor smca fsrm flush_l1d
Virtualization: AMD-V
L1d cache: 6 MiB (192 instances)
L1i cache: 6 MiB (192 instances)
L2 cache: 192 MiB (192 instances)
L3 cache: 768 MiB (24 instances)
NUMA node(s): 2
NUMA node0 CPU(s): 0-95,192-287
NUMA node1 CPU(s): 96-191,288-383
Vulnerability Gather data sampling: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2: Vulnerable: eIBRS with unprivileged eBPF
Vulnerability Srbds: Not affected
Vulnerability Tsx async abort: Not affected
==============================
Versions of relevant libraries
==============================
[pip3] mypy-extensions==1.0.0
[pip3] numpy==1.26.4
[pip3] nvidia-cublas-cu12==12.8.3.14
[pip3] nvidia-cuda-cupti-cu12==12.8.57
[pip3] nvidia-cuda-nvrtc-cu12==12.8.61
[pip3] nvidia-cuda-runtime-cu12==12.8.57
[pip3] nvidia-cudnn-cu12==9.7.1.26
[pip3] nvidia-cufft-cu12==11.3.3.41
[pip3] nvidia-cufile-cu12==1.13.0.11
[pip3] nvidia-curand-cu12==10.3.9.55
[pip3] nvidia-cusolver-cu12==11.7.2.55
[pip3] nvidia-cusparse-cu12==12.5.7.53
[pip3] nvidia-cusparselt-cu12==0.6.3
[pip3] nvidia-nccl-cu12==2.26.2
[pip3] nvidia-nvjitlink-cu12==12.8.61
[pip3] nvidia-nvtx-cu12==12.8.55
[pip3] pyzmq==26.4.0
[pip3] sentence-transformers==3.2.1
[pip3] torch==2.7.0+cu128
[pip3] torchaudio==2.7.0+cu128
[pip3] torchvision==0.22.0+cu128
[pip3] transformers==4.51.3
[pip3] transformers-stream-generator==0.0.5
[pip3] triton==3.3.0
[pip3] tritonclient==2.51.0
[pip3] vector-quantize-pytorch==1.21.2
[conda] Could not collect
==============================
vLLM Info
==============================
ROCM Version : Could not collect
Neuron SDK Version : N/A
vLLM Version : 0.1.dev7046+g467bef1.d20250615 (git sha: 467bef1, date: 20250615)
vLLM Build Flags:
CUDA Archs: Not Set; ROCm: Disabled; Neuron: Disabled
GPU Topology:
GPU0 GPU1 GPU2 GPU3 GPU4 GPU5 GPU6 GPU7 NIC0 NIC1 NIC2 NIC3 CPU Affinity NUMA Affinity GPU NUMA ID
GPU0 X NV18 NV18 NV18 NV18 NV18 NV18 NV18 SYS SYS SYS SYS 0-95,192-287 0 N/A
GPU1 NV18 X NV18 NV18 NV18 NV18 NV18 NV18 PHB PHB SYS SYS 0-95,192-287 0 N/A
GPU2 NV18 NV18 X NV18 NV18 NV18 NV18 NV18 SYS SYS SYS SYS 0-95,192-287 0 N/A
GPU3 NV18 NV18 NV18 X NV18 NV18 NV18 NV18 SYS SYS SYS SYS 0-95,192-287 0 N/A
GPU4 NV18 NV18 NV18 NV18 X NV18 NV18 NV18 SYS SYS SYS SYS 96-191,288-383 1 N/A
GPU5 NV18 NV18 NV18 NV18 NV18 X NV18 NV18 SYS SYS SYS SYS 96-191,288-383 1 N/A
GPU6 NV18 NV18 NV18 NV18 NV18 NV18 X NV18 SYS SYS PHB PHB 96-191,288-383 1 N/A
GPU7 NV18 NV18 NV18 NV18 NV18 NV18 NV18 X SYS SYS SYS SYS 96-191,288-383 1 N/A
NIC0 SYS PHB SYS SYS SYS SYS SYS SYS X PIX SYS SYS
NIC1 SYS PHB SYS SYS SYS SYS SYS SYS PIX X SYS SYS
NIC2 SYS SYS SYS SYS SYS SYS PHB SYS SYS SYS X PIX
NIC3 SYS SYS SYS SYS SYS SYS PHB SYS SYS SYS PIX X
Legend:
X = Self
SYS = Connection traversing PCIe as well as the SMP interconnect between NUMA nodes (e.g., QPI/UPI)
NODE = Connection traversing PCIe as well as the interconnect between PCIe Host Bridges within a NUMA node
PHB = Connection traversing PCIe as well as a PCIe Host Bridge (typically the CPU)
PXB = Connection traversing multiple PCIe bridges (without traversing the PCIe Host Bridge)
PIX = Connection traversing at most a single PCIe bridge
NV# = Connection traversing a bonded set of # NVLinks
NIC Legend:
NIC0: mlx5_0
NIC1: mlx5_1
NIC2: mlx5_2
NIC3: mlx5_3
==============================
Environment Variables
==============================
CUDA_CACHE_PATH=/data/users/quinnzhu/.nv/ComputeCache
MAX_JOBS=48
CUDA_NVCC_EXECUTABLE=/usr/local/cuda-12.8/lib64/
LD_LIBRARY_PATH=/usr/local/cuda-12.8/lib64/:/usr/local/cuda/lib64:/usr/local/cuda-12.8/lib64/:/usr/local/cuda/lib64:
CUDA_HOME=/usr/local/cuda-12.8
CUDA_HOME=/usr/local/cuda-12.8
NCCL_CUMEM_ENABLE=0
PYTORCH_NVML_BASED_CUDA_CHECK=1
TORCHINDUCTOR_COMPILE_THREADS=1
CUDA_MODULE_LOADING=LAZY
🐛 Describe the bug
Run a simple code with FA3. torch inductor seems to fail with a Triton compilation error.
Tried to upgrade gcc but still facing same error.
Stack trace:
INFO 06-14 21:52:14 [gpu_model_runner.py:1656] Model loading took 0.2389 GiB and 0.340157 seconds
INFO 06-14 21:52:16 [backends.py:508] Using cache directory: /home/quinnzhu/.cache/vllm/torch_compile_cache/9eb7e1ffe1/rank_0_0/backbone for vLLM's torch.compile
INFO 06-14 21:52:16 [backends.py:519] Dynamo bytecode transform time: 1.30 s
In file included from /data/users/quinnzhu/venv/p312env/lib/python3.12/site-packages/triton/backends/nvidia/include/cuda.h:56,
from /tmp/tmp23j1qrsv/main.c:1:
/usr/include/stdlib.h:31:10: fatal error: stddef.h: No such file or directory
31 | #include <stddef.h>
| ^~~~~~~~~~
compilation terminated.
ERROR 06-14 21:52:16 [core.py:515] EngineCore failed to start.
ERROR 06-14 21:52:16 [core.py:515] Traceback (most recent call last):
ERROR 06-14 21:52:16 [core.py:515] File "/data/users/quinnzhu/gitrepos/vllm/vllm/v1/engine/core.py", line 506, in run_engine_core
ERROR 06-14 21:52:16 [core.py:515] engine_core = EngineCoreProc(*args, **kwargs)
ERROR 06-14 21:52:16 [core.py:515] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ERROR 06-14 21:52:16 [core.py:515] File "/data/users/quinnzhu/gitrepos/vllm/vllm/v1/engine/core.py", line 390, in __init__
ERROR 06-14 21:52:16 [core.py:515] super().__init__(vllm_config, executor_class, log_stats,
ERROR 06-14 21:52:16 [core.py:515] File "/data/users/quinnzhu/gitrepos/vllm/vllm/v1/engine/core.py", line 83, in __init__
ERROR 06-14 21:52:16 [core.py:515] self._initialize_kv_caches(vllm_config)
ERROR 06-14 21:52:16 [core.py:515] File "/data/users/quinnzhu/gitrepos/vllm/vllm/v1/engine/core.py", line 141, in _initialize_kv_caches
ERROR 06-14 21:52:16 [core.py:515] available_gpu_memory = self.model_executor.determine_available_memory()
ERROR 06-14 21:52:16 [core.py:515] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ERROR 06-14 21:52:16 [core.py:515] File "/data/users/quinnzhu/gitrepos/vllm/vllm/v1/executor/abstract.py", line 76, in determine_available_memory
ERROR 06-14 21:52:16 [core.py:515] output = self.collective_rpc("determine_available_memory")
ERROR 06-14 21:52:16 [core.py:515] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ERROR 06-14 21:52:16 [core.py:515] File "/data/users/quinnzhu/gitrepos/vllm/vllm/executor/uniproc_executor.py", line 57, in collective_rpc
ERROR 06-14 21:52:16 [core.py:515] answer = run_method(self.driver_worker, method, args, kwargs)
ERROR 06-14 21:52:16 [core.py:515] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ERROR 06-14 21:52:16 [core.py:515] File "/data/users/quinnzhu/gitrepos/vllm/vllm/utils.py", line 2690, in run_method
ERROR 06-14 21:52:16 [core.py:515] return func(*args, **kwargs)
ERROR 06-14 21:52:16 [core.py:515] ^^^^^^^^^^^^^^^^^^^^^
ERROR 06-14 21:52:16 [core.py:515] File "/data/users/quinnzhu/venv/p312env/lib64/python3.12/site-packages/torch/utils/_contextlib.py", line 116, in decorate_context
ERROR 06-14 21:52:16 [core.py:515] return func(*args, **kwargs)
ERROR 06-14 21:52:16 [core.py:515] ^^^^^^^^^^^^^^^^^^^^^
ERROR 06-14 21:52:16 [core.py:515] File "/data/users/quinnzhu/gitrepos/vllm/vllm/v1/worker/gpu_worker.py", line 205, in determine_available_memory
ERROR 06-14 21:52:16 [core.py:515] self.model_runner.profile_run()
ERROR 06-14 21:52:16 [core.py:515] File "/data/users/quinnzhu/gitrepos/vllm/vllm/v1/worker/gpu_model_runner.py", line 2045, in profile_run
ERROR 06-14 21:52:16 [core.py:515] hidden_states = self._dummy_run(self.max_num_tokens)
ERROR 06-14 21:52:16 [core.py:515] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ERROR 06-14 21:52:16 [core.py:515] File "/data/users/quinnzhu/venv/p312env/lib64/python3.12/site-packages/torch/utils/_contextlib.py", line 116, in decorate_context
ERROR 06-14 21:52:16 [core.py:515] return func(*args, **kwargs)
ERROR 06-14 21:52:16 [core.py:515] ^^^^^^^^^^^^^^^^^^^^^
ERROR 06-14 21:52:16 [core.py:515] File "/data/users/quinnzhu/gitrepos/vllm/vllm/v1/worker/gpu_model_runner.py", line 1880, in _dummy_run
ERROR 06-14 21:52:16 [core.py:515] outputs = model(
ERROR 06-14 21:52:16 [core.py:515] ^^^^^^
ERROR 06-14 21:52:16 [core.py:515] File "/data/users/quinnzhu/venv/p312env/lib64/python3.12/site-packages/torch/nn/modules/module.py", line 1751, in _wrapped_call_impl
ERROR 06-14 21:52:16 [core.py:515] return self._call_impl(*args, **kwargs)
ERROR 06-14 21:52:16 [core.py:515] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ERROR 06-14 21:52:16 [core.py:515] File "/data/users/quinnzhu/venv/p312env/lib64/python3.12/site-packages/torch/nn/modules/module.py", line 1762, in _call_impl
ERROR 06-14 21:52:16 [core.py:515] return forward_call(*args, **kwargs)
ERROR 06-14 21:52:16 [core.py:515] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ERROR 06-14 21:52:16 [core.py:515] File "/data/users/quinnzhu/gitrepos/vllm/vllm/model_executor/models/opt.py", line 392, in forward
ERROR 06-14 21:52:16 [core.py:515] hidden_states = self.model(input_ids, positions, intermediate_tensors,
ERROR 06-14 21:52:16 [core.py:515] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ERROR 06-14 21:52:16 [core.py:515] File "/data/users/quinnzhu/gitrepos/vllm/vllm/compilation/decorators.py", line 239, in __call__
ERROR 06-14 21:52:16 [core.py:515] output = self.compiled_callable(*args, **kwargs)
ERROR 06-14 21:52:16 [core.py:515] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ERROR 06-14 21:52:16 [core.py:515] File "/data/users/quinnzhu/venv/p312env/lib64/python3.12/site-packages/torch/_dynamo/eval_frame.py", line 663, in _fn
ERROR 06-14 21:52:16 [core.py:515] raise e.remove_dynamo_frames() from None # see TORCHDYNAMO_VERBOSE=1
ERROR 06-14 21:52:16 [core.py:515] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ERROR 06-14 21:52:16 [core.py:515] File "/data/users/quinnzhu/venv/p312env/lib64/python3.12/site-packages/torch/_inductor/compile_fx.py", line 760, in _compile_fx_inner
ERROR 06-14 21:52:16 [core.py:515] raise InductorError(e, currentframe()).with_traceback(
ERROR 06-14 21:52:16 [core.py:515] File "/data/users/quinnzhu/venv/p312env/lib64/python3.12/site-packages/torch/_inductor/compile_fx.py", line 745, in _compile_fx_inner
ERROR 06-14 21:52:16 [core.py:515] mb_compiled_graph = fx_codegen_and_compile(
ERROR 06-14 21:52:16 [core.py:515] ^^^^^^^^^^^^^^^^^^^^^^^
ERROR 06-14 21:52:16 [core.py:515] File "/data/users/quinnzhu/venv/p312env/lib64/python3.12/site-packages/torch/_inductor/compile_fx.py", line 1295, in fx_codegen_and_compile
ERROR 06-14 21:52:16 [core.py:515] return scheme.codegen_and_compile(gm, example_inputs, inputs_to_check, graph_kwargs)
ERROR 06-14 21:52:16 [core.py:515] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ERROR 06-14 21:52:16 [core.py:515] File "/data/users/quinnzhu/venv/p312env/lib64/python3.12/site-packages/torch/_inductor/compile_fx.py", line 1197, in codegen_and_compile
ERROR 06-14 21:52:16 [core.py:515] compiled_fn = graph.compile_to_module().call
ERROR 06-14 21:52:16 [core.py:515] ^^^^^^^^^^^^^^^^^^^^^^^^^
ERROR 06-14 21:52:16 [core.py:515] File "/data/users/quinnzhu/venv/p312env/lib64/python3.12/site-packages/torch/_inductor/graph.py", line 2083, in compile_to_module
ERROR 06-14 21:52:16 [core.py:515] return self._compile_to_module()
ERROR 06-14 21:52:16 [core.py:515] ^^^^^^^^^^^^^^^^^^^^^^^^^
ERROR 06-14 21:52:16 [core.py:515] File "/data/users/quinnzhu/venv/p312env/lib64/python3.12/site-packages/torch/_inductor/graph.py", line 2091, in _compile_to_module
ERROR 06-14 21:52:16 [core.py:515] self.codegen_with_cpp_wrapper() if self.cpp_wrapper else self.codegen()
ERROR 06-14 21:52:16 [core.py:515] ^^^^^^^^^^^^^^
ERROR 06-14 21:52:16 [core.py:515] File "/data/users/quinnzhu/venv/p312env/lib64/python3.12/site-packages/torch/_inductor/graph.py", line 2002, in codegen
ERROR 06-14 21:52:16 [core.py:515] self.scheduler.codegen()
ERROR 06-14 21:52:16 [core.py:515] File "/data/users/quinnzhu/venv/p312env/lib64/python3.12/site-packages/torch/_inductor/scheduler.py", line 4135, in codegen
ERROR 06-14 21:52:16 [core.py:515] else self._codegen(self.nodes)
ERROR 06-14 21:52:16 [core.py:515] ^^^^^^^^^^^^^^^^^^^^^^^^^
ERROR 06-14 21:52:16 [core.py:515] File "/data/users/quinnzhu/venv/p312env/lib64/python3.12/site-packages/torch/_inductor/scheduler.py", line 4264, in _codegen
ERROR 06-14 21:52:16 [core.py:515] self.get_backend(device).codegen_node(node)
ERROR 06-14 21:52:16 [core.py:515] File "/data/users/quinnzhu/venv/p312env/lib64/python3.12/site-packages/torch/_inductor/codegen/cuda_combined_scheduling.py", line 104, in codegen_node
ERROR 06-14 21:52:16 [core.py:515] return self._triton_scheduling.codegen_node(node)
ERROR 06-14 21:52:16 [core.py:515] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ERROR 06-14 21:52:16 [core.py:515] File "/data/users/quinnzhu/venv/p312env/lib64/python3.12/site-packages/torch/_inductor/codegen/simd.py", line 1320, in codegen_node
ERROR 06-14 21:52:16 [core.py:515] return self.codegen_node_schedule(
ERROR 06-14 21:52:16 [core.py:515] ^^^^^^^^^^^^^^^^^^^^^^^^^^^
ERROR 06-14 21:52:16 [core.py:515] File "/data/users/quinnzhu/venv/p312env/lib64/python3.12/site-packages/torch/_inductor/codegen/simd.py", line 1365, in codegen_node_schedule
ERROR 06-14 21:52:16 [core.py:515] src_code = kernel.codegen_kernel()
ERROR 06-14 21:52:16 [core.py:515] ^^^^^^^^^^^^^^^^^^^^^^^
ERROR 06-14 21:52:16 [core.py:515] File "/data/users/quinnzhu/venv/p312env/lib64/python3.12/site-packages/torch/_inductor/codegen/triton.py", line 3623, in codegen_kernel
ERROR 06-14 21:52:16 [core.py:515] **self.inductor_meta_common(),
ERROR 06-14 21:52:16 [core.py:515] ^^^^^^^^^^^^^^^^^^^^^^^^^^^
ERROR 06-14 21:52:16 [core.py:515] File "/data/users/quinnzhu/venv/p312env/lib64/python3.12/site-packages/torch/_inductor/codegen/triton.py", line 3447, in inductor_meta_common
ERROR 06-14 21:52:16 [core.py:515] "backend_hash": torch.utils._triton.triton_hash_with_backend(),
ERROR 06-14 21:52:16 [core.py:515] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ERROR 06-14 21:52:16 [core.py:515] File "/data/users/quinnzhu/venv/p312env/lib64/python3.12/site-packages/torch/utils/_triton.py", line 111, in triton_hash_with_backend
ERROR 06-14 21:52:16 [core.py:515] backend = triton_backend()
ERROR 06-14 21:52:16 [core.py:515] ^^^^^^^^^^^^^^^^
ERROR 06-14 21:52:16 [core.py:515] File "/data/users/quinnzhu/venv/p312env/lib64/python3.12/site-packages/torch/utils/_triton.py", line 103, in triton_backend
ERROR 06-14 21:52:16 [core.py:515] target = driver.active.get_current_target()
ERROR 06-14 21:52:16 [core.py:515] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ERROR 06-14 21:52:16 [core.py:515] File "/data/users/quinnzhu/venv/p312env/lib64/python3.12/site-packages/triton/runtime/driver.py", line 23, in __getattr__
ERROR 06-14 21:52:16 [core.py:515] self._initialize_obj()
ERROR 06-14 21:52:16 [core.py:515] File "/data/users/quinnzhu/venv/p312env/lib64/python3.12/site-packages/triton/runtime/driver.py", line 20, in _initialize_obj
ERROR 06-14 21:52:16 [core.py:515] self._obj = self._init_fn()
ERROR 06-14 21:52:16 [core.py:515] ^^^^^^^^^^^^^^^
ERROR 06-14 21:52:16 [core.py:515] File "/data/users/quinnzhu/venv/p312env/lib64/python3.12/site-packages/triton/runtime/driver.py", line 9, in _create_driver
ERROR 06-14 21:52:16 [core.py:515] return actives[0]()
ERROR 06-14 21:52:16 [core.py:515] ^^^^^^^^^^^^
ERROR 06-14 21:52:16 [core.py:515] File "/data/users/quinnzhu/venv/p312env/lib64/python3.12/site-packages/triton/backends/nvidia/driver.py", line 535, in __init__
ERROR 06-14 21:52:16 [core.py:515] self.utils = CudaUtils() # TODO: make static
ERROR 06-14 21:52:16 [core.py:515] ^^^^^^^^^^^
ERROR 06-14 21:52:16 [core.py:515] File "/data/users/quinnzhu/venv/p312env/lib64/python3.12/site-packages/triton/backends/nvidia/driver.py", line 89, in __init__
ERROR 06-14 21:52:16 [core.py:515] mod = compile_module_from_src(Path(os.path.join(dirname, "driver.c")).read_text(), "cuda_utils")
ERROR 06-14 21:52:16 [core.py:515] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ERROR 06-14 21:52:16 [core.py:515] File "/data/users/quinnzhu/venv/p312env/lib64/python3.12/site-packages/triton/backends/nvidia/driver.py", line 66, in compile_module_from_src
ERROR 06-14 21:52:16 [core.py:515] so = _build(name, src_path, tmpdir, library_dirs(), include_dir, libraries)
ERROR 06-14 21:52:16 [core.py:515] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ERROR 06-14 21:52:16 [core.py:515] File "/data/users/quinnzhu/venv/p312env/lib64/python3.12/site-packages/triton/runtime/build.py", line 36, in _build
ERROR 06-14 21:52:16 [core.py:515] subprocess.check_call(cc_cmd, stdout=subprocess.DEVNULL)
ERROR 06-14 21:52:16 [core.py:515] File "/usr/lib64/python3.12/subprocess.py", line 413, in check_call
ERROR 06-14 21:52:16 [core.py:515] raise CalledProcessError(retcode, cmd)
ERROR 06-14 21:52:16 [core.py:515] torch._inductor.exc.InductorError: CalledProcessError: Command '['/usr/lib64/ccache/gcc', '/tmp/tmp23j1qrsv/main.c', '-O3', '-shared', '-fPIC', '-Wno-psabi', '-o', '/tmp/tmp23j1qrsv/cuda_utils.cpython-312-x86_64-linux-gnu.so', '-lcuda', '-L/data/users/quinnzhu/venv/p312env/lib/python3.12/site-packages/triton/backends/nvidia/lib', '-L/lib64', '-I/data/users/quinnzhu/venv/p312env/lib/python3.12/site-packages/triton/backends/nvidia/include', '-I/tmp/tmp23j1qrsv', '-I/usr/include/python3.12']' returned non-zero exit status 1.
ERROR 06-14 21:52:16 [core.py:515]
ERROR 06-14 21:52:16 [core.py:515] Set TORCHDYNAMO_VERBOSE=1 for the internal stack trace (please do this especially if you're reporting a bug to PyTorch). For even more developer context, set TORCH_LOGS="+dynamo"
ERROR 06-14 21:52:16 [core.py:515]
Process EngineCore_0:
Traceback (most recent call last):
File "/usr/lib64/python3.12/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib64/python3.12/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/data/users/quinnzhu/gitrepos/vllm/vllm/v1/engine/core.py", line 519, in run_engine_core
raise e
File "/data/users/quinnzhu/gitrepos/vllm/vllm/v1/engine/core.py", line 506, in run_engine_core
engine_core = EngineCoreProc(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/users/quinnzhu/gitrepos/vllm/vllm/v1/engine/core.py", line 390, in __init__
super().__init__(vllm_config, executor_class, log_stats,
File "/data/users/quinnzhu/gitrepos/vllm/vllm/v1/engine/core.py", line 83, in __init__
self._initialize_kv_caches(vllm_config)
File "/data/users/quinnzhu/gitrepos/vllm/vllm/v1/engine/core.py", line 141, in _initialize_kv_caches
available_gpu_memory = self.model_executor.determine_available_memory()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/users/quinnzhu/gitrepos/vllm/vllm/v1/executor/abstract.py", line 76, in determine_available_memory
output = self.collective_rpc("determine_available_memory")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/users/quinnzhu/gitrepos/vllm/vllm/executor/uniproc_executor.py", line 57, in collective_rpc
answer = run_method(self.driver_worker, method, args, kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/users/quinnzhu/gitrepos/vllm/vllm/utils.py", line 2690, in run_method
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/data/users/quinnzhu/venv/p312env/lib64/python3.12/site-packages/torch/utils/_contextlib.py", line 116, in decorate_context
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/data/users/quinnzhu/gitrepos/vllm/vllm/v1/worker/gpu_worker.py", line 205, in determine_available_memory
self.model_runner.profile_run()
File "/data/users/quinnzhu/gitrepos/vllm/vllm/v1/worker/gpu_model_runner.py", line 2045, in profile_run
hidden_states = self._dummy_run(self.max_num_tokens)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/users/quinnzhu/venv/p312env/lib64/python3.12/site-packages/torch/utils/_contextlib.py", line 116, in decorate_context
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/data/users/quinnzhu/gitrepos/vllm/vllm/v1/worker/gpu_model_runner.py", line 1880, in _dummy_run
outputs = model(
^^^^^^
File "/data/users/quinnzhu/venv/p312env/lib64/python3.12/site-packages/torch/nn/modules/module.py", line 1751, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/users/quinnzhu/venv/p312env/lib64/python3.12/site-packages/torch/nn/modules/module.py", line 1762, in _call_impl
return forward_call(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/users/quinnzhu/gitrepos/vllm/vllm/model_executor/models/opt.py", line 392, in forward
hidden_states = self.model(input_ids, positions, intermediate_tensors,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/users/quinnzhu/gitrepos/vllm/vllm/compilation/decorators.py", line 239, in __call__
output = self.compiled_callable(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/users/quinnzhu/venv/p312env/lib64/python3.12/site-packages/torch/_dynamo/eval_frame.py", line 663, in _fn
raise e.remove_dynamo_frames() from None # see TORCHDYNAMO_VERBOSE=1
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/users/quinnzhu/venv/p312env/lib64/python3.12/site-packages/torch/_inductor/compile_fx.py", line 760, in _compile_fx_inner
raise InductorError(e, currentframe()).with_traceback(
File "/data/users/quinnzhu/venv/p312env/lib64/python3.12/site-packages/torch/_inductor/compile_fx.py", line 745, in _compile_fx_inner
mb_compiled_graph = fx_codegen_and_compile(
^^^^^^^^^^^^^^^^^^^^^^^
File "/data/users/quinnzhu/venv/p312env/lib64/python3.12/site-packages/torch/_inductor/compile_fx.py", line 1295, in fx_codegen_and_compile
return scheme.codegen_and_compile(gm, example_inputs, inputs_to_check, graph_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/users/quinnzhu/venv/p312env/lib64/python3.12/site-packages/torch/_inductor/compile_fx.py", line 1197, in codegen_and_compile
compiled_fn = graph.compile_to_module().call
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/users/quinnzhu/venv/p312env/lib64/python3.12/site-packages/torch/_inductor/graph.py", line 2083, in compile_to_module
return self._compile_to_module()
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/users/quinnzhu/venv/p312env/lib64/python3.12/site-packages/torch/_inductor/graph.py", line 2091, in _compile_to_module
self.codegen_with_cpp_wrapper() if self.cpp_wrapper else self.codegen()
^^^^^^^^^^^^^^
File "/data/users/quinnzhu/venv/p312env/lib64/python3.12/site-packages/torch/_inductor/graph.py", line 2002, in codegen
self.scheduler.codegen()
File "/data/users/quinnzhu/venv/p312env/lib64/python3.12/site-packages/torch/_inductor/scheduler.py", line 4135, in codegen
else self._codegen(self.nodes)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/users/quinnzhu/venv/p312env/lib64/python3.12/site-packages/torch/_inductor/scheduler.py", line 4264, in _codegen
self.get_backend(device).codegen_node(node)
File "/data/users/quinnzhu/venv/p312env/lib64/python3.12/site-packages/torch/_inductor/codegen/cuda_combined_scheduling.py", line 104, in codegen_node
return self._triton_scheduling.codegen_node(node)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/users/quinnzhu/venv/p312env/lib64/python3.12/site-packages/torch/_inductor/codegen/simd.py", line 1320, in codegen_node
return self.codegen_node_schedule(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/users/quinnzhu/venv/p312env/lib64/python3.12/site-packages/torch/_inductor/codegen/simd.py", line 1365, in codegen_node_schedule
src_code = kernel.codegen_kernel()
^^^^^^^^^^^^^^^^^^^^^^^
File "/data/users/quinnzhu/venv/p312env/lib64/python3.12/site-packages/torch/_inductor/codegen/triton.py", line 3623, in codegen_kernel
**self.inductor_meta_common(),
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/users/quinnzhu/venv/p312env/lib64/python3.12/site-packages/torch/_inductor/codegen/triton.py", line 3447, in inductor_meta_common
"backend_hash": torch.utils._triton.triton_hash_with_backend(),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/users/quinnzhu/venv/p312env/lib64/python3.12/site-packages/torch/utils/_triton.py", line 111, in triton_hash_with_backend
backend = triton_backend()
^^^^^^^^^^^^^^^^
File "/data/users/quinnzhu/venv/p312env/lib64/python3.12/site-packages/torch/utils/_triton.py", line 103, in triton_backend
target = driver.active.get_current_target()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/users/quinnzhu/venv/p312env/lib64/python3.12/site-packages/triton/runtime/driver.py", line 23, in __getattr__
self._initialize_obj()
File "/data/users/quinnzhu/venv/p312env/lib64/python3.12/site-packages/triton/runtime/driver.py", line 20, in _initialize_obj
self._obj = self._init_fn()
^^^^^^^^^^^^^^^
File "/data/users/quinnzhu/venv/p312env/lib64/python3.12/site-packages/triton/runtime/driver.py", line 9, in _create_driver
return actives[0]()
^^^^^^^^^^^^
File "/data/users/quinnzhu/venv/p312env/lib64/python3.12/site-packages/triton/backends/nvidia/driver.py", line 535, in __init__
self.utils = CudaUtils() # TODO: make static
^^^^^^^^^^^
File "/data/users/quinnzhu/venv/p312env/lib64/python3.12/site-packages/triton/backends/nvidia/driver.py", line 89, in __init__
mod = compile_module_from_src(Path(os.path.join(dirname, "driver.c")).read_text(), "cuda_utils")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/users/quinnzhu/venv/p312env/lib64/python3.12/site-packages/triton/backends/nvidia/driver.py", line 66, in compile_module_from_src
so = _build(name, src_path, tmpdir, library_dirs(), include_dir, libraries)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/users/quinnzhu/venv/p312env/lib64/python3.12/site-packages/triton/runtime/build.py", line 36, in _build
subprocess.check_call(cc_cmd, stdout=subprocess.DEVNULL)
File "/usr/lib64/python3.12/subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
torch._inductor.exc.InductorError: CalledProcessError: Command '['/usr/lib64/ccache/gcc', '/tmp/tmp23j1qrsv/main.c', '-O3', '-shared', '-fPIC', '-Wno-psabi', '-o', '/tmp/tmp23j1qrsv/cuda_utils.cpython-312-x86_64-linux-gnu.so', '-lcuda', '-L/data/users/quinnzhu/venv/p312env/lib/python3.12/site-packages/triton/backends/nvidia/lib', '-L/lib64', '-I/data/users/quinnzhu/venv/p312env/lib/python3.12/site-packages/triton/backends/nvidia/include', '-I/tmp/tmp23j1qrsv', '-I/usr/include/python3.12']' returned non-zero exit status 1.
Set TORCHDYNAMO_VERBOSE=1 for the internal stack trace (please do this especially if you're reporting a bug to PyTorch). For even more developer context, set TORCH_LOGS="+dynamo"
Traceback (most recent call last):
File "/data/users/quinnzhu/gitrepos/vllm/run_fa3.py", line 15, in <module>
llm = LLM(model="facebook/opt-125m")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/users/quinnzhu/gitrepos/vllm/vllm/entrypoints/llm.py", line 262, in __init__
self.llm_engine = LLMEngine.from_engine_args(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/users/quinnzhu/gitrepos/vllm/vllm/engine/llm_engine.py", line 501, in from_engine_args
return engine_cls.from_vllm_config(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/users/quinnzhu/gitrepos/vllm/vllm/v1/engine/llm_engine.py", line 124, in from_vllm_config
return cls(vllm_config=vllm_config,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/users/quinnzhu/gitrepos/vllm/vllm/v1/engine/llm_engine.py", line 101, in __init__
self.engine_core = EngineCoreClient.make_client(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/users/quinnzhu/gitrepos/vllm/vllm/v1/engine/core_client.py", line 75, in make_client
return SyncMPClient(vllm_config, executor_class, log_stats)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/users/quinnzhu/gitrepos/vllm/vllm/v1/engine/core_client.py", line 558, in __init__
super().__init__(
File "/data/users/quinnzhu/gitrepos/vllm/vllm/v1/engine/core_client.py", line 422, in __init__
self._init_engines_direct(vllm_config, local_only,
File "/data/users/quinnzhu/gitrepos/vllm/vllm/v1/engine/core_client.py", line 491, in _init_engines_direct
self._wait_for_engine_startup(handshake_socket, input_address,
File "/data/users/quinnzhu/gitrepos/vllm/vllm/v1/engine/core_client.py", line 511, in _wait_for_engine_startup
wait_for_engine_startup(
File "/data/users/quinnzhu/gitrepos/vllm/vllm/v1/utils.py", line 494, in wait_for_engine_startup
raise RuntimeError("Engine core initialization failed. "
Code:
import os
os.environ["VLLM_FLASH_ATTN_VERSION"] = "3"
os.environ["VLLM_ATTENTION_BACKEND"] = "FLASH_ATTN"
from vllm import LLM, SamplingParams
prompts = [
"Hello, my name is",
"The president of the United States is",
"The capital of France is",
"The future of AI is",
]
sampling_params = SamplingParams(temperature=0.8, top_p=0.95)
llm = LLM(model="facebook/opt-125m")
outputs = llm.generate(prompts, sampling_params)
for output in outputs:
prompt = output.prompt
generated_text = output.outputs[0].text
print(f"Prompt: {prompt!r}, Generated text: {generated_text!r}")
Before submitting a new issue...
- Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done