Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

- fix: size Python buffers to the actual context by @remote-controlled-man in #2436
- feat: update llama.cpp to ggml-org/llama.cpp@afe77e18f
- fix(ci): remove unsupported macOS 14 release runners by @abetlen in #2416

Expand Down
5 changes: 3 additions & 2 deletions llama_cpp/llama.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,9 +480,10 @@ def free_lora_adapter():
self.n_tokens = 0
# Restored or truncated state must decode before sampling.
self._requires_eval = True
self.input_ids: npt.NDArray[np.intc] = np.ndarray((n_ctx,), dtype=np.intc)
self.input_ids: npt.NDArray[np.intc] = np.ndarray((self._n_ctx,), dtype=np.intc)
self.scores: npt.NDArray[np.single] = np.ndarray(
(n_ctx if logits_all == True else n_batch, self._n_vocab), dtype=np.single
(self._n_ctx if logits_all == True else n_batch, self._n_vocab),
dtype=np.single,
)

self._mirostat_mu = ctypes.c_float(
Expand Down
Loading