RunpodR
Runpod11mo ago
drazenz

Downloading models causes the pod to freeze

Hey, not sure if I'm missing something obvious here.

I'm noticing two problems (might have the same cause):

  1. I'm trying to download phi-4 14b from HuggingFace.
I'm not doing anything out of the ordinary, I just run
hf_model = transformers.AutoModelForCausalLM.from_pretrained(model_id, token=hf_token, torch_dtype=torch.bfloat16).to(device)

The download is going to the volume disk.

Somewhere mid downloading 2nd out of 6 .safetensors files, the pod freezes.
I lose ssh connection, the RunPod dash shows 100% Memory usage. I can only restart the pod at this point.

  1. When I try rsyncing 6gb of files from my local machine to a pod (eg. Llama3.2-3B-Instruct), it uses up the ram and freezes, more often than not. Sometimes it helps to restart the pod, but sometimes the only way is to download the weights instead of rsyncing up.
    I'm using:
  2. 1xA40, 50GB RAM
  3. runpod/pytorch:2.4.0-py3.11-cuda12.4.1-devel-ubuntu22.04 image
  4. 20GB container, 40GB volume (with enough free space before starting the download)
Thanks!
Was this page helpful?