modelscope icon indicating copy to clipboard operation
modelscope copied to clipboard

Authentication token does not exist, failed to access model unknown which may not exist or may be private. Please login first.

Open 2656657838 opened this issue 2 years ago • 6 comments

训练时报错 2023-09-27 15:17:54,332 - modelscope - INFO - load ./zhong_data/output_dir/ 2023-09-27 15:17:54,555 - modelscope - ERROR - Authentication token does not exist, failed to access model unknown which may not exist or may be private. Please login first. 2023-09-27 15:17:54,652 - modelscope - ERROR - Authentication token does not exist, failed to access model unknown which may not exist or may be private. Please login first.

2656657838 avatar Sep 27 '23 07:09 2656657838

在训练前执行如下代码登录,使用自己的私有仓库

from modelscope.hub.api import HubApi

YOUR_ACCESS_TOKEN = '请从ModelScope个人中心->访问令牌获取'

api = HubApi()
api.login(YOUR_ACCESS_TOKEN)

wenmengzhou avatar Sep 29 '23 11:09 wenmengzhou

我就是仅仅运行一下本地模型,为什么还报这个错误呢: 运行命令:

from vllm import LLM, SamplingParams
llm = LLM(model="/data/share/rwq/Qwen-7B-Chat", revision="v1.1.8", trust_remote_code=True)

报错:

2024-01-03 17:58:31,460 - modelscope - ERROR - Authentication token does not exist, failed to access model /data/share/rwq/Qwen-7B-Chat which may not exist or may be                 private. Please login first.

请问是什么原因?

我的python版本是: python 3.10.12

ArlanCooper avatar Jan 03 '24 10:01 ArlanCooper

@ArlanCooper 请问您解决了吗,我遇到了相同的问题

gxy-gxy avatar Jan 29 '24 11:01 gxy-gxy

@ArlanCooper 我解决了,只要unset VLLM_USE_MODELSCOPE就行

gxy-gxy avatar Jan 29 '24 12:01 gxy-gxy

@ArlanCooper 我解决了,只要unset VLLM_USE_MODELSCOPE就行

就是不用modelscope吗?只使用transformers吧?

ArlanCooper avatar Jan 30 '24 02:01 ArlanCooper

Same error comes together with TypeError: Accelerator.__init__() got an unexpected keyword argument 'use_seedable_sampler', update accelarator solves it: pip install accelerate==0.27.2

zhangyuygss avatar May 07 '24 08:05 zhangyuygss

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Jun 26 '24 01:06 github-actions[bot]

This issue was closed because it has been stalled for 5 days with no activity.

github-actions[bot] avatar Jul 01 '24 01:07 github-actions[bot]