-
Notifications
You must be signed in to change notification settings - Fork 377
Support for local models (+ Other OpenAI compatible end-points) #32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 6 commits
3b8e3bb
6433c08
18872fa
d3dbd71
0f0b5b0
433ff73
9e78a91
c0c7997
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -118,7 +118,7 @@ def main( | |
|
|
||
| model = Prompt.ask( | ||
| "\n1. What main model do you want to use?", | ||
| default="Qwen/Qwen2-72B-Instruct", | ||
| default=model, | ||
|
||
| ) | ||
| console.print(f"Selected {model}.", style="yellow italic") | ||
| temperature = float( | ||
|
|
@@ -199,8 +199,9 @@ def main( | |
|
|
||
| for chunk in output: | ||
| out = chunk.choices[0].delta.content | ||
| console.print(out, end="") | ||
| all_output += out | ||
| if out is not None: | ||
| console.print(out, end="") | ||
| all_output += out | ||
| print() | ||
|
|
||
| if DEBUG: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,3 +4,4 @@ loguru | |
| datasets | ||
| typer | ||
| rich | ||
| cffi | ||
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we renaming this parameter?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the documentation is incorrect. Typer will just get the parameters from the main function, where 'model' is used to define the primary model.
I changed the code to use --aggregator instead of --model