新手入门,使用CPU镜像:ubuntu22.04-py311-torch2.3.1-1.28.0
用官方示例跑了如下程序:
from modelscope.pipelines import pipeline
word_segmentation = pipeline('word-segmentation')
input_str = '今天天气不错,适合出去游玩'
print(word_segmentation(input_str))
碰到2个问题需要大家帮忙解答下 :
word-segmentation 这个task是默认关联下载 damo/nlp_structbert_word-segmentation_chinese-base
这个模型的 ,但是我在 model hub中为什么搜索不到 damo/nlp_structbert_word-segmentation_chinese-base
这个模型的说明啊 ?
我在NoteBook 中直接新建cell 运行 上面的程序,提示we now require users to upgrade torch to at least v2.6 in order to use the function
的报错, 模搭社区 提供的镜像是 pytorch 是2.3.1, 是因为这个我无法运行示例么 ? 我是应该安装conda 在去安装新的pytorch版本才能运行示例吗 ?
ModelScope旨在打造下一代开源的模型即服务共享平台,为泛AI开发者提供灵活、易用、低成本的一站式模型服务产品,让模型应用更简单!欢迎加入技术交流群:微信公众号:魔搭ModelScope社区,钉钉群号:44837352