Add NPU basic function testcases (#19382)
Co-authored-by: cy <chenyang08056032@163.com> Co-authored-by: Cherry_ming <136634645@qq.com>
This commit is contained in:
co-authored by
cy
Cherry_ming
parent
e96a3752a0
commit
895e56097c
+9
-3
@@ -3,6 +3,7 @@ import unittest
|
||||
|
||||
import torch
|
||||
|
||||
from sglang.test.ascend.test_ascend_utils import BGE_RERANKER_V2_M3_WEIGHTS_PATH
|
||||
from sglang.test.ci.ci_register import register_npu_ci
|
||||
from sglang.test.runners import TEST_RERANK_QUERY_DOCS, HFRunner, SRTRunner
|
||||
from sglang.test.test_utils import CustomTestCase
|
||||
@@ -11,17 +12,22 @@ register_npu_ci(
|
||||
est_time=400,
|
||||
suite="nightly-1-npu-a3",
|
||||
nightly=True,
|
||||
disabled="cross encoder scores are not all close",
|
||||
)
|
||||
|
||||
MODELS = [
|
||||
("/root/.cache/modelscope/hub/models/BAAI/bge-reranker-v2-m3", 1, 1e-2),
|
||||
(BGE_RERANKER_V2_M3_WEIGHTS_PATH, 1, 1e-2),
|
||||
]
|
||||
ATTENTION_BACKEND = ["ascend"]
|
||||
TORCH_DTYPES = [torch.bfloat16]
|
||||
|
||||
|
||||
class TestCrossEncoderModels(CustomTestCase):
|
||||
class TestBgeReranker(CustomTestCase):
|
||||
"""Testcase: This test case validates that the cross-encoder scores from the BAAI/bge-reranker-v2-m3 model in the
|
||||
SGLang framework are less than 1e-2 different from the Hugging Face implementation.
|
||||
|
||||
[Test Category] Model
|
||||
[Test Target] BAAI/bge-reranker-v2-m3
|
||||
"""
|
||||
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
Reference in New Issue
Block a user