ekolodin commited on
Commit
cea8509
1 Parent(s): 61e9f52

Update modeling_gigarembed.py

Browse files
Files changed (1) hide show
  1. modeling_gigarembed.py +1 -1
modeling_gigarembed.py CHANGED
@@ -360,7 +360,7 @@ class GigarEmbedModel(PreTrainedModel):
360
  # Mask out the instruction tokens for mean-pooling
361
  attention_mask[:, :instruction_lens] = 0
362
  features: GigarEmbedFeatures = {
363
- 'input_ids': batch_dict.get['input_ids'],
364
  'attention_mask': batch_dict['attention_mask'],
365
  'pool_mask': attention_mask,
366
  }
 
360
  # Mask out the instruction tokens for mean-pooling
361
  attention_mask[:, :instruction_lens] = 0
362
  features: GigarEmbedFeatures = {
363
+ 'input_ids': batch_dict['input_ids'],
364
  'attention_mask': batch_dict['attention_mask'],
365
  'pool_mask': attention_mask,
366
  }