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
fix: add predict.py & analyze.py #737
base: main
Are you sure you want to change the base?
Conversation
experimental/eval/predict.py
Outdated
|
||
image = ( | ||
Image.from_registry( | ||
"tabbyml/tabby:0.5.4", |
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.
"tabbyml/tabby:0.5.4", | |
"tabbyml/tabby:0.5.5", |
Co-authored-by: Meng Zhang <meng@tabbyml.com>
@@ -8,15 +8,17 @@ | |||
import asyncio | |||
|
|||
GPU_CONFIG = gpu.A10G() | |||
#MODEL_ID = os.environ.get("MODEL_ID", "abc") | |||
MODEL_ID = "TabbyML/StarCoder-7B" | |||
#MODEL_ID = os.environ.get("MODEL_ID", "") |
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.
Remove commented out code?
print(f'Loading model `{MODEL_ID}`') | ||
import os | ||
MODEL_ID = os.popen("cat /tmp/tabby_model_id").read().strip() | ||
print(f'MODEL_ID={MODEL_ID}') |
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.
Remote model ID
@@ -60,6 +63,9 @@ def __enter__(self): | |||
|
|||
my_env = os.environ.copy() | |||
my_env["TABBY_DISABLE_USAGE_COLLECTION"] = "1" | |||
MODEL_ID = os.popen("cat /tmp/tabby_model_id").read().strip() | |||
print(f'MODEL_ID={MODEL_ID}') |
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.
Local model ID
No description provided.