Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ MAX_JOBS := 64

SHELL := /bin/bash

.PHONY: all build clean format dev rocm rocm-upstream pyupdate nightly bm-rocm
.PHONY: all build clean format dev rocm rocm-upstream pyupdate nightly bm-rocm spelling

all: build

Expand Down Expand Up @@ -65,3 +65,7 @@ else
format:
python -m black --check --verbose scripts ibm-triton-lib third_party
endif

spelling:
codespell ./ibm-triton-lib ./triton-dejavu ./scripts

9 changes: 1 addition & 8 deletions ibm-triton-lib/ibm_triton_lib/backend/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,4 @@

def register():
"""Register the triton attention platform."""

VLLM_USE_V1 = int(os.environ.get("VLLM_USE_V1", "0"))

# backend only works with v0 currently
if VLLM_USE_V1:
return None
else:
return "ibm_triton_lib.backend.platform.TritonPlatform"
return "ibm_triton_lib.backend.platform.TritonPlatform"
2 changes: 2 additions & 0 deletions ibm-triton-lib/ibm_triton_lib/backend/platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,6 @@ def get_attn_backend_cls(
use_v1,
use_mla,
) -> str:
if not envs.VLLM_USE_V1:
raise RuntimeError("vllm-triton-backend plugin only supports vLLM V1")
return "ibm_triton_lib.backend.triton_attn.TritonAttentionBackend"
Loading