Skip to content

Commit 2523472

Browse files
committed
fix: Fix pickling of Llama class by setting seed from _seed member. Closes abetlen#1769
1 parent 991d9cd commit 2523472

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llama_cpp/llama.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2073,7 +2073,7 @@ def __getstate__(self):
20732073
use_mlock=self.model_params.use_mlock,
20742074
kv_overrides=self.kv_overrides,
20752075
# Context Params
2076-
seed=self.context_params.seed,
2076+
seed=self._seed,
20772077
n_ctx=self.context_params.n_ctx,
20782078
n_batch=self.n_batch,
20792079
n_ubatch=self.context_params.n_ubatch,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy