(infer_backend)
| 22 | |
| 23 | |
| 24 | def _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 | |
| 35 | def test_vllm(): |
no test coverage detected