mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-10-30 06:00:15 +01:00
Fix ctransformers threads auto-detection (#3688)
This commit is contained in:
parent
0bcecaa216
commit
db42b365c9
@ -15,7 +15,7 @@ class CtransformersModel:
|
||||
|
||||
config = AutoConfig.from_pretrained(
|
||||
str(path),
|
||||
threads=shared.args.threads,
|
||||
threads=shared.args.threads if shared.args.threads != 0 else -1,
|
||||
gpu_layers=shared.args.n_gpu_layers,
|
||||
batch_size=shared.args.n_batch,
|
||||
context_length=shared.args.n_ctx,
|
||||
|
Loading…
Reference in New Issue
Block a user