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

[Misc] Check AI Runtime download env settings #221

Merged
merged 4 commits into from
Sep 25, 2024

Conversation

brosoul
Copy link
Collaborator

@brosoul brosoul commented Sep 25, 2024

Pull Request Description

  1. If the DOWNLOADER_MODEL_NAME is not set in TOS and s3 downloads, an AssertError will be thrown.

  2. Due to the fact that S3 and TOS support anonymous downloads, we cannot directly throw AttributeError if the credentials is missed (aibrix throw AttributeError if the credentials is missed #208). In this PR, we set the default value of ak sk for TOS to '' to ensure that the error 'NoneType' object has no attribute 'strip' does not occur. (TOS SDK not support ak sk is None)

Related Issues

Resolves: #212, #208

Important: Before submitting, please complete the description above and review the checklist below.


Contribution Guidelines (Expand for Details)

We appreciate your contribution to aibrix! To ensure a smooth review process and maintain high code quality, please adhere to the following guidelines:

Pull Request Title Format

Your PR title should start with one of these prefixes to indicate the nature of the change:

  • [Bug]: Corrections to existing functionality
  • [CI]: Changes to build process or CI pipeline
  • [Docs]: Updates or additions to documentation
  • [API]: Modifications to aibrix's API or interface
  • [CLI]: Changes or additions to the Command Line Interface
  • [Misc]: For changes not covered above (use sparingly)

Note: For changes spanning multiple categories, use multiple prefixes in order of importance.

Submission Checklist

  • PR title includes appropriate prefix(es)
  • Changes are clearly explained in the PR description
  • New and existing tests pass successfully
  • Code adheres to project style and best practices
  • Documentation updated to reflect changes (if applicable)
  • Thorough testing completed, no regressions introduced

By submitting this PR, you confirm that you've read these guidelines and your changes align with the project's contribution standards.

@brosoul brosoul requested a review from Jeffwan September 25, 2024 09:10
@Jeffwan
Copy link
Collaborator

Jeffwan commented Sep 25, 2024

looks good to me

@Jeffwan Jeffwan merged commit 9c3432c into main Sep 25, 2024
10 checks passed
@Jeffwan Jeffwan deleted the linhui/runtime-parameter-check branch September 25, 2024 17:40
gangmuk pushed a commit that referenced this pull request Jan 25, 2025
* fix: assert DOWNLOADER_MODEL_NAME setting during download from tos or s3

* test: add test case about model name not set

* test: fix tos func name

* style
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.

DOWNLOADER_MODEL_NAME blocks the runtime to download other models
2 participants