-
Notifications
You must be signed in to change notification settings - Fork 67
adding download api to launch client, updating example #196
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
Conversation
|
can you share screenshot of newly added page? |
i.e. the .ipynb example? @yunfeng-scale not sure what you mean by newly added page? |
|
yixu34
left a comment
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.
Normally I'd suggest adding a helper function like Model.download instead of relying on these code snippets, but given that we don't actually want to make this too easy, I think that's fine.
clients/python/llmengine/model.py
Outdated
| def download( | ||
| cls, | ||
| model_name: str, | ||
| download_format: str = "huggingface", |
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.
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.
oh okay, that's a relatively easy fix (currently we're not actually doing anything with the format token anyway)
| download format requested (default=huggingface) | ||
| Returns: | ||
| DownloadModelResponse: an object that contains a dictionary of filenames, urls from which to download the model weights. | ||
| The urls are presigned urls that grant temporary access and expire after an hour. |
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.
Think this is OK for now, but not sure if this is technically true in all contexts, e.g. self-hosting.
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.
This make sense, I'm actually not exactly sure what the behavior would be in a self-hosted context. We can think about this more as it becomes relevant in the future?



No description provided.