当前位置:网站首页>[fairseq] error: typeerror:_ broadcast_ coalesced(): incompatible function arguments
[fairseq] error: typeerror:_ broadcast_ coalesced(): incompatible function arguments
2022-07-03 04:14:00 【Muasci】
Preface
I copied the model state_dict Method , Specifically, it adds dynamic_mask( Dictionary type , Inside is tensor),allocated_neuron_num( integer ).
def state_dict(self, destination=None, prefix='', keep_vars=False):
state_dict = super().state_dict(destination, prefix, keep_vars)
state_dict['model.dynamic_mask'] = gloVar.dynamic_mask
state_dict['model.allocated_neuron_num'] = gloVar.allocated_neuron_num
return state_dict
The result is wrong :
File "/data3/syxu/sparsenmt_exp/sparsenmt/fairseq/fairseq/models/distributed_fairseq_model.py", line 58, in DistributedFairseqModel
wrapped_model = DistributedDataParallel(
File "/data3/syxu/anaconda3/envs/torch18/lib/python3.8/site-packages/torch/nn/parallel/distributed.py", line 580, in __init__
self._sync_params_and_buffers(authoritative_rank=0)
File "/data3/syxu/anaconda3/envs/torch18/lib/python3.8/site-packages/torch/nn/parallel/distributed.py", line 597, in _sync_params_and_buffers
self._distributed_broadcast_coalesced(
File "/data3/syxu/anaconda3/envs/torch18/lib/python3.8/site-packages/torch/nn/parallel/distributed.py", line 1334, in _distributed_broadcast_coalesced
dist._broadcast_coalesced(
TypeError: _broadcast_coalesced(): incompatible function arguments. The following argument types are supported:
1. (process_group: torch._C._distributed_c10d.ProcessGroup, tensors: List[at::Tensor], buffer_size: int, src: int = 0) -> None
solve
Do not use the DistributedDataParallel. according to file , This is in fairseq It is embodied in –ddp-backend Parameters .
When reporting a mistake –ddp-backend=pytorch_ddp
( Default ), Change it to legacy_ddp
、no_c10d
No more errors will be reported .
Reference resources
https://fairseq.readthedocs.io/en/latest/command_line_tools.html
https://blog.csdn.net/j___t/article/details/104368597
边栏推荐
- 2022 Shandong Province safety officer C certificate examination questions and Shandong Province safety officer C certificate simulation examination question bank
- MySQL field userid comma separated save by userid query
- [brush questions] connected with rainwater (one dimension)
- 【毕业季·进击的技术er】职场人的自白
- Half of 2022 is over, so we must hurry up
- Database management tool, querious direct download
- 重绘和回流
- 第十届中国云计算大会·中国站:展望未来十年科技走向
- 国产PC系统完成闭环,替代美国软硬件体系的时刻已经到来
- [home push IMessage] software installation virtual host rental tothebuddy delay
猜你喜欢
2022-07-02:以下go语言代码输出什么?A:编译错误;B:Panic;C:NaN。 package main import “fmt“ func main() { var a =
Causal AI, a new paradigm for industrial upgrading of the next generation of credible AI?
『期末复习』16/32位微处理器(8086)基本寄存器
[brush questions] find the number pair distance with the smallest K
Appium automated testing framework
Which Bluetooth headset is good about 400? Four Bluetooth headsets with strong noise reduction are recommended
Esp32 series (3): GPIO learning (take simple GPIO input and output, ADC, DAC as examples)
Supervised pre training! Another exploration of text generation!
CVPR 2022 | Dalian Technology propose un cadre d'éclairage auto - étalonné pour l'amélioration de l'image de faible luminosité de la scène réelle
Arduino application development - LCD display GIF dynamic diagram
随机推荐
Cnopendata China Customs Statistics
Arduino application development - LCD display GIF dynamic diagram
Mila、渥太华大学 | 用SE(3)不变去噪距离匹配进行分子几何预训练
xrandr修改分辨率與刷新率
Database management tool, querious direct download
[set theory] set concept and relationship (set represents | number set | set relationship | contains | equality | set relationship property)
Square root of X
【刷题篇】多数元素(超级水王问题)
Xrandr modifier la résolution et le taux de rafraîchissement
eth入门之简介
When writing a web project, SmartUpload is used for file upload and new string () is used for transcoding, but in the database, there will still be random codes similar to poker
Is pytorch open source?
[Blue Bridge Road -- bug free code] interpretation of some codes of matrix keyboard
SAP ui5 application development tutorial 105 - detailed introduction to the linkage effect implementation of SAP ui5 master detail layout mode
nodejs基础:浅聊url和querystring模块
Basic types of data in TS
js/ts底层实现双击事件
sklearn数据预处理
Mila, University of Ottawa | molecular geometry pre training with Se (3) invariant denoising distance matching
Taking two column waterfall flow as an example, how should we build an array of each column