File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 11from unittest .mock import MagicMock , patch
22
33import pytest
4+ from vllm .config import ModelConfig
45from vllm .lora .request import LoRARequest
56from vllm .v1 .kv_cache_interface import KVCacheConfig
67from vllm .v1 .outputs import DraftTokenIds
@@ -27,9 +28,6 @@ def mock_vllm_config():
2728 This version builds the mock explicitly to avoid spec-related AttributeErrors.
2829 """
2930 # Create mocks for the nested config objects first
30- mock_model_conf = MagicMock ()
31- mock_model_conf .trust_remote_code = False
32-
3331 mock_cache_conf = MagicMock ()
3432 mock_cache_conf .gpu_memory_utilization = 0.9
3533 mock_cache_conf .num_gpu_blocks = 0
@@ -43,7 +41,7 @@ def mock_vllm_config():
4341
4442 # Create the main config mock and attach the others without a top-level spec
4543 config = MagicMock ()
46- config .model_config = mock_model_conf
44+ config .model_config = ModelConfig ( model = "Qwen/Qwen3-0.6B" )
4745 config .cache_config = mock_cache_conf
4846 config .parallel_config = mock_parallel_conf
4947 config .additional_config = mock_additional_config
You can’t perform that action at this time.
0 commit comments