Skip to content

Commit abb5f7c

Browse files
chaunceyjiangliuzijing2014
authored andcommitted
Revert "[Misc] Add S3 environment variables for better support of MinIO." (vllm-project#17021)
Signed-off-by: Zijing Liu <[email protected]>
1 parent 2d45507 commit abb5f7c

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

vllm/transformers_utils/s3_utils.py

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,7 @@ def glob(s3=None,
4545
list[str]: List of full S3 paths allowed by the pattern
4646
"""
4747
if s3 is None:
48-
s3 = boto3.client(
49-
's3',
50-
aws_access_key_id=os.getenv("AWS_ACCESS_KEY_ID"),
51-
aws_secret_access_key=os.getenv("AWS_SECRET_ACCESS_KEY"),
52-
endpoint_url=os.getenv("AWS_ENDPOINT_URL"),
53-
region_name=os.getenv("AWS_REGION_NAME"))
48+
s3 = boto3.client("s3")
5449
if not path.endswith("/"):
5550
path = path + "/"
5651
bucket_name, _, paths = list_files(s3,
@@ -112,12 +107,7 @@ class S3Model:
112107
"""
113108

114109
def __init__(self) -> None:
115-
self.s3 = boto3.client(
116-
's3',
117-
aws_access_key_id=os.getenv("AWS_ACCESS_KEY_ID"),
118-
aws_secret_access_key=os.getenv("AWS_SECRET_ACCESS_KEY"),
119-
endpoint_url=os.getenv("AWS_ENDPOINT_URL"),
120-
region_name=os.getenv("AWS_REGION_NAME"))
110+
self.s3 = boto3.client('s3')
121111
for sig in (signal.SIGINT, signal.SIGTERM):
122112
existing_handler = signal.getsignal(sig)
123113
signal.signal(sig, self._close_by_signal(existing_handler))

0 commit comments

Comments
 (0)