Skip to content

Commit

Permalink
update serv
Browse files Browse the repository at this point in the history
  • Loading branch information
valentincuzin committed Jan 20, 2025
1 parent 35cb2e1 commit bc443af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/LLM/ServerVideoLVLM.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ def process_video():
print('error mem cuda, going to free one model of ollama')
ollama_model = _execute_ollama_ps()
_execute_ollama_stop(ollama_model)
ollama_model = _execute_ollama_ps()

torch.cuda.empty_cache()
with torch.no_grad():
output = model.generate(
input_ids,
Expand Down

0 comments on commit bc443af

Please sign in to comment.