MCPcopy
hub / github.com/modelscope/ms-swift / _test

Function _test

tests/deploy/test_dataset.py:24–32  ·  view source on GitHub ↗
(infer_backend)

Source from the content-addressed store, hash-verified

22
23
24def _test(infer_backend):
25 import os
26 os.environ['CUDA_VISIBLE_DEVICES'] = '0'
27
28 from swift.arguments import DeployArguments
29 from swift.pipelines import run_deploy
30 args = DeployArguments(model='Qwen/Qwen2-7B-Instruct', infer_backend=infer_backend, verbose=False)
31 with run_deploy(args) as port:
32 _test_client(port)
33
34
35def test_vllm():

Callers 3

test_vllmFunction · 0.70
test_lmdeployFunction · 0.70
test_ptFunction · 0.70

Calls 3

DeployArgumentsClass · 0.90
run_deployFunction · 0.90
_test_clientFunction · 0.70

Tested by

no test coverage detected