InternLM / xtuner

An efficient, flexible and full-featured toolkit for fine-tuning LLM (InternLM2, Llama3, Phi3, Qwen, Mistral, ...)
https://xtuner.readthedocs.io/zh-cn/latest/
Apache License 2.0
3.72k stars 302 forks source link

chat 时添加 --lagent 出现 got multiple values for keyword argument "trust renote code #268

Closed ooooo-create closed 9 months ago

ooooo-create commented 9 months ago

运行 xtuner chat ./internlm-chat-7b --adapter internlm-7b-qlora-msagent-react --lagent 5a9b0358d9dd2dd8bd8d047e78aaa9d 出现 00004acff03e0a8ce250c84bba00764 发现是lagent.llms.HFTransformerCasualLM 5f059641230a5cd5f196aedd2a04127 然后把chat.py文件注释了一下,就没问题了 f5e8e9dd33518e51189dc1b39f5e668

是不是要修改一下 model_kwargs ,在--lagent不传入 trust renote code. I am willing to do this ~

LZHgrla commented 9 months ago

269 感谢!相关PR已被merge~