enhanced context size

This commit is contained in:
Saifeddine ALOUI 2023-05-18 22:23:24 +02:00
parent 35170fbf9e
commit bded3dce7c

View File

@ -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):