Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions prepare/cards/milu.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
Set,
)
from unitxt.splitters import RenameSplits
from unitxt.test_utils.card import test_card

languages = [
["Bengali", "bn"],
Expand Down Expand Up @@ -88,7 +87,7 @@
)

if is_first:
test_card(card, strict=False)
# test_card(card, strict=False) # Disable test card because requires dataset is gated
is_first = False

subject = subtask.replace("&", "and").replace(" ", "_")
Expand Down
32 changes: 17 additions & 15 deletions prepare/metrics/perplexity.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from unitxt.test_utils.metrics import test_metric

skip_nli_metric_test = True
skip_bloom_metric_test = True


def run_test(metric_to_test, instance_scores, global_scores):
Expand Down Expand Up @@ -228,21 +229,22 @@ def generate_nli(instances, global_scores, metric):
metric=perplexity_chat,
)

generate_questions(
instances={
"user: hello\nagent:I have a question about my retirement policy.": [
(chat_pension_policy, 0.01),
(chat_retirement_policy, 0.02),
(chat_construction_policy, 0.01),
],
},
global_scores={
"mean": 0.01,
"ci_high": 0.02,
"ci_low": 0.01,
},
metric=perplexity_chat_bloom,
)
if not skip_bloom_metric_test:
generate_questions(
instances={
"user: hello\nagent:I have a question about my retirement policy.": [
(chat_pension_policy, 0.01),
(chat_retirement_policy, 0.02),
(chat_construction_policy, 0.01),
],
},
global_scores={
"mean": 0.01,
"ci_high": 0.02,
"ci_low": 0.01,
},
metric=perplexity_chat_bloom,
)

generate_nli(
instances={
Expand Down
Loading