[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
eff55fb8db
commit
56c95c69fb
1 changed files with 1 additions and 0 deletions
|
|
@ -1805,6 +1805,7 @@ class LlamaCppBackend:
|
|||
env["CUDA_VISIBLE_DEVICES"] = pinned
|
||||
try:
|
||||
import torch as _torch
|
||||
|
||||
if getattr(_torch.version, "hip", None) is not None:
|
||||
env["HIP_VISIBLE_DEVICES"] = pinned
|
||||
env["ROCR_VISIBLE_DEVICES"] = pinned
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue