Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishekkrthakur committed Oct 5, 2023
1 parent 69eceb5 commit b3890b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/autotrain/cli/run_llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ def __init__(self, args):
print(f"Bot: {tgi.chat(prompt)}")

cuda_available = torch.cuda.is_available()
mps_available = torch.mps.is_available()
mps_available = torch.backends.mps.is_available()

if not cuda_available and not mps_available:
raise ValueError("No GPU/MPS device found. LLM training requires an accelerator")
Expand Down

0 comments on commit b3890b8

Please sign in to comment.