Upload folder using huggingface_hub
Browse files- handler.py +1 -0
handler.py
CHANGED
|
@@ -43,6 +43,7 @@ class EndpointHandler:
|
|
| 43 |
print("loading model")
|
| 44 |
|
| 45 |
# clear existing model if needed
|
|
|
|
| 46 |
torch.cuda.empty_cache()
|
| 47 |
|
| 48 |
base_model_path = "meta-llama/Llama-3.2-11B-Vision-Instruct"
|
|
|
|
| 43 |
print("loading model")
|
| 44 |
|
| 45 |
# clear existing model if needed
|
| 46 |
+
del self.model
|
| 47 |
torch.cuda.empty_cache()
|
| 48 |
|
| 49 |
base_model_path = "meta-llama/Llama-3.2-11B-Vision-Instruct"
|