Skip to content
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

try s3 crt #519

Open
wants to merge 22 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
fix bug
noyoshi committed Jun 19, 2024
commit bfd857ad697bd84bc7ad20978a9a418dca7251a4
3 changes: 1 addition & 2 deletions server/lorax_server/utils/sources/s3.py
Original file line number Diff line number Diff line change
@@ -73,8 +73,7 @@ def _get_bucket_resource(bucket_name: str) -> "Bucket":


def get_s3_model_local_dir(model_id: str):
if model_id.startswith(S3_PREFIX):
model_id = model_id.replace(S3_PREFIX, "")
_, model_id = _get_bucket_and_model_id(model_id)
object_id = model_id.replace("/", "--")
repo_cache = Path(HUGGINGFACE_HUB_CACHE) / f"models--{object_id}" / "snapshots"
return repo_cache