Skip to content

Commit 1dfb768

Browse files
authored
Fix: add missing 'seed' attribute to llama_context_params initialization
1 parent 7ecdd94 commit 1dfb768

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llama_cpp/llama.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ def __init__(
309309

310310
# Context Params
311311
self.context_params = llama_cpp.llama_context_default_params()
312+
self.context_params.seed = seed
312313
self.context_params.n_ctx = n_ctx
313314
self.context_params.n_batch = self.n_batch
314315
self.context_params.n_ubatch = min(self.n_batch, n_ubatch)

0 commit comments

Comments
 (0)