yuccaaa commited on
Commit
e3302af
·
verified ·
1 Parent(s): 8e4b8f0

Upload ms-swift/examples/train/infer.sh with huggingface_hub

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