You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 90ce648
Browse filesBrowse the repository at this point in the historyBrowse files
ggml-openvino: keep stateful execution with -fa off
Keep the V cache token-major in stateful mode instead of falling back to
stateless execution. SET_ROWS appends to the state, and PERMUTE reads it
back in the layout attention needs, so MUL_MAT does not transpose it.
Dropping a reshape in grouped attention lets OpenVINO fuse it into SDPA.
For padded V caches, slice after the transpose so the cache is read in
place, without a copy that is recompiled for every KV length.
This removes the stateless fallback for -fa off.
- `llama-cli --context-shift`: stateless only (`GGML_OPENVINO_STATEFUL_EXECUTION=0`). In stateful mode the KV cache is owned by the OpenVINO model and cannot be shifted externally.
804
-
- `-fa off`: stateless only. With `-fa off` the V cache is stored transposed, which the stateful KV cache does not support; with `GGML_OPENVINO_STATEFUL_EXECUTION=1` the context falls back to stateless execution and logs a warning.
805
804
- `llama-server`: only one chat session/thread when `GGML_OPENVINO_STATEFUL_EXECUTION=1`.
0 commit comments