ValueError: Due to a serious vulnerability issue in torch.load, even with weights_only=True, we now require users to upgrade torch to at least v2.6 in order to use the function. This version restriction does not apply when loading files with safetensors.
See the vulnerability report here NVD - CVE-2025-32434
解决方法:
强制安装老版本transformers就行了 transformers=4.43可以用
pip uninstall transformers
pip install transformers==4.43