[torch.compile] add a flag to disable custom op (#8488)

This commit is contained in:
youkaichao
2024-09-14 13:07:16 -07:00
committed by GitHub
parent a36e070dad
commit 47790f3e32
3 changed files with 12 additions and 1 deletions
+2 -1
View File
@@ -6,7 +6,8 @@ import pytest
@pytest.mark.parametrize("model", ["meta-llama/Meta-Llama-3-8B"])
def test_full_graph(model):
# make sure these models can be captured in full graph mode
os.environ["VLLM_TEST_DYNAMO_GRAPH_CAPTURE"] = "1"
if "VLLM_TEST_DYNAMO_GRAPH_CAPTURE" not in os.environ:
os.environ["VLLM_TEST_DYNAMO_GRAPH_CAPTURE"] = "1"
from vllm import LLM, SamplingParams
prompts = [