Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
6bc1e30e
Unverified
Commit
6bc1e30e
authored
Apr 23, 2025
by
Chauncey
Committed by
GitHub
Apr 22, 2025
Browse files
Revert "[Misc] Add S3 environment variables for better support of MinIO." (#17021)
parent
7e081ba7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
12 deletions
+2
-12
vllm/transformers_utils/s3_utils.py
vllm/transformers_utils/s3_utils.py
+2
-12
No files found.
vllm/transformers_utils/s3_utils.py
View file @
6bc1e30e
...
...
@@ -45,12 +45,7 @@ def glob(s3=None,
list[str]: List of full S3 paths allowed by the pattern
"""
if
s3
is
None
:
s3
=
boto3
.
client
(
's3'
,
aws_access_key_id
=
os
.
getenv
(
"AWS_ACCESS_KEY_ID"
),
aws_secret_access_key
=
os
.
getenv
(
"AWS_SECRET_ACCESS_KEY"
),
endpoint_url
=
os
.
getenv
(
"AWS_ENDPOINT_URL"
),
region_name
=
os
.
getenv
(
"AWS_REGION_NAME"
))
s3
=
boto3
.
client
(
"s3"
)
if
not
path
.
endswith
(
"/"
):
path
=
path
+
"/"
bucket_name
,
_
,
paths
=
list_files
(
s3
,
...
...
@@ -112,12 +107,7 @@ class S3Model:
"""
def
__init__
(
self
)
->
None
:
self
.
s3
=
boto3
.
client
(
's3'
,
aws_access_key_id
=
os
.
getenv
(
"AWS_ACCESS_KEY_ID"
),
aws_secret_access_key
=
os
.
getenv
(
"AWS_SECRET_ACCESS_KEY"
),
endpoint_url
=
os
.
getenv
(
"AWS_ENDPOINT_URL"
),
region_name
=
os
.
getenv
(
"AWS_REGION_NAME"
))
self
.
s3
=
boto3
.
client
(
's3'
)
for
sig
in
(
signal
.
SIGINT
,
signal
.
SIGTERM
):
existing_handler
=
signal
.
getsignal
(
sig
)
signal
.
signal
(
sig
,
self
.
_close_by_signal
(
existing_handler
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment