Sifal commited on
Commit
32552bc
·
verified ·
1 Parent(s): d5be73c

Update automodel.py

Browse files
Files changed (1) hide show
  1. automodel.py +2 -2
automodel.py CHANGED
@@ -43,7 +43,7 @@ class MosaicBertForEmbeddingGeneration(BertPreTrainedModel):
43
 
44
  # Download the model file
45
  archive_file = hf_hub_download(
46
- repo_id=pretrained_model_name_or_path,
47
  filename="model.safetensors",
48
  **kwargs
49
  )
@@ -122,7 +122,7 @@ class ClinicalMosaicForSequenceClassification(BertPreTrainedModel):
122
 
123
  # Download the model file
124
  archive_file = hf_hub_download(
125
- repo_id=pretrained_model_name_or_path,
126
  filename="model.safetensors",
127
  **kwargs
128
  )
 
43
 
44
  # Download the model file
45
  archive_file = hf_hub_download(
46
+ repo_id=pretrained_checkpoint,
47
  filename="model.safetensors",
48
  **kwargs
49
  )
 
122
 
123
  # Download the model file
124
  archive_file = hf_hub_download(
125
+ repo_id=pretrained_checkpoint,
126
  filename="model.safetensors",
127
  **kwargs
128
  )