I am using fairseq to run a customized task with command line tool fairseq-train ${data} {args}
. Is it possible to enter debug mode?
Asked
Active
Viewed 539 times
0

user16055099
- 1
- 1
1 Answers
0
Yes. The original command is fairseq-train ${args}
.
I found this is equivalent to python ${PATH-TO-FAIRSEQ_ROOT}/fairseq_cli/train.py ${args}
.
If you know how to debug in VS Code, then just point the "program" parameter to the (absolute) path of fairseq_cli/train.py
, and put all arguments after the "args", in the launch.json
file.

Ray
- 170
- 3
- 10