yuccaaa commited on
Commit
536753e
·
verified ·
1 Parent(s): eb58936

Upload ms-swift/examples/infer/pt/bert.sh with huggingface_hub

Browse files
Files changed (1) hide show
  1. ms-swift/examples/infer/pt/bert.sh +8 -0
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