Update modeling_diva.py
Browse files- 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 |
-
|
143 |
)
|
144 |
hf_hub_download(
|
145 |
repo_id=pretrained_model_name_or_path,
|
146 |
filename="config.json",
|
147 |
token=kwargs.get("token", None),
|
148 |
-
|
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"
|