File tree 4 files changed +6
-6
lines changed
4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ def main():
17
17
for j in range (args .pairs ):
18
18
results = []
19
19
if args .gpu_ids is not None :
20
- gpus = args .gpu_ids .strip ("()" ).split (' ' )
20
+ gpus = args .gpu_ids .strip ("()" ).split (', ' )
21
21
else :
22
22
gpus = range (args .numgpu )
23
23
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ def from_ranks(args):
26
26
27
27
scores = [0 for _ in range (len (data ))]
28
28
if args .gpu_ids is not None :
29
- gpus = args .gpu_ids .strip ("()" ).split (' ' )
29
+ gpus = args .gpu_ids .strip ("()" ).split (', ' )
30
30
else :
31
31
gpus = range (args .num_gpu )
32
32
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ all_gen=$!
62
62
63
63
wait $all_gen
64
64
65
- # python3 scripts/combine_generate.py --output_dir "generated/$OUTDIR" --gpu_ids "${AVAILABLE_GPUS[@]} " --pairs $PAIRS
65
+ python3 scripts/combine_generate.py --output_dir " generated/$OUTDIR " --gpu_ids " $( IFS=, ; echo " $ {AVAILABLE_GPUS[*]} " ) " --pairs $PAIRS
66
66
67
67
68
68
# #####################
@@ -85,4 +85,4 @@ all_rank=$!
85
85
86
86
wait $all_rank
87
87
88
- python3 scripts/compute_prob.py --org $HF_ORG --gpu_ids " ${AVAILABLE_GPUS[@]} " --output_dir $OUTDIR --pairs $PAIRS --frac_len $FRAC_LEN --prompts $PROMPTS
88
+ python3 scripts/compute_prob.py --org $HF_ORG --gpu_ids " $( IFS=, ; echo " $ {AVAILABLE_GPUS[*]} " ) " --output_dir $OUTDIR --pairs $PAIRS --frac_len $FRAC_LEN --prompts $PROMPTS
Original file line number Diff line number Diff line change 42
42
# IMPORTANT: all dependencies should be listed here with their version requirements, if any.
43
43
# * If a dependency is fast-moving (e.g. transformers), pin to the exact version
44
44
_deps = [
45
- "accelerate==0.23.0 " ,
45
+ "accelerate==0.27.2 " ,
46
46
"bitsandbytes==0.41.2.post2" ,
47
47
"black==23.1.0" ,
48
48
"datasets==2.14.6" ,
67
67
"tensorboard" ,
68
68
"torch==2.1.2" ,
69
69
"transformers==4.42.4" ,
70
- "trl==0.7.10 " ,
70
+ "trl==0.9.6 " ,
71
71
"jinja2>=3.0.0" ,
72
72
"tqdm>=4.64.1" ,
73
73
]
You can’t perform that action at this time.
0 commit comments