Skip to content

Commit

Permalink
Remove the Using GPU/CPU noisy message
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Sep 12, 2024
1 parent 97e7781 commit 4460c98
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions r2ai/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,7 @@ def models():
def gpulayers(ai):
if "llm.gpu" in ai.env:
if ai.env["llm.gpu"] == "true":
print("[r2ai] Using GPU")
return -1
print("[r2ai] Using CPU")
return 0

def get_hf_llm(ai, repo_id, debug_mode, context_window):
Expand Down

0 comments on commit 4460c98

Please sign in to comment.