Update Hub kernel dependency floor
Signed-off-by: hsliuustc0106 <liuhongsheng4@huawei.com>
This commit is contained in:
1 parent
dff28e6867
commit
6b95de36a6
3 files changed
+25
-4
No files matched your search
@@ -0,0 +1,20 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
# SPDX-FileCopyrightText: Copyright contributors to the vLLM-Omni project
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import re
|
||||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
|
||||
pytestmark = [pytest.mark.core_model, pytest.mark.cpu]
|
||||
|
||||
_COMMON_REQUIREMENTS = Path(__file__).parents[2] / "requirements" / "common.txt"
|
||||
|
||||
|
||||
def test_common_requirements_keep_hub_kernel_dependencies_compatible():
|
||||
requirements = _COMMON_REQUIREMENTS.read_text()
|
||||
|
||||
assert re.search(r"^transformers\s*>=\s*5\.13\.0,\s*<\s*5\.15\s*$", requirements, re.MULTILINE)
|
||||
assert re.search(r"^kernels\s*==\s*0\.16\.0\s*$", requirements, re.MULTILINE)
|
||||
Reference in new issue
Block a user