mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-01-18 18:56:32 +00:00
enhanced context size
This commit is contained in:
parent
35170fbf9e
commit
bded3dce7c
@ -38,7 +38,7 @@ class LLAMACPP(GPTBackend):
|
||||
if seed <=0:
|
||||
seed = random.randint(1, 2**31)
|
||||
|
||||
self.model = Llama(model_path=f"./models/llama_cpp_official/{self.config['model']}", n_gpu_layers=40, seed=seed)
|
||||
self.model = Llama(model_path=f"./models/llama_cpp_official/{self.config['model']}", n_ctx=self.config["ctx_size"], n_gpu_layers=40, seed=seed)
|
||||
|
||||
|
||||
def tokenize(self, prompt):
|
||||
|
Loading…
Reference in New Issue
Block a user