Skip to content

Commit

Permalink
use xformers
Browse files Browse the repository at this point in the history
  • Loading branch information
sasha0552 authored Oct 30, 2024
1 parent f267dad commit fef6ade
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crash_repro.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import torch

from tests.kernels.utils import override_backend_env_variable
from vllm import LLM, SamplingParams, TokensPrompt
from vllm.distributed import destroy_model_parallel, destroy_distributed_environment

Expand All @@ -24,6 +25,8 @@

@pytest.fixture
def llm(enable_chunked_prefill, enable_prefix_caching, use_v2_block_manager, monkeypatch):
override_backend_env_variable(monkeypatch, "XFORMERS")

if not use_v2_block_manager:
monkeypatch.setenv("VLLM_ALLOW_DEPRECATED_BLOCK_MANAGER_V1", "1")

Expand Down

0 comments on commit fef6ade

Please sign in to comment.