Upload ms-swift/examples/infer/pt/bert.sh with huggingface_hub
Browse files
ms-swift/examples/infer/pt/bert.sh
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Since `swift/test_lora` is trained by swift and contains an `args.json` file,
|
| 2 |
+
# there is no need to explicitly set `--model`, `--system`, etc., as they will be automatically read.
|
| 3 |
+
# To disable this behavior, please set `--load_args false`.
|
| 4 |
+
CUDA_VISIBLE_DEVICES=0 \
|
| 5 |
+
swift infer \
|
| 6 |
+
--adapters swift/test_bert \
|
| 7 |
+
--truncation_strategy right \
|
| 8 |
+
--max_length 512
|