Update delete_model_passthrough.py

This commit is contained in:
Isi
2025-09-05 19:21:33 +01:00
committed by GitHub
parent e974464aee
commit f743a03bc9
+1 -2
View File
@@ -349,8 +349,7 @@ class DeleteModelPassthroughLight:
print(f"Removed target model from tracking")
except Exception as e:
print(f"Error removing from tracking: {e}")
# ✅ CRITICAL FIX: Only free the specific model, not all models!
# Don't use free_memory() with huge values as it will delete other models
# Instead, manually free only our target model