generated from aniketmaurya/python-project-template
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f74adc1
commit 870788d
Showing
4 changed files
with
20 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
from hermes.functioncall import ModelInference | ||
|
||
model_inference = ModelInference(chat_template="chatml") | ||
# model_path = 'NousResearch/Hermes-2-Pro-Llama-3-8B' | ||
model_path = "/Users/aniket/weights/llama-cpp/Hermes-2-Pro-Llama-3-8B-Q8_0.gguf" | ||
|
||
model_inference = ModelInference(model_path=model_path, ) | ||
model_inference.generate_function_call( | ||
"When was Golden Gate bridge last painted?", None, 5 | ||
"Fetch the stock fundamentals data for Tesla (TSLA)", None, 2 | ||
) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters