Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Fix UnboundLocalError: local variable 'results' referenced before assignment (#16)
Browse files- Fix UnboundLocalError: local variable 'results' referenced before assignment (c740b67cc5858c3d0063e59bd464e21e120630b6)
Co-authored-by: Albert Villanova del Moral <albertvillanova@users.noreply.huggingface.co>
src/backend/run_eval_suite_lighteval.py
CHANGED
|
@@ -100,5 +100,6 @@ def run_evaluation(
|
|
| 100 |
|
| 101 |
except Exception: # if eval failed, we force a cleanup
|
| 102 |
pipeline.model.cleanup()
|
|
|
|
| 103 |
|
| 104 |
return results
|
|
|
|
| 100 |
|
| 101 |
except Exception: # if eval failed, we force a cleanup
|
| 102 |
pipeline.model.cleanup()
|
| 103 |
+
raise
|
| 104 |
|
| 105 |
return results
|