Skip to content

Commit

Permalink
sample_train
Browse files Browse the repository at this point in the history
  • Loading branch information
yifanmai committed Jun 27, 2024
1 parent f1056c7 commit 016691a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/helm/benchmark/adaptation/common_adapter_specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ def get_generation_adapter_spec(
stop_sequences: Optional[List] = None, # default value of `stop_sequences` is ["\n"]
temperature: float = 0.0,
multi_label: bool = False,
sample_train: bool = True,
) -> AdapterSpec:
"""
[instructions]
Expand Down Expand Up @@ -262,6 +263,7 @@ def format_prefix(noun: Optional[str], append_new_line: bool) -> str:
temperature=temperature,
stop_sequences=stop_sequences,
multi_label=multi_label,
sample_train=sample_train,
)


Expand Down
1 change: 1 addition & 0 deletions src/helm/benchmark/run_specs/bhasa_run_specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,7 @@ def get_flores_spec(source="en", target="id") -> RunSpec:
output_noun=TRANSLATION_PROMPTS[pair]["output_noun"],
stop_sequences=["\n"],
max_tokens=256,
sample_train=False,
)

scenario_spec = ScenarioSpec(
Expand Down

0 comments on commit 016691a

Please sign in to comment.