MemoChain Q14 integer writer weights

Optional trained writer weights for MemoChain (paper: MemoChain: Verifiable Constant-Size Memory for Language Models).

MemoChain folds any document stream into a fixed 22,528-byte state (11 heads x 32 keys x 32 values, Q14 fixed-point int16) with an integer-only Delta rule, so Python, native Rust, and an SP1 zkVM produce bit-identical state digests from the same inputs and these weights.

What this file is

weights.bin (3.6 MB) is the trained Q14 integer Delta-rule writer: the same 22 KB capsule state as the built-in deterministic fallback, but trained end-to-end through a frozen causal LM's cross-entropy loss (no teacher model). The 22 KB capsule matched a 4.10 MB cross-attention memory teacher at 181.8x smaller memory on PersonaMem-style QA (Qwen3-8B, 4,237 held-out questions): 58.18% closed-book -> 64.69% with the capsule, vs 64.76% for the teacher.

Verify

curl -L -O https://huggingface.co/Interlooper/memochain-q14-writer/resolve/main/weights.bin
curl -L -O https://huggingface.co/Interlooper/memochain-q14-writer/resolve/main/weights.bin.sha256
sha256sum -c weights.bin.sha256

Expected digest: 626e2089fe38bc593ebf8421873739438aa47b86408db10bafc4eb424f82d67b (identical bytes as the v0.1.0/v0.2.0 GitHub release asset in Omodaka9375/memochain).

Use with the proxy

Mount into the container and set MEMOCHAIN_CHECKPOINT:

docker run -d --name memochain -p 9000:9000 \
    --add-host=host.docker.internal:host-gateway \
    -v memochain-data:/data \
    -v $(pwd)/weights.bin:/checkpoints/weights.bin:ro \
    -e MEMOCHAIN_CHECKPOINT=/checkpoints/weights.bin \
    -e MEMOCHAIN_BACKEND_BASE_URL=http://host.docker.internal:8000/v1 \
    ghcr.io/omodaka9375/memochain:latest

Without MEMOCHAIN_CHECKPOINT, MemoChain boots immediately with its built-in deterministic Q14 writer (zero downloads) and still produces exact 22 KB capsules and SHA-256 receipt chains.

Training provenance

Trained end-to-end (distillation-free) through a frozen Qwen3 decoder on Memorilla pv4-format data plus coding-domain sessions; training details, ablations, and negative results are in DESIGN.md (Phases 1-22). The fold is integer-only and bit-exact across Python, Rust, and the SP1 zkVM for these weights.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support