This commit is contained in:
cotran 2024-12-09 15:40:50 -08:00
parent 21fc0b5624
commit 0ec6762cda
2 changed files with 2 additions and 1 deletions

View file

@ -511,6 +511,7 @@ class ArchFunctionHandler(ArchBaseHandler):
if has_tool_call is False:
# [TODO] - Review: remove the following code
print("No tool call found, start parameter gathering")
print(f"Token entropy/varentropy map: {self.hallu_handler.token_probs_map}")
prefill_response = self._engage_parameter_gathering(messages)
model_response = prefill_response.choices[0].message.content

View file

@ -33,7 +33,7 @@ HALLUCINATION_THRESHOLD_DICT = {
},
MaskToken.PARAMETER_VALUE.value: {
"entropy": 0.5437773168087006,
"varentropy": 2.413176417350769,
"varentropy": 0.49826696813106713,
},
}