Skip to content

Commit

Permalink
fix chatqna accuracy issue with incorrect penalty (#974)
Browse files Browse the repository at this point in the history
  • Loading branch information
Spycsh authored Oct 17, 2024
1 parent d486bbb commit b0487fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ChatQnA/chatqna.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ def align_inputs(self, inputs, cur_node, runtime_graph, llm_parameters_dict, **k
next_inputs["top_p"] = llm_parameters_dict["top_p"]
next_inputs["stream"] = inputs["streaming"]
next_inputs["frequency_penalty"] = inputs["frequency_penalty"]
next_inputs["presence_penalty"] = inputs["presence_penalty"]
next_inputs["repetition_penalty"] = inputs["repetition_penalty"]
# next_inputs["presence_penalty"] = inputs["presence_penalty"]
# next_inputs["repetition_penalty"] = inputs["repetition_penalty"]
next_inputs["temperature"] = inputs["temperature"]
inputs = next_inputs
return inputs
Expand Down

0 comments on commit b0487fe

Please sign in to comment.