Skip to content

Commit

Permalink
LLMFactCheck
Browse files Browse the repository at this point in the history
  • Loading branch information
mlupei committed Feb 18, 2024
1 parent db3627a commit 4c099ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/get_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@ def get_result(model_info, prompt, model_type):
result_text = ""
for chunk in prompt_chunks:
# Interact with the Llama model
print(chunk)
response = model(prompt=chunk, max_tokens=256, temperature=0.5,
top_p=0.95, repeat_penalty=1.2, top_k=150, echo=True)
result_text += response["choices"][0]["text"]
print(result_text)
return result_text

else:
Expand Down

0 comments on commit 4c099ba

Please sign in to comment.