Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
[Core] Add Downloader implementation for runtime #96
[Core] Add Downloader implementation for runtime #96
Changes from 7 commits
e45b291
5ab3f96
cf45e16
9ec3f9f
ae79e71
44f7d2b
3edef21
8c5b9a1
19a45ac
3f46b91
944de43
bdf2c63
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
I feel the naming is a little bit weird.
file
should be subset of themodel_uri
.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.
Yes, I also feel a bit awkward here. For TOS,
bucket_name
is inhost_name
ofmodel_uri
. For AWS,bucket_name
is in thepath
of themodel_uri
. It is difficult to distinguish which subset of themodel_uri
is obtained in the base class. Or we should renamefilename
?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.
you mean TOS uri is like
bucket-name-tos-beijing/path
and S3 iss3://bucket-name/path
? for the internal methods, I suggest to have two variables likebucket
andpath
so we can construct the path as needed. but for the user's input. they probably give the URI directly, right? is there a way to split the string into bucket and path?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.
where do you use it for completion check?
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.
What I want is to first execute an entrypoint script in the main container to check if the file
.completed
exists in the model directory, and then execute the subsequent model startup logic. This can ensure the order of download and startup.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.
Let's say we use the vLLM, in that case, we need to change the entrypoint or add a wrapper?
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.
Yes, it's like using script content like the following as an entrypoint