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
31 changes: 31 additions & 0 deletions packages/model-fit/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,36 @@
# Changelog

## [0.2.1] - 2026-08-18

Records a fix that was left out of `0.2.0`. It merged (#3890) before the
`model-fit-v0.2.0` tag was cut, so the code already shipped in `0.2.0` β€” this
release carries no source change of its own, only the entry that should have
been in that one.

### Fixed

- Reject a successful fit whose context could not be resolved. `runFit` already
rewrote a fitted `nCtx` of 0 β€” llama's encoding for "use the trained context"
β€” to the model's declared context length, but when that GGUF metadata was
itself unavailable the zero survived and the caller was handed a `SUCCESS`
carrying `nCtx: 0`: a verdict with no load plan it could replay. Such a result
is now `ERROR` / `model-unreadable`, which is what the missing metadata
actually means. The resolution moved out of `runFit` into
`detail::finalizeFitContext` (`addon/src/fit/FitResultContext.cpp`) so it can
be tested without a model, covered by a new `ModelFitContextUnit` test built
under `BUILD_TESTING`.

- Reject a malformed successful response in the process codec.
`parseFitProcessResponse` accepted a `completed` result with `status: 0` and a
non-positive `nCtx`, so a child that answered with an unresolved context put
it straight into a supervisor's hands. Defence in depth rather than a live
path: with the fix above the runner can no longer produce one.

### Pull Requests

- [#3890](https://github.com/tetherto/qvac/pull/3890) - QVAC-22630 fix: reject
unresolved successful fit contexts

## [0.2.0] - 2026-08-17

### Changed
Expand Down
2 changes: 1 addition & 1 deletion packages/model-fit/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@qvac/model-fit",
"version": "0.2.0",
"version": "0.2.1",
"description": "Memory-fit preflight addon for QVAC β€” wraps llama.cpp's common_fit_params to project whether a GGUF model fits available device memory before loading it",
"addon": true,
"scripts": {
Expand Down
Loading