Commit
·
6928bb7
1
Parent(s):
228ade5
Add print statements for gated model debugging
Browse files
backend/app/services/models.py
CHANGED
@@ -531,6 +531,8 @@ class ModelService(HuggingFaceService):
|
|
531 |
logger.error(LogFormatter.error("Failed to check existing submissions", e))
|
532 |
raise
|
533 |
|
|
|
|
|
534 |
# Check that model on hub and valid
|
535 |
valid, error, model_config = await self.validator.is_model_on_hub(
|
536 |
model_data["model_id"],
|
|
|
531 |
logger.error(LogFormatter.error("Failed to check existing submissions", e))
|
532 |
raise
|
533 |
|
534 |
+
print(model_info)
|
535 |
+
|
536 |
# Check that model on hub and valid
|
537 |
valid, error, model_config = await self.validator.is_model_on_hub(
|
538 |
model_data["model_id"],
|
backend/app/utils/model_validation.py
CHANGED
@@ -269,7 +269,8 @@ class ModelValidator:
|
|
269 |
f"The tokenizer is not available in an official Transformers release: {e}",
|
270 |
None,
|
271 |
)
|
272 |
-
except Exception:
|
|
|
273 |
return (
|
274 |
False,
|
275 |
"The tokenizer cannot be loaded. Ensure the tokenizer class is part of a stable Transformers release and correctly configured.",
|
|
|
269 |
f"The tokenizer is not available in an official Transformers release: {e}",
|
270 |
None,
|
271 |
)
|
272 |
+
except Exception as e:
|
273 |
+
print(e)
|
274 |
return (
|
275 |
False,
|
276 |
"The tokenizer cannot be loaded. Ensure the tokenizer class is part of a stable Transformers release and correctly configured.",
|