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

ModelScope中,使用的是qwen1half-7b-chat,第一次跑通了,这是为什么?

"[ERROR:swift] Authentication token does not exist, failed to access model qwen/Qwen15-7B-Chat which may not exist or may be private. Please login first.
[ERROR:swift] Authentication token does not exist, failed to access model qwen/Qwen1
5-7B-Chat which may not exist or may be private. Please login first.

Traceback (most recent call last):
File ""c:\users\406\desktop\dev\swift-main\swift\cli\sft.py"", line 5, in
sft_main()
File ""c:\users\406\desktop\dev\swift-main\swift\utils\run_utils.py"", line 27, in x_main
result = llm_x(args, kwargs)
File ""c:\users\406\desktop\dev\swift-main\swift\llm\sft.py"", line 201, in llm_sft
trainer = Seq2SeqTrainer(
File ""c:\users\406\desktop\dev\swift-main\swift\trainers\trainers.py"", line 36, in init
super().init(*args,
kwargs)
File ""c:\users\406\desktop\dev\swift-main\swift\trainers\mixin.py"", line 239, in init
super().init(
File ""C:\Users\406\anaconda3\envs\modelscope\lib\site-packages\transformers\trainer_seq2seq.py"", line 57, in init
super().init(
File ""C:\Users\406\anaconda3\envs\modelscope\lib\site-packages\transformers\trainer.py"", line 514, in init
self._move_model_to_device(model, args.device)
File ""C:\Users\406\anaconda3\envs\modelscope\lib\site-packages\transformers\trainer.py"", line 757, in _move_model_to_device
model = model.to(device)
File ""C:\Users\406\anaconda3\envs\modelscope\lib\site-packages\torch\nn\modules\module.py"", line 1173, in to
return self._apply(convert)
File ""C:\Users\406\anaconda3\envs\modelscope\lib\site-packages\torch\nn\modules\module.py"", line 779, in _apply
module._apply(fn)
File ""C:\Users\406\anaconda3\envs\modelscope\lib\site-packages\torch\nn\modules\module.py"", line 779, in _apply
module._apply(fn)
File ""C:\Users\406\anaconda3\envs\modelscope\lib\site-packages\torch\nn\modules\module.py"", line 779, in _apply
module._apply(fn)
[Previous line repeated 5 more times]
File ""C:\Users\406\anaconda3\envs\modelscope\lib\site-packages\torch\nn\modules\module.py"", line 804, in _apply
param_applied = fn(param)
File ""C:\Users\406\anaconda3\envs\modelscope\lib\site-packages\torch\nn\modules\module.py"", line 1166, in convert
raise NotImplementedError(
NotImplementedError: Cannot copy out of meta tensor; no data! Please use torch.nn.Module.to_empty() instead of torch.nn.Module.to() when moving module from meta to a different device.
ModelScope中,使用的是qwen1half-7b-chat,第一次跑通了,第二次就不行咯,这是为什么?"

展开
收起
小小爱吃香菜 2024-05-15 21:00:05 199 0
1 条回答
写回答
取消 提交回答
  • 一般这种报错是显存不够。此回答整理自钉群“魔搭ModelScope开发者联盟群 ①”

    2024-05-15 22:53:42
    赞同 2 展开评论 打赏

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

相关电子书

更多
视觉AI能力的开放现状及ModelScope实战 立即下载
ModelScope助力语音AI模型创新与应用 立即下载
低代码开发师(初级)实战教程 立即下载