Charlie81 commited on
Commit
447000e
·
1 Parent(s): bfa85e8

more debug info

Browse files
Files changed (1) hide show
  1. scripts/eval.py +4 -0
scripts/eval.py CHANGED
@@ -378,6 +378,10 @@ def run_evaluation(args) -> Dict[str, Any]:
378
  # Debug information
379
  print("Type of model being passed:", type(model))
380
  print("Model config:", getattr(model, "config", None))
 
 
 
 
381
 
382
  # Ensure model is properly initialized
383
  if hasattr(model, '_model') and model._model is not None:
 
378
  # Debug information
379
  print("Type of model being passed:", type(model))
380
  print("Model config:", getattr(model, "config", None))
381
+ # Add this before running the evaluation
382
+ logger.info(f"Config type: {type(config)}")
383
+ logger.info(f"Config model_type: {config.model_type}")
384
+ logger.info(f"Is config a dataclass? {hasattr(config, '__dataclass_fields__')}")
385
 
386
  # Ensure model is properly initialized
387
  if hasattr(model, '_model') and model._model is not None: