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

[serving] deprecate s3Url and replace it with model_id #568

Merged
merged 1 commit into from
Mar 23, 2023

Conversation

frankfliu
Copy link
Contributor

  • [serving] support load entryPoint with url
  • [serving] deprecate s3Url and replace it with model_id

Description

Brief description of what this PR is about

  • If this change is a backward incompatible change, why must this change be made?
  • Interesting edge cases to note here

@frankfliu frankfliu requested review from zachgk and a team as code owners March 23, 2023 18:13
@@ -8,13 +8,13 @@

ds_aot_list = {
"opt-6.7b": {
"option.s3url": "s3://djl-llm/opt-6b7/",
"option.model_id": "s3://djl-llm/opt-6b7/",
Copy link
Contributor

Choose a reason for hiding this comment

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

let's keep an s3 url option here. To keep this test in the loop

@@ -40,13 +40,14 @@ def __init__(self, props_manager):
self.download_model_from_s3()

def download_model_from_s3(self):
if "s3url" not in self.properties:
model_id = self.properties.get("model_id")
if not model_id or model_id.startswith("s3://"):
Copy link
Contributor

Choose a reason for hiding this comment

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

you mean not model_id.startswith?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@frankfliu frankfliu merged commit e793052 into deepjavalibrary:master Mar 23, 2023
@frankfliu frankfliu deleted the model_id branch March 23, 2023 20:42
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.

3 participants