Skip to content

Commit

Permalink
benchmarking: fix the variable to point to the correct one
Browse files Browse the repository at this point in the history
  • Loading branch information
neurodrone committed Aug 8, 2024
1 parent 44a3e60 commit 8f7f054
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 8f7f054

Please sign in to comment.