Repository navigation
Releases
hub6-20261009: KV-cache hub bundle for 15 models (f16)
The hub bundle hub6-20261009 (f16): closed-form linear adapters that translate KV caches between 15 local models
through one shared latent, so kvpark bridge can switch a conversation from one model to another without the new
model re-reading it (docs/bridge.md).
What you get
- A median 2.2–2.9× faster to resume after a switch than a native prefill on coding-agent sessions (range
1.4–3.9×, thermal pauses removed), on an AMD Ryzen AI Max+ 395 (Radeon 8060S iGPU). The translation takes 0.4–1.8 s;
the new model then reads only the last 2,048 tokens itself. - The prompt stays exact. Token ids match the request; translation only changes the cached values of old tokens,
which are approximate. - 15 models, 7 cache families, 12 tokenizers: dense and sliding-window GQA (Qwen, Muse, Gemma 4), MLA (GLM,
DeepSeek, Kimi, Ling) and hybrids (DeltaNet, LFM2, Mamba).
These are 36 live hand-offs of coding-agent sessions between running Qwen3.8-27B and Gemma-4-31B servers. A switch
costs about the same at any length, and a native prefill grows with it. On 12–15K-token chats into Qwen3.8, a
switch took 9.7–12.5 s of wall time against 48–52 s; thermal pauses make that ratio uncertain, and the conservative
bound is 1.9–3.9×.
Quality is measured against an information-free cache: the same switch with every translated cell set to the mean,
so nothing comes from the old model. Translation removes 16–83% of that baseline's extra loss for 9 of 11 target
models on long chats. Mamba hybrids gain little, so prefill them natively.
On coding-agent sessions the share is lower: 16–38% between Qwen3.8 and Gemma-4-31B. Fitting the hub on agent
sessions raises it into Gemma from 19% to 27% (p = .013). After a switch, Gemma chose the same next tool as after a
native prefill in 15 of 18 sessions. The information-free baseline did about as well, so the next step is carried
by the native tail rather than by the translation.
Files and use
92 assets, 17.7 GB: manifest.json (the sha256 of every file, checked on load), README.md, the f16 encoders and
decoders, and the f32 views. Download them into one directory and pass that directory as --hub, or use the same
bundle on Hugging Face:
hf download uncrayon/kvpark-hub6 --local-dir hub6
kvpark bridge engine --python /path/to/python --script experiments/universal_kv/engine.py --hub hub6 --device auto
kvpark bridge switch --from qwen38 --to gemma-4-31b --conversation conversation.jsonFull model card, with the loss breakdown and what to expect: https://huggingface.co/uncrayon/kvpark-hub6
Compatibility. Use code from this tag (f58050c) or later: the GPU engines (Vulkan, ROCm or CUDA) read the f16
copies, and the CPU engine widens them to float32.
Register Nemotron-3.5 as a target only (--no-source).
Data. Fitted on the train split of multi-turn SmolTalk2 conversations. No coding-agent sessions or competition
data went into it.
kvpark 0.3.0a3
See CHANGELOG.md: safer routing, Hermes API detection, kvpark doctor --hermes, hermes plugins install uncrayon/kvpark, NBSP command fix.
kvpark 0.3.0a2 — one-command installation and model discovery
Install kvpark on macOS, Linux, or WSL with one command:
curl -fsSL https://raw.githubusercontent.com/uncrayon/kvpark/main/install.sh | bashThe installer supplies Python when needed, detects Hermes and installs into its own environment, or creates a private standalone installation. It verifies the release download and enables the Hermes plugin.
Setup opens automatically, discovers local model servers, and lets you choose a model by number. Confirm with yes, or choose 0 to finish later without changing your model route. Reopen it with /kvpark setup in Hermes or kvpark setup in a terminal.
Existing model servers support chat routing. Disk park/resume requires the patched llama.cpp runtime; the installer can build it with --runtime cpu or a supported GPU option. Native Windows uses the manual instructions; WSL supports the one-command installer.
Also includes Hermes desktop URL-chip handling and command completion fixes, and portable project paths.
Validation: 138 local tests ran with one platform-specific skip, plus isolated Hermes installation, repeat installation, interactive terminal setup, and upgrade/rollback acceptance checks.
kvpark 0.3.0a1 — park, resume, repeat
kvpark alpha 0.3.0a1
sloth-memory is now kvpark. The repository, package, Python module, CLI, Hermes plugin, control API, and guides use the new name.
kvpark save --session YOUR_SESSION
kvpark status
kvpark forget --key YOUR_SAVED_KEY
In Hermes, use /kvpark save, /kvpark status, and /kvpark forget. Setup, retention, cleanup, update, and uninstall controls remain available under /kvpark.
Installation
Install the attached wheel in the same Python environment that runs your agent:
python -m pip install https://github.com/uncrayon/kvpark/releases/download/v0.3.0a1/kvpark-0.3.0a1-py3-none-any.whlFor a fresh Hermes installation, follow the Hermes guide.
Existing sloth-memory installations
The old /sloth update cannot cross package names. Use the one-time migration guide: stop Hermes and other clients, install the new package alongside the old one, preview with python -m kvpark migrate --hermes, then apply with --confirm and restart Hermes.
Migration drains and stops the verified old proxy, backs up and transfers the Hermes profile, and disables the legacy plugin. It preserves the archive's original path, snapshot keys and format, model backend process, retention policy, and original route backup. It does not start or validate the replacement proxy; restart Hermes and verify /kvpark status before removing the old package. Legacy SLOTH_* settings remain accepted; new installations use KVPARK_*.
Old releases retain their original package names and remain available for recovery. MIT licensing is unchanged.
Validation and scope
- Unit and Hermes integration tests cover renamed commands, menu registration, profile migration, and recovery when stopping the old proxy fails.
- Real-package acceptance checks cover migration from published sloth-memory 0.2.0a2, authentication, archive preservation, upgrades, and failed-start rollback.
- CI checks Linux, macOS, and Windows across supported Python versions, including runtime builds.
The migration acceptance stack uses routing mode and synthetic archive markers. It does not prove native KV-cache correctness for a new model. Disk save/resume still requires the managed patched llama.cpp runtime and a compatible snapshot; Ollama, vLLM, and MLX-LM adapters currently provide routing only.
sloth-memory 0.2.0a2 — uninstall and route recovery
Uninstall and return to your original backend
/sloth uninstallpreviews changes;/sloth uninstall confirmrestores the saved Hermes model route, disables automatic startup, drains inference, and stops verified Sloth-owned services.- Existing llama.cpp, Ollama, vLLM, and MLX upstream servers stay running. Model weights, saved snapshots, and runtime builds are kept until you explicitly remove them.
- Setup records the original route, including when your model server occupies Sloth’s preferred port. Older installations without that backup must select their original backend before uninstalling.
- The uninstall guide covers terminal commands, package removal, optional data/build cleanup, and manual recovery for older versions.
Install or update
Install into the same Python environment that runs Hermes:
python -m pip install --upgrade https://github.com/uncrayon/sloth-memory/releases/download/v0.2.0a2/sloth_memory-0.2.0a2-py3-none-any.whl
hermes plugins enable sloth-memoryRestart Hermes after a fresh installation. Existing 0.2.0a1 installations can use /sloth update check followed by /sloth update for coordinated package/proxy replacement.
Hermes setup · Uninstall guide
Disk park/resume still requires the compatible managed llama.cpp runtime. Other backends support routing; this release does not establish Gemma-specific KV-cache compatibility.
Validation: all 19 pull-request checks passed across Linux, macOS, and Windows, including Python/Hermes integration, native runtime builds, and real-package update/rollback tests.
sloth-memory 0.2.0a1 — coordinated updates
Update sloth from your conversation
/sloth update checkcompares the installed package, loaded Hermes adapter, and running proxy, and checks official releases./sloth updateverifies and installs a release, saves resident state, replaces the proxy, checks its health, and requests Hermes' native gateway restart.- The model backend stays running. Handled install/startup failures attempt rollback using a local package backup. Configuration and compatible saved slots are preserved.
This release also includes portable startup and free-port selection, routing adapters for llama.cpp/Ollama/vLLM/MLX-LM, seven-day snapshot cleanup, and the Telegram /sloth shortcut.
Install or bootstrap an older installation
Install in the Python environment that runs Hermes:
python -m pip install --upgrade https://github.com/uncrayon/sloth-memory/releases/download/v0.2.0a1/sloth_memory-0.2.0a1-py3-none-any.whl
hermes plugins enable sloth-memoryOlder installations need a one-time proxy replacement before command-driven updates work. Follow updates and recovery; restarting only Hermes may retain an older proxy process. Hermes installation guide.
On any OS, terminal users can run python -m sloth_memory update check and python -m sloth_memory update. Interactive Hermes CLIs need reopening after an update. Externally managed services and editable installs remain under their owner's update workflow.
Scope and validation
MIT license. Alpha software for open-weight model users. Native disk park/resume requires the compatible managed llama.cpp runtime; the other adapters provide routing. Updates do not change model weights, rebuild the backend, or migrate snapshot formats.
Validation includes Python and Hermes regression tests, real package upgrade and failed-start rollback acceptance, and Linux/macOS/Windows CI. Power loss during installation can require manual recovery from the retained wheel. See validation evidence.
🦥 sloth-memory v0.1.0-alpha.2 — Hermes + cleanup
Hermes integration and seven-day cleanup
MIT licensing remains unchanged.
New in this alpha
- Native Hermes adapter, discovered through the Python package entry point. Once enabled and configured, it starts the backend and proxy with Hermes and reuses running services.
/sloth-memory setuponboarding, plus native park, delete, status, and slot-list commands.- Persistent retention, storage budget, cleanup on/off/now, base URL, and autostart controls.
- Cleanup enabled by default: expire disk snapshots seven days after saving, check hourly and on proxy startup, and remove expired unpublished generations left after a crash. Restoring no longer extends a snapshot's lifetime.
- A 32 GiB snapshot budget, enforced after saves and budget reductions even when scheduled cleanup is disabled.
Cleanup removes saved disk snapshots, not transcripts, weights, or live RAM state. Services remain running after Hermes closes so cleanup continues; autostart off does not terminate existing services.
Start here
Install the wheel in the same Python environment that runs Hermes, run hermes plugins enable sloth-memory, and restart Hermes. Then use /sloth-memory setup.
Follow the Hermes onboarding guide for configuring a compatible backend and selecting it for future sessions. No Hermes source patch is required.
Validation
- 46 standalone regression tests.
- Six integration tests against actual unmodified upstream Hermes discovery, middleware, settings, and command APIs.
- Optional real-model Hermes startup test passed locally: automatic launch, native park/delete, services surviving plugin unload, and reload without duplicate processes.
- The real-model process-restart test still reused 914 tokens and processed 1 on replay, with matching output. Synthetic evidence is attached; timings are whole responses with OS page cache uncontrolled.
The adapter targets Hermes 0.21.0 at upstream commit 9dd6634c5635321cf38840cc30e9b51226689128. Existing alpha.1 users must update and restart their proxy to use the new settings API and adapter. The native runtime patch is unchanged.
Linux, one local inference slot, and a compatible patched llama.cpp runtime remain the supported scope. Models and compiled runtime binaries are not bundled.
🦥 sloth-memory v0.1.0-alpha.1
🦥 sloth-memory — first developer alpha
Let your local AI nap. Resume long conversations without repeating all the work.
This first MIT-licensed release extracts persistent conversation inference state into an agent-independent local service for people running open-weight models. Hermes is not required.
Included
- Installable, dependency-free-at-runtime Python package and CLI: backend, serve, park, status, forget, and doctor.
- Pinned llama.cpp build script and checkpoint persistence patch.
- Explicit foreground/background ownership, atomic archive saves, runtime compatibility checks, storage retention, and real cache reuse metrics.
- Generic transcript client, agent integration contract, and real-model process-restart acceptance harness.
Validated
- 35 regression tests, including streaming, concurrent ownership, authentication, and failed-restore isolation.
- Python 3.10, 3.12, and 3.14 CI, package validation, and a clean CPU runtime build.
- Qwen3-4B CPU acceptance: after restarting both processes, the replay reused 914 tokens and processed 1, with identical output. The following continuation reused 922 tokens and processed 22, matching the resident run.
The attached JSON contains the synthetic acceptance evidence. Whole-response timings are not TTFT or cold SSD benchmarks; the OS page cache was not flushed.
Alpha scope
Linux, a single local inference slot, chat completions, and the included pinned patched llama.cpp runtime. Bring your own GGUF weights and keep your transcript. GPU, hybrid/draft/image configurations need their own acceptance runs; no universal compatibility claim is made. Runtime binaries and model weights are not bundled.
Get started
Follow the README to install and build the compatible backend. The wheel installs the Python service; the source archive includes the runtime builder, patch, examples, tests, and documentation.
Assets: Python wheel, source distribution, synthetic acceptance JSON, and SHA256SUMS. This is a GitHub prerelease; the package has not been published to PyPI.
Please report installation feedback and reproducible model/agent compatibility results through Issues.


