Upload NomicBertForPreTraining
Browse files
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
|
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
|