Skip to content

Commit

Permalink
chore(ami): set env variable to enalbe hf transfer
Browse files Browse the repository at this point in the history
This triggers faster download/upload speeds when dealing with the hub.
  • Loading branch information
tengomucho authored and dacorvo committed Feb 6, 2025
1 parent e84e0c6 commit 5cba944
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion infrastructure/ami/hcl2-files/build.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ build {
]
}
provisioner "shell" {
inline = ["echo 'source /opt/aws_neuronx_venv_pytorch/bin/activate' | sudo tee -a /home/ubuntu/.bashrc"]
inline = [
"echo 'export HF_HUB_ENABLE_HF_TRANSFER=1' | sudo tee -a /home/ubuntu/.bashrc",
"echo 'source /opt/aws_neuronx_venv_pytorch/bin/activate' | sudo tee -a /home/ubuntu/.bashrc"
]
}
provisioner "file" {
source = "scripts/welcome-msg.sh"
Expand Down

0 comments on commit 5cba944

Please sign in to comment.