explictly del df to fix oom
Browse files- utils/swe_bench.py +1 -0
utils/swe_bench.py
CHANGED
|
@@ -176,6 +176,7 @@ def agg_stats(df):
|
|
| 176 |
def get_resolved_stats_from_filepath(filepath):
|
| 177 |
df = load_df_from_selected_filepaths(filepath)
|
| 178 |
stats = agg_stats(df)
|
|
|
|
| 179 |
if not len(stats):
|
| 180 |
return {
|
| 181 |
'success_rate': None,
|
|
|
|
| 176 |
def get_resolved_stats_from_filepath(filepath):
|
| 177 |
df = load_df_from_selected_filepaths(filepath)
|
| 178 |
stats = agg_stats(df)
|
| 179 |
+
del df
|
| 180 |
if not len(stats):
|
| 181 |
return {
|
| 182 |
'success_rate': None,
|