Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
lm-evaluation-harness
Commits
094a17d6
Commit
094a17d6
authored
May 15, 2024
by
Israel Abebe Azime
Browse files
update on afrimgsm
parent
224e9046
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
lm_eval/tasks/afrimgsm/gpt_direct.sh
lm_eval/tasks/afrimgsm/gpt_direct.sh
+25
-0
No files found.
lm_eval/tasks/afrimgsm/gpt_direct.sh
0 → 100644
View file @
094a17d6
#!/bin/bash
models
=(
"gpt-3.5-turbo"
"gpt-4-0125-preview"
)
task
=
afrimgsm_direct_amh,afrimgsm_direct_eng,afrimgsm_direct_ewe,afrimgsm_direct_fra,afrimgsm_direct_hau,afrimgsm_direct_ibo,afrimgsm_direct_kin,afrimgsm_direct_lin,afrimgsm_direct_lug,afrimgsm_direct_orm,afrimgsm_direct_sna,afrimgsm_direct_sot,afrimgsm_direct_swa,afrimgsm_direct_twi,afrimgsm_direct_wol,afrimgsm_direct_xho,afrimgsm_direct_yor,afrimgsm_direct_zul
for
model
in
"
${
models
[@]
}
"
do
echo
"Evaluating model:
$model
"
for
fewshot
in
0 2 4 6 8
do
export
OUTPUT_DIR
=
results/
$fewshot
mkdir
-p
"
$OUTPUT_DIR
"
lm_eval
--model
openai-chat-completions
\
--model_args
model
=
"
${
model
}
"
\
--tasks
$task
\
--output_path
"
$OUTPUT_DIR
"
\
--num_fewshot
$fewshot
\
--verbosity
DEBUG
done
done
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment