물론이지, Claude가 정리해 준 패치 코드야:
vLLM PR #69028(vLLM nightly 0.34.0rc1.dev1103, torch 2.14.0+cu130, Triton 3.8.0) 기반의 7개 한 줄 변경 사항이야. 설치된 패키지를 직접 수정하니까 전용 venv를 사용하는 걸 추천해.
import glob, os, sys, sysconfig
SP = sys.argv[1] if len(sys.argv) > 1 else sysconfig.get_paths()["purelib"]
CAP = "current_platform.is_device_capability_family(120)"
SM89 = CAP + " or current_platform.is_device_capability(89)"
EDITS = [
("vllm/models/inkling2/quant_config.py", " return 90
", " return 89
"), # 최소 사양
("vllm/models/inkling2/nvidia/ops/conv_mix.py", "if " + CAP + ":
# Native conv/mix",
"if " + SM89 + ":
# Native conv/mix"), # SM12x와 같은 휴대용 conv/mix 경로
("vllm/models/inkling2/nvidia/attention.py", "if " + CAP + ":
supported +=",
"if " + SM89 + ":
supported +="), # fp8 KV 캐시
("vllm/models/inkling2/speculator_config.py", "if " + CAP + ":
# The target's clipped",
"if " + SM89 + ":
# The target's clipped"), # DSpark draft KV는 bf16 유지
("triton/language/extra/cuda/gdc.py", '"griddepcontrol.wait; // dummy $0"', '"mov.u32 $0, 0;"'),
("triton/language/extra/cuda/gdc.py", '"griddepcontrol.launch_dependents; // dummy $0"', '"mov.u32 $0, 0;"'),
("triton/backends/nvidia/driver.py", "self.launch_pdl = metadata.launch_pdl", "self.launch_pdl = False"),
] # 마지막 세 개: 프로그래밍 방식의 의존적 실행 없음(sm90+ PTX); 커널은 스트림 순서대로 실행됨
for rel, old, new in EDITS:
p = (glob.glob(os.path.join(SP, rel)) or [os.path.join(SP, rel)])[0]
s = open(p).read()
if s.count(old) != 1: sys.exit(f"{rel}: 고유 일치 항목 없음(이미 패치되었거나 버전이 다름)")
open(p, "w").write(s.replace(old, new)); print("patched", rel)