Closed susht3 closed 11 months ago
上午的时候还可以调通,下午就报错了。
可以直接加载模型吗?不要download
删除”download“这一行:super().download(download_path, model_name, only_download_config=only_download_config) 直接加载ckpt,报错模型大小不符:
Traceback (most recent call last):
File "inference.py", line 8, in
能否把代码发一下,我试试。
Description
有网络,但是连接不通: **** txt_img_matching altclip-xlmr-l Model hub is not reachable. Model hub is not reachable! Traceback (most recent call last): File "inference.py", line 8, in
loader = AutoLoader(
File "/nvme/nvme0/github/FlagAI/flagai/auto_model/auto_loader.py", line 218, in init
self.model = getattr(LazyImport(self.model_name[0]),
File "/nvme/nvme0/github/FlagAI/flagai/model/mm/AltCLIP.py", line 446, in from_pretrain
super().download(download_path, model_name, only_download_config=only_download_config)
File "/nvme/nvme0/github/FlagAI/flagai/model/base_model.py", line 264, in download
if model_id and model_id != "null": UnboundLocalError: local variable 'model_id' referenced before assignment
Alternatives
No response