daiya1235

Results 5 comments of daiya1235

这是我的cuda和safetensors版本 >>> print(torch.__version__) 2.3.0+cu121 >>> >>> import safetensors >>> print(safetensors.__version__) 0.6.2

> You just comment this assert line. Because more keys not exists in LHM (I don't known why?)您只需注释这行断言。因为更多的键不存在于LHM(我不知道为什么?) thanks,I will try

Commenting out the code did indeed have an effect, but a new error occurred: if "const" in schema: TypeError: argument of type 'bool' is not iterable ERROR: Exception in ASG....

我也一样自动切换了MINI模型,但是模型匹配不上,即使我使用python ./app.py --model_name LHM-MINI指定模型依旧是相同的问题

已解决: 注释掉torch.py文件的284行代码 /root/miniconda3/envs/LHM/lib/python3.10/site-packages/safetensors/torch.py", line 284, in load_model assert torch_missing == missing, f"{torch_missing} != {missing}" 重新启动有可能继续报错TypeError: argument of type 'bool' is not iterable 升级 pydantic :pip install pydantic==2.10.6后再启动