Skip to content

Commit

Permalink
Apply linter
Browse files Browse the repository at this point in the history
  • Loading branch information
martinscooper committed Feb 6, 2025
1 parent bad3386 commit a06d77e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/unitxt/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -6171,10 +6171,10 @@ def compute(self, references: List[Any], prediction: Any, task_data: Dict) -> di
self._tokenizer = AutoTokenizer.from_pretrained(self.hf_model_name)
self.inference_engine = WMLInferenceEngineGeneration(
model_name=self.model_name,
decoding_method= "greedy",
max_new_tokens= 20,
temperature= 0,
return_options= {
decoding_method="greedy",
max_new_tokens=20,
temperature=0,
return_options={
"token_logprobs": True,
"generated_tokens": True,
"input_text": True,
Expand Down Expand Up @@ -6205,7 +6205,7 @@ def compute(self, references: List[Any], prediction: Any, task_data: Dict) -> di
logger.debug(f"Results are ready:\n{result}")
return result

def create_message(self, role: str, content: str) -> list[dict[str, str]]:
def create_message(self, role: str, content: str) -> List[Dict[str, str]]:
return [{"role": role, "content": content}]

def process_input_fields(self, task_data):
Expand Down

0 comments on commit a06d77e

Please sign in to comment.