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
25869601
Commit
25869601
authored
Oct 19, 2024
by
Baber
Browse files
Merge branch 'main' into mathvista
# Conflicts: # lm_eval/models/hf_vlms.py
parents
56f40c53
c1d8795d
Changes
253
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
206 additions
and
0 deletions
+206
-0
lm_eval/tasks/galician_bench/flores_gl/flores_de-gl.yaml
lm_eval/tasks/galician_bench/flores_gl/flores_de-gl.yaml
+7
-0
lm_eval/tasks/galician_bench/flores_gl/flores_en-gl.yaml
lm_eval/tasks/galician_bench/flores_gl/flores_en-gl.yaml
+7
-0
lm_eval/tasks/galician_bench/flores_gl/flores_es-gl.yaml
lm_eval/tasks/galician_bench/flores_gl/flores_es-gl.yaml
+7
-0
lm_eval/tasks/galician_bench/flores_gl/flores_eu-gl.yaml
lm_eval/tasks/galician_bench/flores_gl/flores_eu-gl.yaml
+7
-0
lm_eval/tasks/galician_bench/flores_gl/flores_fr-gl.yaml
lm_eval/tasks/galician_bench/flores_gl/flores_fr-gl.yaml
+7
-0
lm_eval/tasks/galician_bench/flores_gl/flores_gl-ca.yaml
lm_eval/tasks/galician_bench/flores_gl/flores_gl-ca.yaml
+7
-0
lm_eval/tasks/galician_bench/flores_gl/flores_gl-de.yaml
lm_eval/tasks/galician_bench/flores_gl/flores_gl-de.yaml
+7
-0
lm_eval/tasks/galician_bench/flores_gl/flores_gl-en.yaml
lm_eval/tasks/galician_bench/flores_gl/flores_gl-en.yaml
+7
-0
lm_eval/tasks/galician_bench/flores_gl/flores_gl-es.yaml
lm_eval/tasks/galician_bench/flores_gl/flores_gl-es.yaml
+7
-0
lm_eval/tasks/galician_bench/flores_gl/flores_gl-eu.yaml
lm_eval/tasks/galician_bench/flores_gl/flores_gl-eu.yaml
+7
-0
lm_eval/tasks/galician_bench/flores_gl/flores_gl-fr.yaml
lm_eval/tasks/galician_bench/flores_gl/flores_gl-fr.yaml
+7
-0
lm_eval/tasks/galician_bench/flores_gl/flores_gl-it.yaml
lm_eval/tasks/galician_bench/flores_gl/flores_gl-it.yaml
+7
-0
lm_eval/tasks/galician_bench/flores_gl/flores_gl-pt.yaml
lm_eval/tasks/galician_bench/flores_gl/flores_gl-pt.yaml
+7
-0
lm_eval/tasks/galician_bench/flores_gl/flores_gl.yaml
lm_eval/tasks/galician_bench/flores_gl/flores_gl.yaml
+24
-0
lm_eval/tasks/galician_bench/flores_gl/flores_it-gl.yaml
lm_eval/tasks/galician_bench/flores_gl/flores_it-gl.yaml
+7
-0
lm_eval/tasks/galician_bench/flores_gl/flores_pt-gl.yaml
lm_eval/tasks/galician_bench/flores_gl/flores_pt-gl.yaml
+7
-0
lm_eval/tasks/galician_bench/galcola.yaml
lm_eval/tasks/galician_bench/galcola.yaml
+16
-0
lm_eval/tasks/galician_bench/galician_bench.yaml
lm_eval/tasks/galician_bench/galician_bench.yaml
+15
-0
lm_eval/tasks/galician_bench/mgsm_direct_gl.yaml
lm_eval/tasks/galician_bench/mgsm_direct_gl.yaml
+25
-0
lm_eval/tasks/galician_bench/openbookqa_gl.yaml
lm_eval/tasks/galician_bench/openbookqa_gl.yaml
+21
-0
No files found.
lm_eval/tasks/galician_bench/flores_gl/flores_de-gl.yaml
0 → 100644
View file @
25869601
# File generated by `create-yamls.py`
include
:
_flores_common_yaml
task
:
flores_de-gl
doc_to_text
:
'
German
sentence:
{{sentence_deu_Latn}}
Galician
sentence:'
doc_to_target
:
'
{{sentence_glg_Latn}}'
lm_eval/tasks/galician_bench/flores_gl/flores_en-gl.yaml
0 → 100644
View file @
25869601
# File generated by `create-yamls.py`
include
:
_flores_common_yaml
task
:
flores_en-gl
doc_to_text
:
'
English
sentence:
{{sentence_eng_Latn}}
Galician
sentence:'
doc_to_target
:
'
{{sentence_glg_Latn}}'
lm_eval/tasks/galician_bench/flores_gl/flores_es-gl.yaml
0 → 100644
View file @
25869601
# File generated by `create-yamls.py`
include
:
_flores_common_yaml
task
:
flores_es-gl
doc_to_text
:
'
Spanish
sentence:
{{sentence_spa_Latn}}
Galician
sentence:'
doc_to_target
:
'
{{sentence_glg_Latn}}'
lm_eval/tasks/galician_bench/flores_gl/flores_eu-gl.yaml
0 → 100644
View file @
25869601
# File generated by `create-yamls.py`
include
:
_flores_common_yaml
task
:
flores_eu-gl
doc_to_text
:
'
Basque
sentence:
{{sentence_eus_Latn}}
Galician
sentence:'
doc_to_target
:
'
{{sentence_glg_Latn}}'
lm_eval/tasks/galician_bench/flores_gl/flores_fr-gl.yaml
0 → 100644
View file @
25869601
# File generated by `create-yamls.py`
include
:
_flores_common_yaml
task
:
flores_fr-gl
doc_to_text
:
'
French
sentence:
{{sentence_fra_Latn}}
Galician
sentence:'
doc_to_target
:
'
{{sentence_glg_Latn}}'
lm_eval/tasks/galician_bench/flores_gl/flores_gl-ca.yaml
0 → 100644
View file @
25869601
# File generated by `create-yamls.py`
include
:
_flores_common_yaml
task
:
flores_gl-ca
doc_to_text
:
'
Galician
sentence:
{{sentence_glg_Latn}}
Catalan
sentence:'
doc_to_target
:
'
{{sentence_cat_Latn}}'
lm_eval/tasks/galician_bench/flores_gl/flores_gl-de.yaml
0 → 100644
View file @
25869601
# File generated by `create-yamls.py`
include
:
_flores_common_yaml
task
:
flores_gl-de
doc_to_text
:
'
Galician
sentence:
{{sentence_glg_Latn}}
German
sentence:'
doc_to_target
:
'
{{sentence_deu_Latn}}'
lm_eval/tasks/galician_bench/flores_gl/flores_gl-en.yaml
0 → 100644
View file @
25869601
# File generated by `create-yamls.py`
include
:
_flores_common_yaml
task
:
flores_gl-en
doc_to_text
:
'
Galician
sentence:
{{sentence_glg_Latn}}
English
sentence:'
doc_to_target
:
'
{{sentence_eng_Latn}}'
lm_eval/tasks/galician_bench/flores_gl/flores_gl-es.yaml
0 → 100644
View file @
25869601
# File generated by `create-yamls.py`
include
:
_flores_common_yaml
task
:
flores_gl-es
doc_to_text
:
'
Galician
sentence:
{{sentence_glg_Latn}}
Spanish
sentence:'
doc_to_target
:
'
{{sentence_spa_Latn}}'
lm_eval/tasks/galician_bench/flores_gl/flores_gl-eu.yaml
0 → 100644
View file @
25869601
# File generated by `create-yamls.py`
include
:
_flores_common_yaml
task
:
flores_gl-eu
doc_to_text
:
'
Galician
sentence:
{{sentence_glg_Latn}}
Basque
sentence:'
doc_to_target
:
'
{{sentence_eus_Latn}}'
lm_eval/tasks/galician_bench/flores_gl/flores_gl-fr.yaml
0 → 100644
View file @
25869601
# File generated by `create-yamls.py`
include
:
_flores_common_yaml
task
:
flores_gl-fr
doc_to_text
:
'
Galician
sentence:
{{sentence_glg_Latn}}
French
sentence:'
doc_to_target
:
'
{{sentence_fra_Latn}}'
lm_eval/tasks/galician_bench/flores_gl/flores_gl-it.yaml
0 → 100644
View file @
25869601
# File generated by `create-yamls.py`
include
:
_flores_common_yaml
task
:
flores_gl-it
doc_to_text
:
'
Galician
sentence:
{{sentence_glg_Latn}}
Italian
sentence:'
doc_to_target
:
'
{{sentence_ita_Latn}}'
lm_eval/tasks/galician_bench/flores_gl/flores_gl-pt.yaml
0 → 100644
View file @
25869601
# File generated by `create-yamls.py`
include
:
_flores_common_yaml
task
:
flores_gl-pt
doc_to_text
:
'
Galician
sentence:
{{sentence_glg_Latn}}
Portuguese
sentence:'
doc_to_target
:
'
{{sentence_por_Latn}}'
lm_eval/tasks/galician_bench/flores_gl/flores_gl.yaml
0 → 100644
View file @
25869601
group
:
flores_gl
task
:
-
flores_es-gl
-
flores_gl-es
-
flores_en-gl
-
flores_gl-en
-
flores_eu-gl
-
flores_gl-eu
-
flores_pt-gl
-
flores_gl-pt
-
flores_it-gl
-
flores_gl-it
-
flores_fr-gl
-
flores_gl-fr
-
flores_ca-gl
-
flores_gl-ca
-
flores_gl-de
-
flores_de-gl
aggregate_metric_list
:
-
metric
:
bleu
aggregation
:
mean
weight_by_size
:
false
metadata
:
version
:
1.0
lm_eval/tasks/galician_bench/flores_gl/flores_it-gl.yaml
0 → 100644
View file @
25869601
# File generated by `create-yamls.py`
include
:
_flores_common_yaml
task
:
flores_it-gl
doc_to_text
:
'
Italian
sentence:
{{sentence_ita_Latn}}
Galician
sentence:'
doc_to_target
:
'
{{sentence_glg_Latn}}'
lm_eval/tasks/galician_bench/flores_gl/flores_pt-gl.yaml
0 → 100644
View file @
25869601
# File generated by `create-yamls.py`
include
:
_flores_common_yaml
task
:
flores_pt-gl
doc_to_text
:
'
Portuguese
sentence:
{{sentence_por_Latn}}
Galician
sentence:'
doc_to_target
:
'
{{sentence_glg_Latn}}'
lm_eval/tasks/galician_bench/galcola.yaml
0 → 100644
View file @
25869601
task
:
galcola
dataset_path
:
proxectonos/galcola
output_type
:
multiple_choice
training_split
:
train
validation_split
:
validation
test_split
:
test
doc_to_text
:
"
{{sentence}}
\n
Pregunta:
Ten
sentido
esta
frase?
\n
Resposta:"
doc_to_target
:
label
doc_to_choice
:
[
"
non"
,
"
si"
]
should_decontaminate
:
true
doc_to_decontamination_query
:
sentence
metric_list
:
-
metric
:
mcc
-
metric
:
acc
metadata
:
version
:
1.0
lm_eval/tasks/galician_bench/galician_bench.yaml
0 → 100644
View file @
25869601
group
:
galician_bench
task
:
-
belebele_glg_Latn
-
flores_gl
-
galcola
-
summarization_gl
-
parafrases_gl
-
paws_gl
-
openbookqa_gl
-
mgsm_direct_gl
-
truthfulqa_gl
-
xnli_gl
-
xstorycloze_gl
metadata
:
version
:
1.0
lm_eval/tasks/galician_bench/mgsm_direct_gl.yaml
0 → 100644
View file @
25869601
task
:
mgsm_direct_gl
dataset_path
:
proxectonos/mgsm_gl
doc_to_target
:
'
{{answer_number|string}}'
doc_to_text
:
'
{%
if
answer
!=
None
%}{{question
+
"\nResposta:
"}}{%
else
%}{{"Pregunta:
"
+
question
+
"\nResposta:
"}}{%
endif
%}'
output_type
:
generate_until
training_split
:
train
test_split
:
test
target_delimiter
:
"
"
generation_kwargs
:
until
:
-
"
\n\n
"
-
"
\n
"
filter_list
:
-
name
:
remove_whitespace
filter
:
-
function
:
remove_whitespace
-
function
:
take_first
metric_list
:
-
metric
:
exact_match
aggregation
:
mean
higher_is_better
:
true
ignore_case
:
true
ignore_punctuation
:
true
metadata
:
version
:
1.0
lm_eval/tasks/galician_bench/openbookqa_gl.yaml
0 → 100644
View file @
25869601
# Task configuration directly taken from Eleuther AI's implementation as of March 22, 2024
task
:
openbookqa_gl
dataset_path
:
proxectonos/openbookqa_gl
output_type
:
multiple_choice
training_split
:
null
validation_split
:
validation
test_split
:
test
doc_to_text
:
question_stem
doc_to_target
:
"
{{choices.label.index(answerKey.lstrip())}}"
doc_to_choice
:
"
{{choices.text}}"
should_decontaminate
:
true
doc_to_decontamination_query
:
question_stem
metric_list
:
-
metric
:
acc
aggregation
:
mean
higher_is_better
:
true
-
metric
:
acc_norm
aggregation
:
mean
higher_is_better
:
true
metadata
:
version
:
1.0
Prev
1
2
3
4
5
6
7
8
9
10
…
13
Next
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