Upload ms-swift/examples/train/infer.sh with huggingface_hub
Browse files
ms-swift/examples/train/infer.sh
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# If it's full parameter training, use `--model xxx` instead of `--adapters xxx`.
|
| 2 |
+
# If you are using the validation set for inference, add the parameter `--load_data_args true`.
|
| 3 |
+
CUDA_VISIBLE_DEVICES=0 \
|
| 4 |
+
swift infer \
|
| 5 |
+
--adapters output/vx-xxx/checkpoint-xxx \
|
| 6 |
+
--stream true \
|
| 7 |
+
--temperature 0 \
|
| 8 |
+
--max_new_tokens 2048
|