Skip to content

Commit

Permalink
fix gpt4 assets for MultiNativQA (#366)
Browse files Browse the repository at this point in the history
  • Loading branch information
AridHasan authored Sep 25, 2024
1 parent cb8c25e commit 19fb1d2
Show file tree
Hide file tree
Showing 10 changed files with 38 additions and 2 deletions.
4 changes: 4 additions & 0 deletions assets/ar/QA/MultiNativQA_GPT4_ZeroShot.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import json
import re

from llmebench.datasets import MultiNativQADataset
from llmebench.models import OpenAIModel
from llmebench.tasks import MultiNativQATask
Expand All @@ -17,6 +20,7 @@ def config():
"dataset": MultiNativQADataset,
"task": MultiNativQATask,
"model": OpenAIModel,
"general_args": {"test_split": "arabic_qa"},
}


Expand Down
4 changes: 4 additions & 0 deletions assets/asm/QA/MultiNativQA_GPT4_ZeroShot.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import json
import re

from llmebench.datasets import MultiNativQADataset
from llmebench.models import OpenAIModel
from llmebench.tasks import MultiNativQATask
Expand All @@ -17,6 +20,7 @@ def config():
"dataset": MultiNativQADataset,
"task": MultiNativQATask,
"model": OpenAIModel,
"general_args": {"test_split": "assamese_in"},
}


Expand Down
4 changes: 4 additions & 0 deletions assets/bn/QA/MultiNativQA_GPT4_ZeroShot.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import json
import re

from llmebench.datasets import MultiNativQADataset
from llmebench.models import OpenAIModel
from llmebench.tasks import MultiNativQATask
Expand All @@ -17,6 +20,7 @@ def config():
"dataset": MultiNativQADataset,
"task": MultiNativQATask,
"model": OpenAIModel,
"general_args": {"test_split": "bangla_bd"},
}


Expand Down
4 changes: 4 additions & 0 deletions assets/bn_in/QA/MultiNativQA_GPT4_ZeroShot.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import json
import re

from llmebench.datasets import MultiNativQADataset
from llmebench.models import OpenAIModel
from llmebench.tasks import MultiNativQATask
Expand All @@ -17,6 +20,7 @@ def config():
"dataset": MultiNativQADataset,
"task": MultiNativQATask,
"model": OpenAIModel,
"general_args": {"test_split": "bangla_in"},
}


Expand Down
4 changes: 4 additions & 0 deletions assets/en/QA/bd/MultiNativQA_GPT4_ZeroShot.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import json
import re

from llmebench.datasets import MultiNativQADataset
from llmebench.models import OpenAIModel
from llmebench.tasks import MultiNativQATask
Expand All @@ -17,6 +20,7 @@ def config():
"dataset": MultiNativQADataset,
"task": MultiNativQATask,
"model": OpenAIModel,
"general_args": {"test_split": "english_bd"},
}


Expand Down
4 changes: 4 additions & 0 deletions assets/en/QA/qa/MultiNativQA_GPT4_ZeroShot.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import json
import re

from llmebench.datasets import MultiNativQADataset
from llmebench.models import OpenAIModel
from llmebench.tasks import MultiNativQATask
Expand All @@ -17,6 +20,7 @@ def config():
"dataset": MultiNativQADataset,
"task": MultiNativQATask,
"model": OpenAIModel,
"general_args": {"test_split": "english_qa"},
}


Expand Down
4 changes: 4 additions & 0 deletions assets/hi/QA/MultiNativQA_GPT4_ZeroShot.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import json
import re

from llmebench.datasets import MultiNativQADataset
from llmebench.models import OpenAIModel
from llmebench.tasks import MultiNativQATask
Expand All @@ -17,6 +20,7 @@ def config():
"dataset": MultiNativQADataset,
"task": MultiNativQATask,
"model": OpenAIModel,
"general_args": {"test_split": "hindi_in"},
}


Expand Down
4 changes: 4 additions & 0 deletions assets/ne/QA/MultiNativQA_GPT4_ZeroShot.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import json
import re

from llmebench.datasets import MultiNativQADataset
from llmebench.models import OpenAIModel
from llmebench.tasks import MultiNativQATask
Expand All @@ -17,6 +20,7 @@ def config():
"dataset": MultiNativQADataset,
"task": MultiNativQATask,
"model": OpenAIModel,
"general_args": {"test_split": "nepali_np"},
}


Expand Down
4 changes: 4 additions & 0 deletions assets/tr/QA/MultiNativQA_GPT4_ZeroShot.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import json
import re

from llmebench.datasets import MultiNativQADataset
from llmebench.models import OpenAIModel
from llmebench.tasks import MultiNativQATask
Expand All @@ -17,6 +20,7 @@ def config():
"dataset": MultiNativQADataset,
"task": MultiNativQATask,
"model": OpenAIModel,
"general_args": {"test_split": "turkish_tr"},
}


Expand Down
4 changes: 2 additions & 2 deletions llmebench/datasets/MultiNativQA.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ def metadata():
"test": "nepali_np/NativQA_ne_NA_np_test.tsv",
},
"turkish_tr": {
"dev": "english_qa/NativQA_tr_NA_tr_dev.tsv",
"test": "english_qa/NativQA_tr_NA_tr_test.tsv",
"dev": "turkish_tr/NativQA_tr_NA_tr_dev.tsv",
"test": "turkish_tr/NativQA_tr_NA_tr_test.tsv",
},
"default": [
"assamese_in",
Expand Down

0 comments on commit 19fb1d2

Please sign in to comment.