Comments (5)
Exception info:
{
"exc_type": "RuntimeError",
"exc_value": "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 \nmaking sure all forward
function outputs participate in calculating loss. \nIf you already have done the above, then the distributed data parallel module wasn't able to locate the output tensors in 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).\nParameter indices which did not receive grad for rank 1: 390 391 412 413 414 415 416\n In addition, you can set the environment variable TORCH_DISTRIBUTED_DEBUG to either INFO or DETAIL to print out information about which particular parameters did not receive gradient on this rank as part of this error",
"exc_time": "2024-04-06-16:45:07",
"exc_global_rank": 1,
"exc_local_rank": 1
}
Start to stop these pids:[127129, 127430, 127650], please wait several seconds.
Traceback (most recent call last):
File "/data/tmp/EfficientSAM/mine/train.py", line 218, in
trainer.run(num_train_batch_per_epoch=-1, num_eval_batch_per_dl=-1, num_eval_sanity_batch=1)
File "/data/miniconda3/envs/efficientsam/lib/python3.9/site-packages/fastNLP/core/controllers/trainer.py", line 711, in run
raise e
File "/data/miniconda3/envs/efficientsam/lib/python3.9/site-packages/fastNLP/core/controllers/trainer.py", line 687, in run
self.train_batch_loop.run(self, self.dataloader)
File "/data/miniconda3/envs/efficientsam/lib/python3.9/site-packages/fastNLP/core/controllers/loops/train_batch_loop.py", line 64, in run
raise e
File "/data/miniconda3/envs/efficientsam/lib/python3.9/site-packages/fastNLP/core/controllers/loops/train_batch_loop.py", line 55, in run
self.batch_step_fn(trainer, batch)
File "/data/miniconda3/envs/efficientsam/lib/python3.9/site-packages/fastNLP/core/controllers/loops/train_batch_loop.py", line 76, in batch_step_fn
outputs = trainer.train_step(batch)
File "/data/miniconda3/envs/efficientsam/lib/python3.9/site-packages/fastNLP/core/controllers/trainer.py", line 1303, in train_step
outputs = self.driver.model_call(batch, self._train_step, self._train_step_signature_fn)
File "/data/miniconda3/envs/efficientsam/lib/python3.9/site-packages/fastNLP/core/drivers/torch_driver/ddp.py", line 512, in model_call
return self.model(batch, fastnlp_fn=fn, fastnlp_signature_fn=signature_fn,
File "/data/miniconda3/envs/efficientsam/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
return forward_call(*input, **kwargs)
File "/data/miniconda3/envs/efficientsam/lib/python3.9/site-packages/torch/nn/parallel/distributed.py", line 994, in forward
if torch.is_grad_enabled() and self.reducer._rebuild_buckets():
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 in 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 1: 390 391 412 413 414 415 416
In addition, you can set the environment variable TORCH_DISTRIBUTED_DEBUG to either INFO or DETAIL to print out information about which particular parameters did not receive gradient on this rank as part of this error
已杀死
怎么解决?
from fastnlp.
from fastnlp.
您好 中文文档的链接失效 什么时候能够恢复一下
from fastnlp.
您好 中文文档的链接失效 什么时候能够恢复一下
请问你解决了吗
from fastnlp.
您好中文文档的链接什么时候能够恢复一下
请问你解决了吗
你好 没有
from fastnlp.
Related Issues (20)
- [疑问][建议]话说为什么DataSet不支持List[Dict]的data?建议像huggingface 的Dataset那样支持一下? HOT 1
- [文档疑似错误] HOT 1
- ImportError: cannot import name 'Tester' from 'fastNLP' HOT 1
- 文档疑似错误?
- 关于进度条 HOT 1
- debug时 import fastNLP语句会报错 HOT 3
- 版本 1.0.1 No module named 'fastNLP.embeddings.embedding' HOT 1
- 版本0.6.0以后fastNLP.core.const包被永久移除了? HOT 3
- Import FastNLP fails for versions 1.0.1 HOT 2
- How to use tokenizers with DataSet and DataBundle? HOT 1
- 期待fastnlp cpp 版本
- ImportError: cannot import name 'DataSetIter' from 'fastNLP' 似乎无法调用DataSetIter和BatchIter,其他模块都可以正常调用 HOT 1
- 加载模型报错ValueError: prefetch_factor option could only be specified in multiprocessing.let num_workers > 0 to enable multiprocessing, otherwise set prefetch_factor to None. HOT 2
- 请问能解释一下SpanFPreRecMetric中的f,pre,rec是怎么计算的嘛 HOT 2
- ModuleNotFoundError: No module named 'fastNLP.core.dataset.dataset' HOT 1
- 文档为什么访问不了了? HOT 4
- ImportError
- 你好,您的代码还维护吗,cn-char-fastnlp-100d这个文件下载不了,可以重新提供一个下载地址嘛 HOT 3
- 多卡分布式训练
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastnlp.