Fill-Mask
Transformers
PyTorch
Safetensors
English
nomic_bert
custom_code
zpn commited on
Commit
c5af2b4
1 Parent(s): 3a75eff

Upload NomicBertForPreTraining

Browse files
Files changed (1) hide show
  1. modeling_hf_nomic_bert.py +1 -1
modeling_hf_nomic_bert.py CHANGED
@@ -318,7 +318,7 @@ class NomicBertPreTrainedModel(PreTrainedModel):
318
  remove_cls = cls != NomicBertForPreTraining
319
  remove_bert_prefix = cls != NomicBertForPreTraining
320
  ignore_mismatched_shapes = kwargs.pop("ignore_mismatched_sizes", False)
321
- model = cls(config, *inputs, **kwargs)
322
  # TODO: fix this
323
  # Assuming we know what we're doing when loading from disk
324
  # Prob a bad assumption but i'm tired and want to train this asap
 
318
  remove_cls = cls != NomicBertForPreTraining
319
  remove_bert_prefix = cls != NomicBertForPreTraining
320
  ignore_mismatched_shapes = kwargs.pop("ignore_mismatched_sizes", False)
321
+ model = cls(config, *inputs)
322
  # TODO: fix this
323
  # Assuming we know what we're doing when loading from disk
324
  # Prob a bad assumption but i'm tired and want to train this asap