oweller2
commited on
Commit
•
a9730e6
1
Parent(s):
a00859f
update model
Browse files- modeling_flexbert.py +1 -1
- pytorch_model.bin +1 -1
modeling_flexbert.py
CHANGED
@@ -1642,7 +1642,7 @@ class FlexBertForCausalLM(FlexBertPreTrainedModel):
|
|
1642 |
if self.unpad_embeddings and (indices is None and cu_seqlens is None and max_seqlen is None):
|
1643 |
batch_size, seq_len = input_ids.shape[:2]
|
1644 |
if attention_mask is None:
|
1645 |
-
# create all ones
|
1646 |
attention_mask = torch.ones_like(input_ids)
|
1647 |
input_ids, indices, cu_seqlens, max_seqlen, position_ids, labels = self.unpad_inputs(
|
1648 |
input_ids, attention_mask, position_ids, labels
|
|
|
1642 |
if self.unpad_embeddings and (indices is None and cu_seqlens is None and max_seqlen is None):
|
1643 |
batch_size, seq_len = input_ids.shape[:2]
|
1644 |
if attention_mask is None:
|
1645 |
+
# create all ones, except for padding (TODO?)
|
1646 |
attention_mask = torch.ones_like(input_ids)
|
1647 |
input_ids, indices, cu_seqlens, max_seqlen, position_ids, labels = self.unpad_inputs(
|
1648 |
input_ids, attention_mask, position_ids, labels
|
pytorch_model.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 598685038
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7863cc4c58494c661ffd3c77af90796f5caa8217917c2f6e7c99cc28d65b58c2
|
3 |
size 598685038
|