Spaces:
Paused
Paused
Update llm.py
Browse files
llm.py
CHANGED
|
@@ -23,7 +23,6 @@ if torch.cuda.is_available():
|
|
| 23 |
print("GPU name:", torch.cuda.get_device_name(0))
|
| 24 |
print("Memory allocated:", torch.cuda.memory_allocated() / 1e9, "GB")
|
| 25 |
|
| 26 |
-
print("Device map:", model.hf_device_map)
|
| 27 |
# ✅ SYNC function (runs in thread)
|
| 28 |
def execute_llm(model, processor, image, prompt: str):
|
| 29 |
print("execute llm")
|
|
|
|
| 23 |
print("GPU name:", torch.cuda.get_device_name(0))
|
| 24 |
print("Memory allocated:", torch.cuda.memory_allocated() / 1e9, "GB")
|
| 25 |
|
|
|
|
| 26 |
# ✅ SYNC function (runs in thread)
|
| 27 |
def execute_llm(model, processor, image, prompt: str):
|
| 28 |
print("execute llm")
|