-
Notifications
You must be signed in to change notification settings - Fork 6.2k
如何去打断点调试SFT, DPO流程 #5337
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
Comments
@flyinghu123 感谢你这么快的回复! 受教了! 不介意的话, 还想请问下, 那如果是APi(也就是run_api()), 不是train的话, module这块应该怎么去设置呢? torch run写成module: torch.distributed.run这个是怎么来的, 以后具体的module该怎么设置 |
@flyinghu123 感谢你的帮助! |
想问下用llamafactory-cli启动的话是不是改源码就没用了,我试着改了下src/llamafactory/train/tuner.py,发现没有任何变化,加个print都不行 |
@YunweiDai pip install -e . |
在transformers 中的断点不生效如何解决呢? |
launch.json中justMyCode: false |
我好像也遇到这个问题,要怎么解决呢? |
各位大佬,想请教一下,假如我希望使用pycharm调试以下指令: |
@zhicong01 你好 ,我也想用pycharm远程调试,请问你解决了么 |
大佬你好,
我觉得所有LLM入门的人都会有的问题, 就是如何去在vscode里面打断点调试SFT和DPO的流程
我整了一整天也没搞通, 所以特来求助.
首先是llamafactory-cli这个命令, 我看setup.py里面是运行的llamafactory.cli:main, 所以我就直接从这个cli.py文件的main函数开始
但是一直得到相对路径解析错误, 所有使用.进行的导入都会报错.
所以我想知道有没有一个简易的debug教程或者流程, 对新手来说很有帮助.
如果问题过于新手, 还请谅解.
The text was updated successfully, but these errors were encountered: