yuccaaa commited on
Commit
2577a86
·
verified ·
1 Parent(s): 63569e5

Upload ms-swift/examples/export/quantize/reward_model/bnb.sh with huggingface_hub

Browse files
ms-swift/examples/export/quantize/reward_model/bnb.sh ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # bnb quantize
2
+ CUDA_VISIBLE_DEVICES=0 swift export \
3
+ --model Shanghai_AI_Laboratory/internlm2-1_8b-reward \
4
+ --output_dir output/internlm2-1_8b-reward-bnb-int4 \
5
+ --quant_bits 4 \
6
+ --quant_method bnb
7
+
8
+ # infer
9
+ CUDA_VISIBLE_DEVICES=0 swift infer \
10
+ --model output/internlm2-1_8b-reward-bnb-int4 \
11
+ --val_dataset 'AI-ModelScope/alpaca-gpt4-data-zh#1000' \
12
+ --max_batch_size 16