mirror of
https://github.com/katanemo/plano.git
synced 2026-04-29 10:56:35 +02:00
hallucination with log probs (#281)
* first init * fix * fix test * new implemenetation * fix bug * fix bug * fix bug * address issue * address issues * address comments * fix test * fix * move constatns * remove consts
This commit is contained in:
parent
f5cdafb7c8
commit
cadd3cdaf9
5 changed files with 1269 additions and 1 deletions
|
|
@ -19,6 +19,7 @@ arch_function_generation_params = {
|
|||
"top_k": 50,
|
||||
"max_tokens": 512,
|
||||
"stop_token_ids": [151645],
|
||||
# "top_logprobs": 10,
|
||||
}
|
||||
|
||||
arch_guard_model_type = {
|
||||
|
|
@ -34,3 +35,4 @@ zero_shot_model = loader.get_zero_shot_model()
|
|||
prompt_guard_dict = loader.get_prompt_guard(arch_guard_model_type[glb.DEVICE])
|
||||
|
||||
arch_guard_handler = ArchGuardHanlder(model_dict=prompt_guard_dict)
|
||||
# Patterns for function name and parameter parsing
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue