Vscode使用launch.json进行传参调试代码
目录
- 1 操作
- 2 后记
1 操作
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "NER",
"type": "debugpy",
"request": "launch",
"program": "run.py",
"console": "integratedTerminal",
"cwd": "/data/home/litianle/Mycode/other/Project/HVPNeT",
"env": {
"CUDA_VISIBLE_DEVICES": "0"
},
"args": [
"--dataset_name", "NER",
"--bert_name", "bert-base-uncased",
"--num_epochs", "40",
"--batch_size", "4",
"--lr", "3e-5",
"--warmup_ratio", "0.01",
"--eval_begin_epoch", "8",
"--seed", "1234",
"--do_train",
"--ignore_idx", "0",
"--max_seq", "200",
"--use_prompt",
"--prompt_len", "4",
"--sample_ratio", "1.0",
"--save_path", "ckpt/NER/military"
]
},
{
"name": "RE",
"type": "debugpy",
"request": "launch",
"program": "run.py",
"console": "integratedTerminal",
"cwd": "/data/home/litianle/Mycode/other/Project/HVPNeT",
"env": {
"CUDA_VISIBLE_DEVICES": "0"
},
"args": [
"--dataset_name", "RE",
"--bert_name", "bert-base-uncased",
"--num_epochs", "10",
"--batch_size", "16",
"--lr", "3e-5",
"--warmup_ratio", "0.01",
"--eval_begin_epoch", "3",
"--seed", "1234",
"--do_train",
"--max_seq", "160",
"--use_prompt",
"--prompt_len", "4",
"--sample_ratio"
2 后记
记录一下,免得下一次忘记怎么搞了,谢谢帮我的BB,美丽善良大方,太爱了~