Merge branch 'shuguang/main' of https://github.com/katanemo/archgw into shuguang/main

This commit is contained in:
Shuguang Chen 2024-12-09 15:41:06 -08:00
commit 791ce0a7ed
2 changed files with 2 additions and 1 deletions

View file

@ -521,6 +521,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,
},
}