Feature Extraction
Transformers
Safetensors
diva
custom_code
WillHeld commited on
Commit
ef73e7d
1 Parent(s): 79fec82

Update modeling_diva.py

Browse files
Files changed (1) hide show
  1. modeling_diva.py +2 -2
modeling_diva.py CHANGED
@@ -139,13 +139,13 @@ class DiVAModel(PreTrainedModel):
139
  repo_id=pretrained_model_name_or_path,
140
  filename="model.safetensors",
141
  token=kwargs.get("token", None),
142
- local_dir=os.path.dirname(__file__),
143
  )
144
  hf_hub_download(
145
  repo_id=pretrained_model_name_or_path,
146
  filename="config.json",
147
  token=kwargs.get("token", None),
148
- local_dir=os.path.dirname(__file__),
149
  )
150
  via_path = os.path.dirname(__file__) + "/model.safetensors"
151
  config_path = os.path.dirname(__file__) + "/config.json"
 
139
  repo_id=pretrained_model_name_or_path,
140
  filename="model.safetensors",
141
  token=kwargs.get("token", None),
142
+ cache_dir=os.path.dirname(__file__),
143
  )
144
  hf_hub_download(
145
  repo_id=pretrained_model_name_or_path,
146
  filename="config.json",
147
  token=kwargs.get("token", None),
148
+ cache_dir=os.path.dirname(__file__),
149
  )
150
  via_path = os.path.dirname(__file__) + "/model.safetensors"
151
  config_path = os.path.dirname(__file__) + "/config.json"