Spaces:
Sleeping
Sleeping
debug(core): add model structure logging
Browse files
app/core/model_support.py
CHANGED
|
@@ -54,6 +54,12 @@ def describe_model_support(model: Any) -> ModelSupport:
|
|
| 54 |
break
|
| 55 |
|
| 56 |
if not layers:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
return ModelSupport(
|
| 58 |
supports_attribution=False,
|
| 59 |
reason="Unsupported model structure: unable to locate decoder layers.",
|
|
|
|
| 54 |
break
|
| 55 |
|
| 56 |
if not layers:
|
| 57 |
+
# Diagnostic logging for Hugging Face Space
|
| 58 |
+
print(f"DEBUG: Model type: {type(model)}")
|
| 59 |
+
print(f"DEBUG: Model top-level attributes: {dir(model)}")
|
| 60 |
+
if hasattr(model, "model"):
|
| 61 |
+
print(f"DEBUG: model.model attributes: {dir(model.model)}")
|
| 62 |
+
|
| 63 |
return ModelSupport(
|
| 64 |
supports_attribution=False,
|
| 65 |
reason="Unsupported model structure: unable to locate decoder layers.",
|