开发者社区 > ModelScope模型即服务 > 正文

请问用git下载魔搭ModelScope的模型,怎么区分公开模型和私有模型?

怎么区分公开模型和私有模型?
git.png

username 和 password在哪里看?是什么?

使用Git下载模型#

公开模型下载

git lfs install
git clone https://www.modelscope.cn//.git

例如: git clone https://www.modelscope.cn/damo/ofa_image-caption_coco_large_en.git

私有模型下载,前提是您有响应模型权限 方法1

git lfs install
git clone http://oauth2:your_git_token@www.modelscope.cn//.git

方法2

git clone http://your_user_name@www.modelscope.cn//.git

Password for 'http://your_user_name@modelscope.cn':

input git token

下面出错为什么?

C:\Users\BYTE>git clone https://www.modelscope.cn/models/AI-ModelScope/stablelm-tuned-alpha-7b.git
Cloning into 'stablelm-tuned-alpha-7b'...
warning: ----------------- SECURITY WARNING ----------------
warning: | TLS certificate verification has been disabled! |
warning: ---------------------------------------------------
warning: HTTPS connections may not be secure. See https://aka.ms/gcm/tlsverify for more information.
fatal: User cancelled dialog.
Username for 'https://www.modelscope.cn': aivision
Password for 'https://aivision@www.modelscope.cn':
remote: The project you were looking for could not be found or you don't have permission to view it.
fatal: repository 'https://www.modelscope.cn/models/AI-ModelScope/stablelm-tuned-alpha-7b.git/' not found

cmd.png

展开
收起
沸腾的开水 2023-10-09 13:22:08 653 2
2 条回答
写回答
取消 提交回答
  • 在魔搭ModelScope上,公开模型和私有模型的区别在于它们的访问权限。

    对于公开模型,任何人都可以在魔搭ModelScope网站上查看和下载这些模型的元数据以及部分预览内容。但是,如果需要访问模型的完整版本或源代码,通常需要进行登录或获得特定的权限。

    对于私有模型,只有拥有者或被授权的用户才能查看和下载这些模型的元数据和完整版本。未授权的用户无法访问这些模型。

    在使用git下载魔搭ModelScope上的模型时,你需要先登录到魔搭ModelScope网站,找到你需要的模型,并复制该模型的链接地址。然后,在命令行中使用git clone命令来下载该模型:

    php
    git clone <模型链接地址>
    如果你无法访问该模型的完整版本或源代码,说明该模型是私有模型,你需要获得授权或联系模型的所有者来获取访问权限。

    2023-10-20 10:57:58
    赞同 1 展开评论 打赏
  • git上模型下载页面有关于该模型的一些说明,包括该模型是否开源,是否支持商用之类的。

    2023-10-10 08:39:38
    赞同 6 展开评论 打赏

ModelScope旨在打造下一代开源的模型即服务共享平台,为泛AI开发者提供灵活、易用、低成本的一站式模型服务产品,让模型应用更简单!欢迎加入技术交流群:微信公众号:魔搭ModelScope社区,钉钉群号:44837352

相关电子书

更多
新一代高效Git协同模型 立即下载
AGit-Flow:新一代高效Git协同模型 立即下载
AGit-flow:新一代高效Git协同模型 立即下载

相关实验场景

更多