-
-
Notifications
You must be signed in to change notification settings - Fork 10k
[Misc] Add S3 environment variables for better support of MinIO. #16977
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
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
👋 Hi! Thank you for contributing to the vLLM project. 💬 Join our developer Slack at https://slack.vllm.ai to discuss your PR in #pr-reviews, coordinate on features in #feat- channels, or join special interest groups in #sig- channels. Just a reminder: PRs would not trigger full CI run by default. Instead, it would only run Once the PR is approved and ready to go, your PR reviewer(s) can run CI to test the changes comprehensively before merging. To run CI, PR reviewers can either: Add 🚀 |
test # export AWS_ENDPOINT_URL=http://10.20.2.192:9000
# export AWS_SECRET_ACCESS_KEY=xxxxx
# export AWS_ACCESS_KEY_ID=xx
# vllm serve s3://llm/meta-llama/Meta-Llama-3-8B-Instruct --load-format runai_streamer
INFO 04-22 11:13:25 [__init__.py:239] Automatically detected platform cuda
.... |
/cc @DarkLight1337 PTAL. |
Is this just a code convention? Or is there official documentation for this? |
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.
In any case this is reasonable
I'm a little confused why this change is necessary? From my understanding, boto3 should automatically pick up all the variables automatically without having to do this. Is there any reason why this doesn't work as-is? |
@vrdn-23 Indeed. I double-checked the documentation at https://boto3.amazonaws.com/v1/documentation/api/latest/guide/configuration.html, and you're right—Boto3 does support those environment variables by default. I had always assumed it would only read from |
Yesterday, I set up a MinIO instance myself to test #16926. Then I modified The |
@DarkLight1337 @vrdn-23 For this PR, should we keep the current behavior—explicitly reading the environment variables—or should we revert to the previous behavior—implicitly reading the variables? |
I would err on the side of reverting, just because I believe boto3 has an implicit way of deciding which order to read AWS credentials from (eg: it checks env variables first, then client arguments and so on). Explicitly passing in the env variables through the client-side arguments will probably lead to un-intended consequences in the future if that order ever changes. |
Let's just revert this then |
ok. |
…m-project#16977) Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com> Signed-off-by: Frieda (Jingying) Huang <jingyingfhuang@gmail.com>
…m-project#16977) Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
…m-project#16977) Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
…m-project#16977) Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com> Signed-off-by: Agata Dobrzyniewicz <adobrzyniewicz@habana.ai>
…m-project#16977) Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com> Signed-off-by: Mu Huai <tianbowen.tbw@antgroup.com>
…m-project#16977) Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com> Signed-off-by: minpeter <kali2005611@gmail.com>
MinIO is an object storage service compatible with the S3 protocol.
It is commonly used by setting the environment variables
AWS_ACCESS_KEY_ID
,AWS_SECRET_ACCESS_KEY
, andAWS_ENDPOINT_URL
.For example: https://github.com/run-ai/runai-model-streamer/blob/master/cpp/s3/s3.h#L31
Add S3 environment variables for better support of MinIO.