Skip to content

Commit

Permalink
automagically switch between accuracy evaluation scripts depending on…
Browse files Browse the repository at this point in the history
… defaultness of the tokenizer_path
  • Loading branch information
ens-lg4 committed Feb 14, 2024
1 parent b2c30d6 commit 1492aea
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions base_gptj_loadgen_experiment/data_axs.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@

"mlperf_inference_git_entry": [ "^", "byquery", "git_repo,repo_name=mlperf_inference_git" ],

"abs_script_path": [ "^^", "execute", [[
[ "get", "mlperf_inference_git_entry" ],
[ "get_path_of", "gptj_accuracy_script" ]
]] ],

"dataset_name": "cnndm_v3_0_0",
"dataset_query": [ "downloaded", [ "^^", "substitute", "dataset_name=#{dataset_name}#" ]],
"dataset_entry": [ "^", "byquery", [[ "^^", "get", "dataset_query" ]], {}, ["dataset_query"] ],
Expand All @@ -23,6 +18,20 @@
{ "default_value": [ "^^", "substitute", " --tokenizer_path \"#{tokenizer_path}#\"" ] }
],

"own_accuracy_script_path": [ "^^", "execute", [[
[ "get", "mlperf_inference_git_entry" ],
[ "get_path_of", "gptj_accuracy_script" ]
]] ],

"abs_script_path": [ "^^", "get",
[ "^^", "case", [ [ "^^", "get", "tokenizer_path" ],
"EleutherAI/gpt-j-6B", "own_accuracy_script_path",
"", "own_accuracy_script_path",
null, "own_accuracy_script_path"
], { "default_value": "custom_accuracy_script_path" }
]
],

"extract_accuracy_report": [ "^^", "execute", [[
[ "get_kernel" ],
[ "byname", "python_script" ],
Expand Down

0 comments on commit 1492aea

Please sign in to comment.