Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2523472

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

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎llama_cpp/llama.py

Copy file name to clipboardExpand all lines: llama_cpp/llama.py
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.