Upload ms-swift/examples/custom/infer.sh with huggingface_hub
Browse files
ms-swift/examples/custom/infer.sh
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# sh examples/custom/infer.sh
|
| 2 |
+
CUDA_VISIBLE_DEVICES=0 \
|
| 3 |
+
swift infer \
|
| 4 |
+
--adapters output/vx-xxx/checkpoint-xxx \
|
| 5 |
+
--load_data_args true \
|
| 6 |
+
--infer_backend pt \
|
| 7 |
+
--max_batch_size 16 \
|
| 8 |
+
--max_new_tokens 256 \
|
| 9 |
+
--temperature 0
|