Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

下载资源发生了错误,请使用正确的token #12

Open
VFVrPQ opened this issue Nov 21, 2023 · 7 comments
Open

下载资源发生了错误,请使用正确的token #12

VFVrPQ opened this issue Nov 21, 2023 · 7 comments

Comments

@VFVrPQ
Copy link

VFVrPQ commented Nov 21, 2023

运行 python model_download.py --repo_id Xenova/nllb-200-distilled-600M,出现这个错误该怎么办

Xenova/nllb-200-distilled-600M download :下载资源发生了错误,请使用正确的token
@little51
Copy link
Contributor

aliendao.cn里没这个模型,这个模型在e.aliendao.cn,需要登录付费下载,命令是python model_download.py --e --repo_id facebook/nllb-200-distilled-600M --token 您的token

@SamuelGong
Copy link

我有类似问题:运行python model_download.py --repo_id gpt2,出现下面的错误:

2023-11-28 07:43:55 gpt2 mirror :500
2023-11-28 07:43:55 gpt2 download :下载资源发生了错误,请使用正确的token

请问gpt2也是付费模型嘛?这个问题的解决方案和前述问题一样嘛?

@little51
Copy link
Contributor

是的,模型不太大的话,用免费的aliendao.cn,速度也还可以

@nagaame
Copy link

nagaame commented Dec 15, 2023

我有注意到默认的mirror参数是true,是否可以改成默认为false,从hugging face下载,加上mirror参数才从aliendao.cn下载这种设计

@little51
Copy link
Contributor

谢谢指出!开始做这个工具时,hugging face还基本上是能访问的,只是经常断线,所以mirror默认是false,不传此参数是从hugging face下载模型,只是增加了重试策略。后来hugging face彻底断了,这个参数也就失去了意义,为了简化命令,将其默认值改为了true

@nagaame
Copy link

nagaame commented Dec 15, 2023

谢谢指出!开始做这个工具时,hugging face还基本上是能访问的,只是经常断线,所以mirror默认是false,不传此参数是从hugging face下载模型,只是增加了重试策略。后来hugging face彻底断了,这个参数也就失去了意义,为了简化命令,将其默认值改为了true

明白了🫡

@darknesscho
Copy link

能否提供一个指定mirror站网址的地方,因为hf的mirror站并不只有这一家。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants