| 1 | # SPDX-License-Identifier: Apache-2.0 |
| 2 | # SPDX-FileCopyrightText: Copyright contributors to the vLLM project |
| 3 | |
| 4 | import pytest |
| 5 | import torch |
| 6 | |
| 7 | from vllm import SamplingParams |
| 8 | |
| 9 | from .utils import greedy_sampling |
| 10 | |
| 11 | |
| 12 | @pytest.fixture |
| 13 | def sampling_config() -> SamplingParams: |
| 14 | return greedy_sampling() |
| 15 | |
| 16 | |
| 17 | @pytest.fixture |
| 18 | def model_name() -> str: |
| 19 | return "meta-llama/Llama-3.1-8B-Instruct" |
| 20 | |
| 21 | |
| 22 | @pytest.fixture(autouse=True) |
| 23 | def reset_torch_dynamo(): |
| 24 | yield |
| 25 | torch._dynamo.reset() |