Skip to content

Commit

Permalink
restore main_gpu parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
YellowRoseCx committed Aug 12, 2023
1 parent 4a042f3 commit cd61aa0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions koboldcpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,11 @@ def load_model(model_filename):
inputs.clblast_info = clblastids
inputs.cublas_info = 0
if (args.usecublas and "0" in args.usecublas):
os.environ["CUDA_VISIBLE_DEVICES"] = "0"
inputs.cublas_info = 0
elif (args.usecublas and "1" in args.usecublas):
os.environ["CUDA_VISIBLE_DEVICES"] = "1"
inputs.cublas_info = 1
elif (args.usecublas and "2" in args.usecublas):
os.environ["CUDA_VISIBLE_DEVICES"] = "2"
inputs.cublas_info = 2

for n in range(tensor_split_max):
if args.tensor_split and n < len(args.tensor_split):
Expand Down

0 comments on commit cd61aa0

Please sign in to comment.