CS/Python
RuntimeError: Expected to mark a variable ready only once.
RuntimeError: Expected to mark a variable ready only once. This error is caused by one of the following reasons: 1) Use of a module parameter outside the `forward` function. Please make sure model parameters are not shared across multiple concurrent forward-backward passes. or try to use _set_static_graph() as a workaround if this module graph does not change during training loop.2) Reused param..
ValueError: Default process group has not been initialized, please make sure to call init_process_group.
ErrorEnvironmentUbuntu 20.04.6 LTSCUDA 11.8Python 3.10Occurred when I tried to reimplement VideoChat2 on the server; I modified the execution script cuz I was trying to launch the code on just one machine with 2 GPUs(or a single GPU).the modified code is as follows:python tasks/train.py \ $(dirname $0)/config.py \ output_dir ${OUTPUT_DIR}The original code is like:srun -p ${PARTITION} \ ..