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
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
209 additions
and
0 deletions
+209
-0
lm_eval/tasks/catalan_bench/flores_ca/flores_ca-en.yaml
lm_eval/tasks/catalan_bench/flores_ca/flores_ca-en.yaml
+7
-0
lm_eval/tasks/catalan_bench/flores_ca/flores_ca-es.yaml
lm_eval/tasks/catalan_bench/flores_ca/flores_ca-es.yaml
+7
-0
lm_eval/tasks/catalan_bench/flores_ca/flores_ca-eu.yaml
lm_eval/tasks/catalan_bench/flores_ca/flores_ca-eu.yaml
+7
-0
lm_eval/tasks/catalan_bench/flores_ca/flores_ca-fr.yaml
lm_eval/tasks/catalan_bench/flores_ca/flores_ca-fr.yaml
+7
-0
lm_eval/tasks/catalan_bench/flores_ca/flores_ca-gl.yaml
lm_eval/tasks/catalan_bench/flores_ca/flores_ca-gl.yaml
+7
-0
lm_eval/tasks/catalan_bench/flores_ca/flores_ca-it.yaml
lm_eval/tasks/catalan_bench/flores_ca/flores_ca-it.yaml
+7
-0
lm_eval/tasks/catalan_bench/flores_ca/flores_ca-pt.yaml
lm_eval/tasks/catalan_bench/flores_ca/flores_ca-pt.yaml
+7
-0
lm_eval/tasks/catalan_bench/flores_ca/flores_ca.yaml
lm_eval/tasks/catalan_bench/flores_ca/flores_ca.yaml
+24
-0
lm_eval/tasks/catalan_bench/flores_ca/flores_de-ca.yaml
lm_eval/tasks/catalan_bench/flores_ca/flores_de-ca.yaml
+7
-0
lm_eval/tasks/catalan_bench/flores_ca/flores_en-ca.yaml
lm_eval/tasks/catalan_bench/flores_ca/flores_en-ca.yaml
+7
-0
lm_eval/tasks/catalan_bench/flores_ca/flores_es-ca.yaml
lm_eval/tasks/catalan_bench/flores_ca/flores_es-ca.yaml
+7
-0
lm_eval/tasks/catalan_bench/flores_ca/flores_eu-ca.yaml
lm_eval/tasks/catalan_bench/flores_ca/flores_eu-ca.yaml
+7
-0
lm_eval/tasks/catalan_bench/flores_ca/flores_fr-ca.yaml
lm_eval/tasks/catalan_bench/flores_ca/flores_fr-ca.yaml
+7
-0
lm_eval/tasks/catalan_bench/flores_ca/flores_gl-ca.yaml
lm_eval/tasks/catalan_bench/flores_ca/flores_gl-ca.yaml
+7
-0
lm_eval/tasks/catalan_bench/flores_ca/flores_it-ca.yaml
lm_eval/tasks/catalan_bench/flores_ca/flores_it-ca.yaml
+7
-0
lm_eval/tasks/catalan_bench/flores_ca/flores_pt-ca.yaml
lm_eval/tasks/catalan_bench/flores_ca/flores_pt-ca.yaml
+7
-0
lm_eval/tasks/catalan_bench/mgsm_direct_ca.yaml
lm_eval/tasks/catalan_bench/mgsm_direct_ca.yaml
+25
-0
lm_eval/tasks/catalan_bench/openbookqa_ca.yaml
lm_eval/tasks/catalan_bench/openbookqa_ca.yaml
+20
-0
lm_eval/tasks/catalan_bench/parafraseja.yaml
lm_eval/tasks/catalan_bench/parafraseja.yaml
+17
-0
lm_eval/tasks/catalan_bench/paws_ca.yaml
lm_eval/tasks/catalan_bench/paws_ca.yaml
+18
-0
No files found.
lm_eval/tasks/catalan_bench/flores_ca/flores_ca-en.yaml
0 → 100644
View file @
25869601
# File generated by `create-yamls.py`
include
:
_flores_common_yaml
task
:
flores_ca-en
doc_to_text
:
'
Catalan
sentence:
{{sentence_cat_Latn}}
English
sentence:'
doc_to_target
:
'
{{sentence_eng_Latn}}'
lm_eval/tasks/catalan_bench/flores_ca/flores_ca-es.yaml
0 → 100644
View file @
25869601
# File generated by `create-yamls.py`
include
:
_flores_common_yaml
task
:
flores_ca-es
doc_to_text
:
'
Catalan
sentence:
{{sentence_cat_Latn}}
Spanish
sentence:'
doc_to_target
:
'
{{sentence_spa_Latn}}'
lm_eval/tasks/catalan_bench/flores_ca/flores_ca-eu.yaml
0 → 100644
View file @
25869601
# File generated by `create-yamls.py`
include
:
_flores_common_yaml
task
:
flores_ca-eu
doc_to_text
:
'
Catalan
sentence:
{{sentence_cat_Latn}}
Basque
sentence:'
doc_to_target
:
'
{{sentence_eus_Latn}}'
lm_eval/tasks/catalan_bench/flores_ca/flores_ca-fr.yaml
0 → 100644
View file @
25869601
# File generated by `create-yamls.py`
include
:
_flores_common_yaml
task
:
flores_ca-fr
doc_to_text
:
'
Catalan
sentence:
{{sentence_cat_Latn}}
French
sentence:'
doc_to_target
:
'
{{sentence_fra_Latn}}'
lm_eval/tasks/catalan_bench/flores_ca/flores_ca-gl.yaml
0 → 100644
View file @
25869601
# File generated by `create-yamls.py`
include
:
_flores_common_yaml
task
:
flores_ca-gl
doc_to_text
:
'
Catalan
sentence:
{{sentence_cat_Latn}}
Galician
sentence:'
doc_to_target
:
'
{{sentence_glg_Latn}}'
lm_eval/tasks/catalan_bench/flores_ca/flores_ca-it.yaml
0 → 100644
View file @
25869601
# File generated by `create-yamls.py`
include
:
_flores_common_yaml
task
:
flores_ca-it
doc_to_text
:
'
Catalan
sentence:
{{sentence_cat_Latn}}
Italian
sentence:'
doc_to_target
:
'
{{sentence_ita_Latn}}'
lm_eval/tasks/catalan_bench/flores_ca/flores_ca-pt.yaml
0 → 100644
View file @
25869601
# File generated by `create-yamls.py`
include
:
_flores_common_yaml
task
:
flores_ca-pt
doc_to_text
:
'
Catalan
sentence:
{{sentence_cat_Latn}}
Portuguese
sentence:'
doc_to_target
:
'
{{sentence_por_Latn}}'
lm_eval/tasks/catalan_bench/flores_ca/flores_ca.yaml
0 → 100644
View file @
25869601
group
:
flores_ca
task
:
-
flores_es-ca
-
flores_ca-es
-
flores_en-ca
-
flores_ca-en
-
flores_eu-ca
-
flores_ca-eu
-
flores_pt-ca
-
flores_ca-pt
-
flores_it-ca
-
flores_ca-it
-
flores_fr-ca
-
flores_ca-fr
-
flores_ca-gl
-
flores_gl-ca
-
flores_ca-de
-
flores_de-ca
aggregate_metric_list
:
-
metric
:
bleu
aggregation
:
mean
weight_by_size
:
false
metadata
:
version
:
1.0
lm_eval/tasks/catalan_bench/flores_ca/flores_de-ca.yaml
0 → 100644
View file @
25869601
# File generated by `create-yamls.py`
include
:
_flores_common_yaml
task
:
flores_de-ca
doc_to_text
:
'
German
sentence:
{{sentence_deu_Latn}}
Catalan
sentence:'
doc_to_target
:
'
{{sentence_cat_Latn}}'
lm_eval/tasks/catalan_bench/flores_ca/flores_en-ca.yaml
0 → 100644
View file @
25869601
# File generated by `create-yamls.py`
include
:
_flores_common_yaml
task
:
flores_en-ca
doc_to_text
:
'
English
sentence:
{{sentence_eng_Latn}}
Catalan
sentence:'
doc_to_target
:
'
{{sentence_cat_Latn}}'
lm_eval/tasks/catalan_bench/flores_ca/flores_es-ca.yaml
0 → 100644
View file @
25869601
# File generated by `create-yamls.py`
include
:
_flores_common_yaml
task
:
flores_es-ca
doc_to_text
:
'
Spanish
sentence:
{{sentence_spa_Latn}}
Catalan
sentence:'
doc_to_target
:
'
{{sentence_cat_Latn}}'
lm_eval/tasks/catalan_bench/flores_ca/flores_eu-ca.yaml
0 → 100644
View file @
25869601
# File generated by `create-yamls.py`
include
:
_flores_common_yaml
task
:
flores_eu-ca
doc_to_text
:
'
Basque
sentence:
{{sentence_eus_Latn}}
Catalan
sentence:'
doc_to_target
:
'
{{sentence_cat_Latn}}'
lm_eval/tasks/catalan_bench/flores_ca/flores_fr-ca.yaml
0 → 100644
View file @
25869601
# File generated by `create-yamls.py`
include
:
_flores_common_yaml
task
:
flores_fr-ca
doc_to_text
:
'
French
sentence:
{{sentence_fra_Latn}}
Catalan
sentence:'
doc_to_target
:
'
{{sentence_cat_Latn}}'
lm_eval/tasks/catalan_bench/flores_ca/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/catalan_bench/flores_ca/flores_it-ca.yaml
0 → 100644
View file @
25869601
# File generated by `create-yamls.py`
include
:
_flores_common_yaml
task
:
flores_it-ca
doc_to_text
:
'
Italian
sentence:
{{sentence_ita_Latn}}
Catalan
sentence:'
doc_to_target
:
'
{{sentence_cat_Latn}}'
lm_eval/tasks/catalan_bench/flores_ca/flores_pt-ca.yaml
0 → 100644
View file @
25869601
# File generated by `create-yamls.py`
include
:
_flores_common_yaml
task
:
flores_pt-ca
doc_to_text
:
'
Portuguese
sentence:
{{sentence_por_Latn}}
Catalan
sentence:'
doc_to_target
:
'
{{sentence_cat_Latn}}'
lm_eval/tasks/catalan_bench/mgsm_direct_ca.yaml
0 → 100644
View file @
25869601
task
:
mgsm_direct_ca
dataset_path
:
projecte-aina/mgsm_ca
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/catalan_bench/openbookqa_ca.yaml
0 → 100644
View file @
25869601
task
:
openbookqa_ca
dataset_path
:
projecte-aina/openbookqa_ca
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
lm_eval/tasks/catalan_bench/parafraseja.yaml
0 → 100644
View file @
25869601
task
:
parafraseja
dataset_path
:
projecte-aina/Parafraseja
output_type
:
multiple_choice
dataset_name
:
null
test_split
:
test
training_split
:
train
validation_split
:
validation
doc_to_choice
:
'
{{[sentence1+",
veritat?
No,
"+sentence2,
sentence1+",
veritat?
Sí,
"+sentence2]}}'
process_docs
:
!function
utils.process_docs_paraphrases
doc_to_text
:
'
'
doc_to_target
:
label
metric_list
:
-
metric
:
acc
aggregation
:
mean
higher_is_better
:
true
metadata
:
version
:
1.0
lm_eval/tasks/catalan_bench/paws_ca.yaml
0 → 100644
View file @
25869601
task
:
paws_ca
dataset_path
:
projecte-aina/PAWS-ca
dataset_name
:
null
output_type
:
multiple_choice
training_split
:
train
validation_split
:
validation
test_split
:
test
process_docs
:
!function
utils.process_docs_paraphrases
doc_to_text
:
'
'
doc_to_target
:
label
doc_to_choice
:
'
{{[sentence1+",
veritat?
No,
"+sentence2,
sentence1+",
veritat?
Sí,
"+sentence2]}}'
target_delimiter
:
'
'
metric_list
:
-
metric
:
acc
aggregation
:
mean
higher_is_better
:
true
metadata
:
version
:
1.0
Prev
1
2
3
4
5
6
7
8
…
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