-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
22,695 additions
and
1,777 deletions.
There are no files selected for viewing
20,482 changes: 20,482 additions & 0 deletions
20,482
eval_results/v2.0625/score.v2/eval=gpt-4o-2024-05-13/[email protected]
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# export ANTHROPIC_API_KEY=your_anthropic_api_key | ||
model_name="google/gemma-2-27b-it@together" | ||
model_pretty_name="gemma-2-27b-it@together" | ||
output_dir="result_dirs/wild_bench_v2/" | ||
TEMP=0; TOP_P=1.0; MAX_TOKENS=4096; | ||
|
||
# shard_size should be 1024 // n_shards | ||
n_shards=8 | ||
shard_size=128 | ||
start_gpu=0 | ||
shards_dir="${output_dir}/tmp_${model_pretty_name}" | ||
for ((start = 0, end = (($shard_size)), gpu = $start_gpu; gpu < $n_shards+$start_gpu; start += $shard_size, end += $shard_size, gpu++)); do | ||
python src/unified_infer.py \ | ||
--data_name wild_bench \ | ||
--start_index $start --end_index $end \ | ||
--engine together \ | ||
--model_name $model_name \ | ||
--top_p $TOP_P --temperature $TEMP \ | ||
--max_tokens $MAX_TOKENS \ | ||
--output_folder $shards_dir & | ||
done | ||
wait | ||
python src/merge_results.py $shards_dir/ $model_pretty_name | ||
cp $shards_dir/${model_pretty_name}.json $output_dir/${model_pretty_name}.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters