cache_dir是您要保存的路径,revision参考模型卡片上的模型文件那里
示例代码中pipeline会自动下载下来保存在缓存文件夹中,后面使用时从缓存文件夹加载https://modelscope.cn/models/damo/nlp_xlmr_named-entity-recognition_viet-ecommerce-title/summary
自己搭环境的话,建议您按照官方教程的conda create -n modelscope python=3.8
教程https://modelscope.cn/docs/%E7%8E%AF%E5%A2%83%E5%AE%89%E8%A3%85,此回答整理自钉群“魔搭ModelScope开发者联盟群 ①”