2025-03-15 01:02:20 -04:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2025-06-03 11:20:17 -07:00
|
|
|
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
|
2025-03-15 01:02:20 -04:00
|
|
|
import pytest
|
|
|
|
|
|
|
|
|
|
from vllm.engine.arg_utils import AsyncEngineArgs
|
|
|
|
|
|
|
|
|
|
MODEL = "meta-llama/Llama-3.2-1B-Instruct"
|
|
|
|
|
|
|
|
|
|
|
2025-11-06 16:05:32 +08:00
|
|
|
def test_unsupported_configs():
|
2026-02-18 16:48:11 -05:00
|
|
|
with pytest.raises(ValueError):
|
2025-11-06 16:05:32 +08:00
|
|
|
AsyncEngineArgs(
|
2025-03-15 01:02:20 -04:00
|
|
|
model=MODEL,
|
2025-11-06 16:05:32 +08:00
|
|
|
speculative_config={
|
|
|
|
|
"model": MODEL,
|
|
|
|
|
},
|
2025-03-15 01:02:20 -04:00
|
|
|
).create_engine_config()
|