Skip to content
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

boost运行报错 #12

Open
IKOL111 opened this issue Mar 29, 2023 · 1 comment
Open

boost运行报错 #12

IKOL111 opened this issue Mar 29, 2023 · 1 comment

Comments

@IKOL111
Copy link

IKOL111 commented Mar 29, 2023

您好,我更换了数据集后,train可以正常运行,但在使用boost时会产生如下报错:

RuntimeError: Expected to have finished reduction in the prior iteration before starting a new one. This error indicates
that your module has parameters that were not used in producing loss. You can enable unused parameter detection by passing the keyword argument find_unused_parameters=True to torch.nn.parallel.DistributedDataParallel, and by
making sure all forward function outputs participate in calculating loss.
If you already have done the above, then the distributed data parallel module wasn't able to locate the output tensors i
n the return value of your module's forward function. Please include the loss function and the structure of the return
value of forward of your module when reporting this issue (e.g. list, dict, iterable).
Parameter indices which did not receive grad for rank 0: 118 119 120 121 122 123 124 125
In addition, you can set the environment variable TORCH_DISTRIBUTED_DEBUG to either INFO or DETAIL to print out informa
tion about which particular parameters did not receive gradient on this rank as part of this error
ERROR:torch.distributed.elastic.multiprocessing.api:failed (exitcode: 1) local_rank: 0 (pid: 49172) of binary: C:\Softwa
res\anaconda\envs\PyTorch1.10\python.exe

我参考了您在之前回复中说的可能未产生合格的伪标签的问题,记录了伪标签的值,训练100轮后能够产生最大值大于0.9的概率值(修改了loss中的参数,alpha=0.9,gamma=0.2),但仍然报错,请问一下您是什么原因,谢谢!

@Yunfan-Li
Copy link
Owner

可能是个别类别没有选出伪标签,导致CCH没有被优化到,可以查看一下当前batch下各个类别是否都有伪标签

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants