Colab Enterprise is nice. You can define your own runtime templates for VMs to run Jupyter notebooks on. Attach persistent disks. Good stuff.

Right up until you realize certain libraries - in this case kagglehub - don’t let you specify where models get downloaded on the local file system.

You can have a 2TB disk mounted on /content but it doesn’t matter if kagglehub.model_download caches its models somewhere else.

It does.

It caches models at ~/.cache/kagglehub/models.

One thing to do:

$ cd ~/.cache/kagglehub

$ mv models /content/

$ ln -s /content/models

That’s it.

-J