Fix ctransformers threads auto-detection (#3688)
This commit is contained in:
parent
0bcecaa216
commit
db42b365c9
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ class CtransformersModel:
|
||||||
|
|
||||||
config = AutoConfig.from_pretrained(
|
config = AutoConfig.from_pretrained(
|
||||||
str(path),
|
str(path),
|
||||||
threads=shared.args.threads,
|
threads=shared.args.threads if shared.args.threads != 0 else -1,
|
||||||
gpu_layers=shared.args.n_gpu_layers,
|
gpu_layers=shared.args.n_gpu_layers,
|
||||||
batch_size=shared.args.n_batch,
|
batch_size=shared.args.n_batch,
|
||||||
context_length=shared.args.n_ctx,
|
context_length=shared.args.n_ctx,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue