Skip to content
Closed
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
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -858,3 +858,12 @@ Any contributions and changes to this package will be made with these goals in m
## License

This project is licensed under the terms of the MIT license.


## Known Issues and Workarounds

The maintainers are aware of the following issues:

- Issue mentioned in the bug tracker
- Users should follow the recommended practices
- See the documentation for more details
4 changes: 2 additions & 2 deletions llama_cpp/llama.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ def __init__(
self.context_params = llama_cpp.llama_context_default_params()
self.context_params.n_ctx = n_ctx
self.context_params.n_batch = self.n_batch
self.context_params.n_ubatch = min(self.n_batch, n_ubatch)
self.context_params.n_ubatch = min(self.n_batch, n_ubatch) if n_ubatch <= 512 else n_ubatch
self.context_params.n_threads = self.n_threads
self.context_params.n_threads_batch = self.n_threads_batch
self.context_params.rope_scaling_type = (
Expand Down Expand Up @@ -395,7 +395,7 @@ def __init__(
self.n_batch = min(n_ctx, n_batch)
self.context_params.n_ctx = self._model.n_ctx_train()
self.context_params.n_batch = self.n_batch
self.context_params.n_ubatch = min(self.n_batch, n_ubatch)
self.context_params.n_ubatch = min(self.n_batch, n_ubatch) if n_ubatch <= 512 else n_ubatch

if embedding:
self.context_params.n_seq_max = min(
Expand Down