Fill-Mask
Transformers
PyTorch
Safetensors
English
nomic_bert
custom_code
zpn commited on
Commit
b476a30
1 Parent(s): 2c2561b

Update modeling_hf_nomic_bert.py

Browse files
Files changed (1) hide show
  1. modeling_hf_nomic_bert.py +1 -1
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, safe_serialization=kwargs.get("safe_serialization", False))
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,