Upload ms-swift/examples/deploy/server/README.md with huggingface_hub
Browse files
ms-swift/examples/deploy/server/README.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Please refer to the examples in [examples/infer](../../infer/) and change `swift infer` to `swift deploy` to start the service. (You need to additionally remove `--val_dataset`)
|
| 2 |
+
|
| 3 |
+
e.g.
|
| 4 |
+
```shell
|
| 5 |
+
CUDA_VISIBLE_DEVICES=0 \
|
| 6 |
+
swift deploy \
|
| 7 |
+
--model Qwen/Qwen2.5-7B-Instruct \
|
| 8 |
+
--infer_backend vllm
|
| 9 |
+
```
|