BART-ender commited on
Commit
e773dbc
·
verified ·
1 Parent(s): e518f94

debug(core): add model structure logging

Browse files
Files changed (1) hide show
  1. app/core/model_support.py +6 -0
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.",