-
Notifications
You must be signed in to change notification settings - Fork 326
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
TypeError: FormatCode() got an unexpected keyword argument 'verify' #139
Comments
/data/conda/envs/xtuner/lib/python3.11/site-packages/mmengine/config/config.py
|
It seems that there is a syntax error in your config, could you please provide your config and we will check it. |
我看的问题,推测是FormatCode这个函数,没有verify=True这个参数. 我看我本地安装的yapf是0.40.2 我没有编辑config,直接用缺省的qwen-*几个试了一下,都是同样的错误信息。 |
改成
就能正常运行了. |
是的,确实是yapf版本的问题,0.40.2移除了verify参数。 open-mmlab/mmengine#1365 已经解决了这一问题,可以考虑从源码重新安装MMEngine
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
clone源代码
commit b05ad8d (HEAD -> main, origin/main, origin/HEAD)
pip install -e .[all]
xtuner train xxxx
都是下面这个错误信息.
The text was updated successfully, but these errors were encountered: