singularity images are read-only, so one cannot download model weights using the default configuration. the TORCH_HOME variable points to a /var/lib directory in the container, but to download model weights in singularity, one can unset that variable to use pytorch's default, which is in ~/.cache/torch/hub/checkpoints.
singularity images are read-only, so one cannot download model weights using the default configuration. the
TORCH_HOME
variable points to a/var/lib
directory in the container, but to download model weights in singularity, one can unset that variable to use pytorch's default, which is in~/.cache/torch/hub/checkpoints
.