Skip to content

Commit

Permalink
Merge pull request #174 from coreweave/fix-s3-endpoint
Browse files Browse the repository at this point in the history
benchmarking: fix the variable to point to the correct one
  • Loading branch information
wbrown authored Aug 13, 2024
2 parents 44a3e60 + 8f7f054 commit 526477c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/benchmark_buffer_size/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,15 +132,15 @@

model_name: str = args.model

http_uri = f"http://{args.bucket}.{args.s3_url}/{model_name}/model.tensors"
http_uri = f"http://{args.bucket}.{args.s3_endpoint}/{model_name}/model.tensors"

https_uri = http_uri.replace("http://", "https://")
s3_uri = f"s3://{args.bucket}/{model_name}/model.tensors"
sanitized_model_file = model_name.replace("/", "_")
file_uri = f"{args.file_prefix}{sanitized_model_file}.tensors"
local_uri = f"http://localhost:3000/{sanitized_model_file}.tensors"

s3_endpoint = f"http://{args.s3_url}"
s3_endpoint = f"http://{args.s3_endpoint}"
if args.test_http:
s3_endpoint = s3_endpoint.replace("http://", "https://")

Expand Down

0 comments on commit 526477c

Please sign in to comment.