mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-04-20 22:13:43 +00:00
Change the default ctx-size to 0 (auto) for llama.cpp
This commit is contained in:
parent
9f657d3976
commit
4ae2bd86e2
4 changed files with 8 additions and 3 deletions
|
|
@ -38,6 +38,9 @@ def load_model(model_name, loader=None):
|
|||
sampler_hijack.hijack_samplers()
|
||||
|
||||
shared.args.loader = loader
|
||||
if loader != 'llama.cpp' and shared.args.ctx_size == 0:
|
||||
shared.args.ctx_size = 8192
|
||||
|
||||
output = load_func_map[loader](model_name)
|
||||
if type(output) is tuple:
|
||||
model, tokenizer = output
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue