Update modeling_hf_nomic_bert.py
Browse files
modeling_hf_nomic_bert.py
CHANGED
@@ -353,7 +353,7 @@ class NomicBertPreTrainedModel(PreTrainedModel):
|
|
353 |
load_return = model.load_state_dict(state_dict, strict=False)
|
354 |
else:
|
355 |
# TODO: can probably check config class and see if we need to remap from a bert model
|
356 |
-
state_dict = state_dict_from_pretrained(model_name
|
357 |
state_dict = remap_bert_state_dict(
|
358 |
state_dict,
|
359 |
config,
|
|
|
353 |
load_return = model.load_state_dict(state_dict, strict=False)
|
354 |
else:
|
355 |
# TODO: can probably check config class and see if we need to remap from a bert model
|
356 |
+
state_dict = state_dict_from_pretrained(model_name)
|
357 |
state_dict = remap_bert_state_dict(
|
358 |
state_dict,
|
359 |
config,
|