ammarnasr commited on
Commit
1730f32
1 Parent(s): e9fcc04

Upload T5MIMOForConditionalGeneration

Browse files
Files changed (2) hide show
  1. model.safetensors +2 -2
  2. modeling_t5mimo.py +3 -3
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f9d97da94a794f0b0aad1566b9e13205267ea4b3b70ae8c6cd147e6fe6e651cb
3
- size 33588312
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d117251674a519aec18caa013c1f8afdcb2d9b0c30432fbb38083b9d9002d171
3
+ size 33649068
modeling_t5mimo.py CHANGED
@@ -1325,7 +1325,7 @@ class T5MIMOForConditionalGeneration(T5PreTrainedModel):
1325
  self.decoder = T5Stack(decoder_config, self.shared)
1326
 
1327
 
1328
- # self.conv_block = MultivariateConvBlock(config)
1329
  self.lm_head = nn.Linear(config.d_model, config.vocab_size, bias=False)
1330
 
1331
  # Initialize weights and apply final processing
@@ -1518,8 +1518,8 @@ class T5MIMOForConditionalGeneration(T5PreTrainedModel):
1518
  sequence_output = decoder_outputs[0]
1519
 
1520
 
1521
- # if use_conv:
1522
- # sequence_output = self.conv_block(sequence_output)
1523
 
1524
  # Set device for model parallelism
1525
  if self.model_parallel:
 
1325
  self.decoder = T5Stack(decoder_config, self.shared)
1326
 
1327
 
1328
+ self.conv_block = MultivariateConvBlock(config)
1329
  self.lm_head = nn.Linear(config.d_model, config.vocab_size, bias=False)
1330
 
1331
  # Initialize weights and apply final processing
 
1518
  sequence_output = decoder_outputs[0]
1519
 
1520
 
1521
+ if use_conv:
1522
+ sequence_output = self.conv_block(sequence_output)
1523
 
1524
  # Set device for model parallelism
1525
  if self.model_parallel: