ZhenYang21 commited on
Commit
ff8ce05
1 Parent(s): 207fffc

Upload inference.sh

Browse files
Files changed (1) hide show
  1. inference.sh +34 -0
inference.sh ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ # SAT_HOME=/raid/dm/sat_models
3
+
4
+ NLAYERS=48
5
+ NHIDDEN=2560
6
+ NATT=40
7
+ MAXSEQLEN=1089
8
+ MPSIZE=1
9
+
10
+ #SAMPLING ARGS
11
+ # TEMP=1.03
12
+ TEMP=0.1
13
+ TOPK=200
14
+
15
+ export CUDA_VISIBLE_DEVICES=7
16
+ # SAT_HOME=$SAT_HOME \
17
+ python inference_mathglm.py \
18
+ --mode inference \
19
+ --distributed-backend nccl \
20
+ --max-sequence-length 512 \
21
+ --fp16 \
22
+ --model-parallel-size $MPSIZE \
23
+ --num-layers $NLAYERS \
24
+ --hidden-size $NHIDDEN \
25
+ --num-attention-heads $NATT \
26
+ --temperature $TEMP \
27
+ --top_k $TOPK \
28
+ --input-source ./input_test.txt \
29
+ --output-path samples_result \
30
+ --batch-size 1 \
31
+ --max-inference-batch-size 8 \
32
+ $@
33
+
34
+