[CI] speed up ut (#4901)

avoid model download to speed up ut test. 

- vLLM version: v0.12.0
- vLLM main:
ad32e3e19c

Signed-off-by: wangxiyuan <wangxiyuan1007@gmail.com>
This commit is contained in:
wangxiyuan
2025-12-11 18:45:43 +08:00
committed by GitHub
parent 3fade30275
commit b89763f1ed
6 changed files with 35 additions and 36 deletions

View File

@@ -4,6 +4,7 @@ from abc import abstractmethod
from collections import defaultdict
import numpy as np
from vllm.logger import logger
class DynamicConfig:
@@ -69,21 +70,21 @@ class DynamicEplbV2(EplbPolicy):
@staticmethod
def safe_divide(a, b):
if b == 0:
print("Division by zero is not allowed")
logger.info("Division by zero is not allowed")
return 0
return a / b
@staticmethod
def safe_exact_divide(a, b):
if b == 0:
print("Division by zero is not allowed")
logger.info("Division by zero is not allowed")
return 0
return a // b
@staticmethod
def safe_mod(a, b):
if b == 0:
print("Division by zero is not allowed")
logger.info("Division by zero is not allowed")
return 0
return a % b