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

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

Browse files
Files changed (1) hide show
  1. ms-swift/examples/infer/pt/lora.sh +10 -0
ms-swift/examples/infer/pt/lora.sh ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
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_lora \
7
+ --infer_backend pt \
8
+ --stream true \
9
+ --temperature 0 \
10
+ --max_new_tokens 2048