Skip to content

Commit

Permalink
Merge branch 'release/1.8.0' into docs/website
Browse files Browse the repository at this point in the history
  • Loading branch information
ArshaanNazir committed Nov 9, 2023
2 parents 661e529 + 74403b2 commit e8a112f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions demo/tutorials/llm_notebooks/Disinformation_Test.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,9 @@
"source": [
"model = {\"model\": \"text-davinci-003\", \"hub\":\"openai\"}\n",
"\n",
"data={\"data_source\" :'Toxicity',\"split\":\"test\"}\n",
"data = {\"data_source\": \"Narrative-Wedging\"}\n",
"\n",
"harness = Harness(task={\"task\": \"text-generation\", \"category\": \"toxicity\"}, model=model, data=data)"
"harness = Harness(task={\"task\": \"text-generation\", \"category\": \"disinformation-test\"}, model=model, data=data)"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions langtest/data/config/wino_huggingface_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ tests:
defaults:
min_pass_rate: 1.0

wino-bias:
gender-occupational-stereotype:
stereotype:
wino-bias:
min_pass_rate: 0.70
diff_threshold: 0.03
6 changes: 3 additions & 3 deletions langtest/data/config/wino_openai_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ model_parameters:
tests:
defaults:
min_pass_rate: 1.0

wino-bias:
gender-occupational-stereotype:
stereotype:
wino-bias:
min_pass_rate: 0.70
1 change: 1 addition & 0 deletions langtest/transform/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1493,6 +1493,7 @@ class DisinformationTestFactory(ITests):
alias_name = "disinformation"
supported_tasks = [
"disinformation-test",
"text-generation",
]

def __init__(self, data_handler: List[Sample], tests: Dict = None, **kwargs) -> None:
Expand Down

0 comments on commit e8a112f

Please sign in to comment.