mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-12-16 03:40:34 +08:00
[test] add npu test yaml and add ascend a3 docker file (#9547)
Co-authored-by: jiaqiw09 <jiaqiw960714@gmail.com>
This commit is contained in:
@@ -39,6 +39,7 @@ MESSAGES = [
|
||||
]
|
||||
|
||||
|
||||
@pytest.mark.runs_on(["cpu"])
|
||||
@pytest.mark.skipif(not is_sglang_available(), reason="SGLang is not installed")
|
||||
def test_chat():
|
||||
r"""Test the SGLang engine's basic chat functionality."""
|
||||
@@ -48,6 +49,7 @@ def test_chat():
|
||||
print(response.response_text)
|
||||
|
||||
|
||||
@pytest.mark.runs_on(["cpu"])
|
||||
@pytest.mark.skipif(not is_sglang_available(), reason="SGLang is not installed")
|
||||
def test_stream_chat():
|
||||
r"""Test the SGLang engine's streaming chat functionality."""
|
||||
|
||||
Reference in New Issue
Block a user