Skip to content
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

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

yan91083
Copy link
Contributor

@yan91083 yan91083 commented Nov 9, 2023

No description provided.


image = (
Image.from_registry(
"tabbyml/tabby:0.5.4",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"tabbyml/tabby:0.5.4",
"tabbyml/tabby:0.5.5",

experimental/eval/predict.py Outdated Show resolved Hide resolved
@@ -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", "")
Copy link

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}')
Copy link

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}')
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Local model ID

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants