Update modeling_gigarembed.py
Browse files- 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
|
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 |
}
|