欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 科技 > 名人名企 > window下使用命令行启动llamafactory报错AttributeError: can‘t set attribute

window下使用命令行启动llamafactory报错AttributeError: can‘t set attribute

2024/10/23 0:47:17 来源:https://blog.csdn.net/Yaki_Duck/article/details/142918796  浏览:    关键词:window下使用命令行启动llamafactory报错AttributeError: can‘t set attribute

报错信息

Traceback (most recent call last):File "C:\Users\admin\.conda\envs\llf\lib\runpy.py", line 194, in _run_module_as_mainreturn _run_code(code, main_globals, None,File "C:\Users\admin\.conda\envs\llf\lib\runpy.py", line 87, in _run_codeexec(code, run_globals)File "C:\Users\admin\.conda\envs\llf\Scripts\llamafactory-cli.exe\__main__.py", line 7, in <module>sys.exit(main())File "C:\zbcx\chenyaqi\mymodel\my_new_llamafactory\LLaMA-Factory\src\llamafactory\cli.py", line 111, in mainrun_exp()File "C:\zbcx\chenyaqi\mymodel\my_new_llamafactory\LLaMA-Factory\src\llamafactory\train\tuner.py", line 50, in run_exprun_sft(model_args, data_args, training_args, finetuning_args, generating_args, callbacks)File "C:\zbcx\chenyaqi\mymodel\my_new_llamafactory\LLaMA-Factory\src\llamafactory\train\sft\workflow.py", line 46, in run_sfttemplate = get_template_and_fix_tokenizer(tokenizer, data_args)File "C:\zbcx\chenyaqi\mymodel\my_new_llamafactory\LLaMA-Factory\src\llamafactory\data\template.py", line 386, in get_template_and_fix_tokenizer_add_or_replace_eos_token(tokenizer, eos_token=stop_words[0])File "C:\zbcx\chenyaqi\mymodel\my_new_llamafactory\LLaMA-Factory\src\llamafactory\data\template.py", line 275, in _add_or_replace_eos_tokennum_added_tokens = tokenizer.add_special_tokens({"eos_token": eos_token})File "C:\Users\admin\.conda\envs\llf\lib\site-packages\transformers\tokenization_utils_base.py", line 994, in add_special_tokenssetattr(self, key, value)
AttributeError: can't set attribute

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com