Skip to content

Commit 86fe85c

Browse files
authored
remove chinese demo (#1280)
1 parent 0ae1eaa commit 86fe85c

3 files changed

Lines changed: 1 addition & 15 deletions

File tree

src/modelgauge/prompt_sets.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ def description(cls) -> SecretDescription:
3232
"demo": {
3333
"en_us": "airr_official_1.0_demo_prompt_set_release",
3434
"fr_fr": "airr_official_1.0_demo_fr_fr_prompt_set_release",
35-
"zh_cn": "airr_official_1.0_demo_zh_cn_prompt_set_release",
3635
},
3736
}
3837
SECURITY_JAILBREAK_PROMPT_SETS = {

tests/modelbench_tests/test_benchmark.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def assert_hazard_standards(benchmark):
106106

107107

108108
def test_chinese_benchmark_v1_definition_standards(fake_secrets):
109-
"""Remove this test when ZH_CN gets added to PUBLISHED_LOCALES. Right now there is no official prompt set."""
109+
"""Remove this test when ZH_CN gets added to PUBLISHED_LOCALES."""
110110

111111
def assert_hazard_standards(benchmark):
112112
for h in benchmark.hazards():
@@ -123,14 +123,6 @@ def assert_hazard_standards(benchmark):
123123
assert_hazard_standards(practice_benchmark)
124124
assert_hazard_standards(practice_default_benchmark)
125125

126-
# Demo prompt set uses practice standards.
127-
demo_benchmark = GeneralPurposeAiChatBenchmarkV1(ZH_CN, "demo", evaluator="ensemble")
128-
demo_default_benchmark = GeneralPurposeAiChatBenchmarkV1(ZH_CN, "demo", evaluator="default")
129-
assert demo_benchmark.standards._data == practice_benchmark.standards._data
130-
assert demo_default_benchmark.standards._data == practice_benchmark.standards._data
131-
assert_hazard_standards(demo_benchmark)
132-
assert_hazard_standards(demo_default_benchmark)
133-
134126

135127
def test_benchmark_v1_hazard_standard_scores(fake_secrets):
136128
"""Spot check that the correct scores are being retrieved from the files."""

tests/modelgauge_tests/test_object_creation.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,6 @@ def shared_run_dir(tmp_path_factory):
4848
def test_all_tests_make_test_items(test_name, shared_run_dir):
4949
test = TESTS.make_instance(test_name, secrets=load_secrets_from_config(path="."))
5050

51-
# TODO remove when localized files are handled better
52-
# workaround
53-
if isinstance(test, BaseSafeTestVersion1) and test.locale != EN_US:
54-
return
55-
5651
if isinstance(test, PromptResponseTest):
5752
test_data_path = os.path.join(shared_run_dir, test.__class__.__name__)
5853
dependency_helper = FromSourceDependencyHelper(

0 commit comments

Comments
 (0)