(tbsi) aust-ai@amax:~/TBSI$ python tracking/train.py --script tbsi_track --config vitb_256_tbsi_32x4_4e4_lasher_15ep_in1k --save_dir ./output/vitb_256_tbsi_32x4_4e4_lasher_15ep_in1k --mode multiple --nproc_per_node 4
/home/aust-ai/.conda/envs/tbsi/lib/python3.8/site-packages/torch/distributed/launch.py:181: FutureWarning: The module torch.distributed.launch is deprecated
and will be removed in future. Use torchrun.
Note that --use-env is set by default in torchrun.
If your script expects `--local-rank` argument to be set, please
change it to read from `os.environ['LOCAL_RANK']` instead. See
https://pytorch.org/docs/stable/distributed.html#launch-utility for
further instructions
warnings.warn(
WARNING:torch.distributed.run:
*****************************************
Setting OMP_NUM_THREADS environment variable for each process to be 1 in default, to avoid your system being overloaded, please further tune the variable for optimal performance in your application as needed.
*****************************************
usage: run_training.py [-h] --script SCRIPT --config CONFIG [--cudnn_benchmark CUDNN_BENCHMARK]
[--local_rank LOCAL_RANK] [--save_dir SAVE_DIR] [--seed SEED] [--use_lmdb {0,1}]
[--script_prv SCRIPT_PRV] [--config_prv CONFIG_PRV] [--use_wandb {0,1}]
[--distill {0,1}] [--script_teacher SCRIPT_TEACHER] [--config_teacher CONFIG_TEACHER]
run_training.py: error: unrecognized arguments: --local-rank=0
usage: run_training.py [-h] --script SCRIPT --config CONFIG [--cudnn_benchmark CUDNN_BENCHMARK]
[--local_rank LOCAL_RANK] [--save_dir SAVE_DIR] [--seed SEED] [--use_lmdb {0,1}]
[--script_prv SCRIPT_PRV] [--config_prv CONFIG_PRV] [--use_wandb {0,1}]
[--distill {0,1}] [--script_teacher SCRIPT_TEACHER] [--config_teacher CONFIG_TEACHER]
run_training.py: error: unrecognized arguments: --local-rank=3
usage: run_training.py [-h] --script SCRIPT --config CONFIG [--cudnn_benchmark CUDNN_BENCHMARK]
[--local_rank LOCAL_RANK] [--save_dir SAVE_DIR] [--seed SEED] [--use_lmdb {0,1}]
[--script_prv SCRIPT_PRV] [--config_prv CONFIG_PRV] [--use_wandb {0,1}]
[--distill {0,1}] [--script_teacher SCRIPT_TEACHER] [--config_teacher CONFIG_TEACHER]
run_training.py: error: unrecognized arguments: --local-rank=2
usage: run_training.py [-h] --script SCRIPT --config CONFIG [--cudnn_benchmark CUDNN_BENCHMARK]
[--local_rank LOCAL_RANK] [--save_dir SAVE_DIR] [--seed SEED] [--use_lmdb {0,1}]
[--script_prv SCRIPT_PRV] [--config_prv CONFIG_PRV] [--use_wandb {0,1}]
[--distill {0,1}] [--script_teacher SCRIPT_TEACHER] [--config_teacher CONFIG_TEACHER]
run_training.py: error: unrecognized arguments: --local-rank=1
ERROR:torch.distributed.elastic.multiprocessing.api:failed (exitcode: 2) local_rank: 0 (pid: 3292375) of binary: /home/aust-ai/.conda/envs/tbsi/bin/python
Traceback (most recent call last):
File "/home/aust-ai/.conda/envs/tbsi/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/home/aust-ai/.conda/envs/tbsi/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/aust-ai/.conda/envs/tbsi/lib/python3.8/site-packages/torch/distributed/launch.py", line 196, in <module>
main()
File "/home/aust-ai/.conda/envs/tbsi/lib/python3.8/site-packages/torch/distributed/launch.py", line 192, in main
launch(args)
File "/home/aust-ai/.conda/envs/tbsi/lib/python3.8/site-packages/torch/distributed/launch.py", line 177, in launch
run(args)
File "/home/aust-ai/.conda/envs/tbsi/lib/python3.8/site-packages/torch/distributed/run.py", line 785, in run
elastic_launch(
File "/home/aust-ai/.conda/envs/tbsi/lib/python3.8/site-packages/torch/distributed/launcher/api.py", line 134, in __call__
return launch_agent(self._config, self._entrypoint, list(args))
File "/home/aust-ai/.conda/envs/tbsi/lib/python3.8/site-packages/torch/distributed/launcher/api.py", line 250, in launch_agent
raise ChildFailedError(
torch.distributed.elastic.multiprocessing.errors.ChildFailedError:
============================================================
lib/train/run_training.py FAILED
------------------------------------------------------------
Failures:
[1]:
time : 2025-08-05_17:38:23
host : amax
rank : 1 (local_rank: 1)
exitcode : 2 (pid: 3292376)
error_file: <N/A>
traceback : To enable traceback see: https://pytorch.org/docs/stable/elastic/errors.html
[2]:
time : 2025-08-05_17:38:23
host : amax
rank : 2 (local_rank: 2)
exitcode : 2 (pid: 3292377)
error_file: <N/A>
traceback : To enable traceback see: https://pytorch.org/docs/stable/elastic/errors.html
[3]:
time : 2025-08-05_17:38:23
host : amax
rank : 3 (local_rank: 3)
exitcode : 2 (pid: 3292378)
error_file: <N/A>
traceback : To enable traceback see: https://pytorch.org/docs/stable/elastic/errors.html
------------------------------------------------------------
Root Cause (first observed failure):
[0]:
time : 2025-08-05_17:38:23
host : amax
rank : 0 (local_rank: 0)
exitcode : 2 (pid: 3292375)
error_file: <N/A>
traceback : To enable traceback see: https://pytorch.org/docs/stable/elastic/errors.html
============================================================
(tbsi) aust-ai@amax:~/TBSI$
在复现TBSI项目的时候,一开始提示PyTorch版本和服务器的4090不兼容,然后pytorch升级到2.0.1后,就开始这样报错了,用改之后还是一直报错,有同志帮忙解决一下吗