Fill-Mask
Transformers
PyTorch
Safetensors
English
nomic_bert
custom_code

make input_ids optional

#8
Files changed (1) hide show
  1. modeling_hf_nomic_bert.py +1 -1
modeling_hf_nomic_bert.py CHANGED
@@ -1678,7 +1678,7 @@ class NomicBertModel(NomicBertPreTrainedModel):
1678
 
1679
  def forward(
1680
  self,
1681
- input_ids,
1682
  attention_mask=None,
1683
  position_ids=None,
1684
  token_type_ids=None,
 
1678
 
1679
  def forward(
1680
  self,
1681
+ input_ids=None,
1682
  attention_mask=None,
1683
  position_ids=None,
1684
  token_type_ids=None,