HIT-SCIR / ltp

Language Technology Platform
http://ltp.ai
4.96k stars 1.04k forks source link

下载模型后报错报错 #629

Open liyanfu520 opened 1 year ago

liyanfu520 commented 1 year ago

加载LTP分词模型

from ltp import LTP
# print(torch.cuda.is_available())
ltp = LTP( "LTP/base2")
if torch.cuda.is_available():
    ltp.cuda()
    ltp.to("cuda")

报错 RuntimeError: C:\Users\joint.cache\huggingface\hub\models--LTP--base2\snapshots\70c57011dab606d130c4027705fa155118ca396f\pytorch_model.bin is a zip archive (did you mean to use torch.jit.load()?)

AlongWY commented 1 year ago

torch 版本太低了,最低需要1.6