How to download a model like git lfs?

#23
by PYTHON01100100 - opened

How to download a model like git lfs?
to use it on the cloud and k8s and store the model on Amazon S3

Hi @PYTHON01100100 -

Thanks for reaching out to us! You can download model like google/gemma-4-26B-A4B-it using Hugging Face CLI with the command given below:

huggingface-cli download google/gemma-4-26b-it --local-dir gemma-4-26b-it

Once the download is completed, you can use aws s3 sync [local-path] [s3-uri] command to upload the model folder to your S3 bucket. From there, in cloud or Kubernetes-based deployments, the model can be accessed by pulling it from S3 depending on the deployment design.

Let me know if this works for you. Thanks!

Sign up or log in to comment