AKL Qwen35
AKL is a research hybrid combining frozen Qwen3.5-0.8B text weights, a trained
binary gist codec, a trained input bridge, and question-aware retrieval of complete
exact source spans. This release packages the selected frozen weights in
akl-qwen35-f32.gguf.
This is a custom GGUF architecture, akl-qwen35, requiring the bundled reference
loader. Stock llama.cpp, Ollama, Transformers AutoModel and hosted inference
providers do not automatically execute this hybrid. The reference loader uses
PyTorch; packaging as GGUF alone does not provide GGML acceleration.
Model details
| Property | Value |
|---|---|
| Brand / model | AKL / akl-qwen35 |
| Base model | Qwen/Qwen3.5-0.8B, text-only |
| Pinned base revision | 2fc06364715b967f1860aea9cf38778875588b17 |
| Custom architecture | akl-qwen35 |
| Package format | akl-qwen35-hybrid-gguf-v1 |
| Codec width | 64 |
| Source chunk | 64 tokens → four gist codes |
| Code width | 1024 bits per code |
| Qwen input embedding width | 1024 |
| Bridge intermediate width | 512 |
| Export precision | FP32; no weight quantization |
| Exact evidence budget | At most 64 tokens per query |
| Standard example source cap | 4096 tokens |
| Qwen native position limit | 262,144 positions, including prompt and output |
The source encoder processes completed chunks. It groups each chunk into four 16-token regions and transports hard binary codes. The bridge projects those codes into Qwen embeddings. An external store retains all original token IDs and overlapping decoded windows. CPU BM25 retrieves candidates; the top two windows are merged when adjacent to preserve complete relationships. Exact evidence is interleaved after the corresponding source chunk's gist.
The full learned sparse repair/reconstruction path is also packaged for checkpoint fidelity. The default persistent-span inference path uses retrieved exact spans, not learned sparse repair selection. The vision encoder and MTP weights are excluded. The tied vocabulary/output table is stored once.
Intended use
Research on source-memory compression, exact-span retrieval, bridge alignment and factual evidence use. The supplied runner demonstrates short factual answers and uses a fresh Qwen hybrid cache for each query. General chat quality, reliable long-history recall, sliding-window cache eviction and production serving have not been established.
Training and provenance
The Qwen backbone remained frozen during codec and bridge experiments. The selected codec is the joint refinement checkpoint at update 2800. The bridge received 600 additional projection updates after an inherited 300-update alignment stage; codec weights remained frozen in that stage. Export and rebranding perform no training. The original selected adapter checkpoint SHA256 is:
00394bbd97fdc32b830142c78da3633cc35e614198847076ebf57d871de0fdd8
Codec training used a bounded, provenance-recorded TinyStories sample plus authored prose/code/alignment passages. This is not a reproduction of the DABE paper's architecture, dataset scale or CUDA results. The tokenizer and chat template are those of the pinned Qwen checkpoint and are embedded in the GGUF.
Evaluation and limitations
These are small synthetic experiments with repetitive filler, distractors and facts placed at different ages, including boundary-crossing facts. They are not estimates of general-population accuracy. Conditions and fixtures differ across experiments; the rows below are not a controlled context-length scaling curve.
| Source length | Frozen merged-span hybrid exact answers | Scope |
|---|---|---|
| 64K | 7/8 | Four counterfactual pairs |
| 128K | 7/8 | Four counterfactual pairs |
| 256K | 8/8 | Four fresh counterfactual pairs |
| 384K | 1/3 | One history, three questions; capacity smoke test |
All three 384K questions retrieved complete supporting evidence. Two still failed: a role assignment and a code operator. Running beyond the native source-token limit demonstrates capacity, not reliable retention. The 16:1 slot reduction does not recover every detail from gist. Exact retrieval depends on retained source.
On an Apple M1 Pro with 16 GiB memory, FP32 Metal, eager attention and reference DeltaNet/convolution kernels, the 256K merged-span path took a median 52.4 seconds per fresh-cache short-answer query. The 384K smoke queries took 87–95 seconds; ingestion took 5.9 seconds. Sampled 384K GPU peaks were 4.39 GiB live allocations and 6.16 GiB driver memory; the allocation fraction was raised to 0.65 after two failures under the 0.5 cap. Driver and live memory are not additive; sampled peaks are lower bounds. These are local workload observations, not deployment benchmarks.
Each 64 source tokens occupy four Qwen gist positions, but projected embeddings and Qwen cache states are ordinary floating-point tensors. Original source IDs and the retrieval index remain stored externally. No native 256K/384K prefill comparison was completed, and no native 256K speedup ratio is claimed.
Usage
Download this repository, including runtime.zip and the GGUF, then follow
INSTRUCTIONS.md. All model and tokenizer data needed by the
loader are embedded in the GGUF. The runtime does not require the original
checkpoint, the original asset folder or access to a private source repository.
python3.12 -m venv .venv
.venv/bin/python -m pip install -r requirements.txt
.venv/bin/python -c "import zipfile; zipfile.ZipFile('runtime.zip').extractall('.')"
.venv/bin/python -m experimental.qwen_graft.hybrid_gguf validate akl-qwen35-f32.gguf
.venv/bin/python -m experimental.qwen_graft.hybrid_gguf_ask akl-qwen35-f32.gguf example-source.txt "What is the service token for vault Cedar?" --device cpu
config.json describes the custom package contract; it is not an AutoModel
configuration. qwen_config.json records the embedded base configuration.
codec_config.json, runtime_config.json and generation_config.json document
the selected behavior. prompt_instructions.json preserves the actual prompt
construction; these sidecars do not override the embedded weights or runner.
Validation
The initial export matched original packets, projected gist, received context,
full next-token logits and generated IDs bit for bit on a CPU FP32 round trip.
The AKL rename retains the same numerical weights. Release-specific checksums,
tensor verification, answer smoke results and research summaries accompany this
model. See release_manifest.json and the evaluation files.
Attribution and licensing
Qwen base weights retain Apache-2.0; the full upstream text is provided as
LICENSE.qwen. DABE-derived runtime components retain the applicable MIT notice
in LICENSE.dabe-reference; attribution is recorded in NOTICE.
TinyStories training data retains its CDLA-Sharing-1.0 terms, and authored training
passages are CC0-1.0. No training corpus is included in this model repository.
This release does not assign an additional blanket license to AKL-specific adapter weights or original runtime code. Public availability is not a separate license grant; consult the accompanying notices before redistribution.