ModelScope改了embedder报错requests.exceptions.HTTPError: SequenceLabelingPreprocessor: 404 Client Error: Not Found for url: http://
www.modelscope.cn/api/v1/models/damo/nlp_maoe_named-entity-recognition_general/revisions?EndTime=1688313600,群里还没通过,请问是需要改生成后的文件吗?报错如下:看着像是没找到这个模型!
根据您的描述,您的问题是找不到需要加载的模型 damo/nlp_maoe_named-entity-recognition_general/revisions?EndTime=1688313600,它可能已被删除或不再可用。
为此,建议您更新您的代码,将模型名称改为另一个可用的模型。另外,请检查 ModelScope 上的 API 是否已更新过,以确保您的代码仍可用。
从你提供的错误信息来看,报错提示是SequenceLabelingPreprocessor: 404 Client Error: Not Found for url: http://www.modelscope.cn/api/v1/models/damo/nlp_maoe_named-entity-recognition_general/revisions?EndTime=1688313600
,这表明在尝试访问一个特定的URL时,服务器返回了一个404错误,即“Not Found”,意味着请求的资源在服务器上不存在。
解决这个问题的方法可能包括:
revisions?EndTime=1688313600
,这是在查询模型的版本信息。请确认你正在使用的模型版本是否存在。如果需要使用特定版本的模型,请确保在请求中指定了正确的版本号。可能是网络原因,您换这个试一下embedder:
model_name_or_path: damo/nlp_raner_named-entity-recognition_chinese-base-news,我这没报错。
embedder:
model_name_or_path: damo/nlp_raner_named-entity-recognition_chinese-base-news,adaseq 0.6.4
modelscope 1.9.3,此回答整理自钉群“魔搭ModelScope开发者联盟群 ①”