# PyTorch and safetensors. The [torch] extra of safetensors also installs numpy, which safetensors needs to write # files (save_pretrained, save_subnetwork); loading and running the models need only torch and safetensors. # Tested with torch 2.9.1 and safetensors 0.7.0. torch>=2.1 safetensors[torch]>=0.4