Commit
·
1ddd8c6
1
Parent(s):
f11b057
retries
Browse files- refresh.py +5 -1
refresh.py
CHANGED
|
@@ -230,7 +230,11 @@ def get_mteb_data(tasks=["Clustering"], langs=[], datasets=[], fillna=True, add_
|
|
| 230 |
for model in pbar:
|
| 231 |
if model.modelId in MODELS_TO_SKIP: continue
|
| 232 |
pbar.set_description(f"Fetching {model.modelId!r} metadata")
|
| 233 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 234 |
meta = metadata_load(readme_path)
|
| 235 |
MODEL_INFOS[model.modelId] = {
|
| 236 |
"metadata": meta
|
|
|
|
| 230 |
for model in pbar:
|
| 231 |
if model.modelId in MODELS_TO_SKIP: continue
|
| 232 |
pbar.set_description(f"Fetching {model.modelId!r} metadata")
|
| 233 |
+
try:
|
| 234 |
+
readme_path = hf_hub_download(model.modelId, filename="README.md", etag_timeout=30)
|
| 235 |
+
except Exception:
|
| 236 |
+
print(f"ERROR: Could not fetch metadata for {model.modelId}, trying again")
|
| 237 |
+
readme_path = hf_hub_download(model.modelId, filename="README.md", etag_timeout=30)
|
| 238 |
meta = metadata_load(readme_path)
|
| 239 |
MODEL_INFOS[model.modelId] = {
|
| 240 |
"metadata": meta
|