test_full_graph.py 604 B

1234567891011121314151617181920
  1. import os
  2. import pytest
  3. @pytest.mark.parametrize("model", ["meta-llama/Meta-Llama-3-8B"])
  4. def test_full_graph(model):
  5. # make sure these models can be captured in full graph mode
  6. os.environ["APHRODITE_TEST_DYNAMO_GRAPH_CAPTURE"] = "1"
  7. from aphrodite import LLM, SamplingParams
  8. prompts = [
  9. "Hello, my name is",
  10. "The president of the United States is",
  11. "The capital of France is",
  12. "The future of AI is",
  13. ]
  14. sampling_params = SamplingParams(temperature=0)
  15. llm = LLM(model="meta-llama/Meta-Llama-3-8B")
  16. llm.generate(prompts, sampling_params)