A llama.cpp fork claims live patching of Qwen’s PLE table for swappable knowledge
state: corroboratedheat: mediumuncertainty: highrelevance: mediumagent-memory local-inference model-adaptationortegaalfredollama.cppQwen
What is this?
Qwen’s Per-Layer Embedding (PLE) n-gram table is a large learned lookup structure that contributes vectors to the model during inference; it is not a general-purpose database. Developer ortegaalfredo says a llama.cpp fork and a separate injector can patch selected table rows while the model is running, without reloading its weights. The supplied GitHub search result describes replacement-row patch files and no restart, but the evidence here is project-authored and community-reported, not an independent validation of reliable knowledge recall or safe, general adaptation.
Why it matters
A promising local-inference experiment: patching Qwen’s learned PLE table at runtime could offer a fast way to add or swap model-specific information without reloading weights. But this is an early, author-reported capability—not yet evidence of dependable persistent memory or a practical alternative to RAG or fine-tuning. Reliability, generalization, and the cost of keeping the large table in memory remain open questions.
Current assessment
The original claim comes from llama.cpp modifier ortegaalfredo: a custom fork and injector patch selected rows of Qwen’s PLE n-gram table in memory, allowing changes without reloading model weights or restarting the runtime. The supplied GitHub README search result corroborates the project’s stated mechanism: it creates a small patch file of replacement rows for the PLE table. Both sources are project-authored; the evidence supplied does not include independent replication or systematic recall and regression benchmarks. The author warns that output is hard to control reliably, says the PLE must be memory-mapped, and reports testing only with Q8 quantization and substantial memory requirements. PLE is a learned, token-pattern-addressed embedding component, not a conventional knowledge database; altering it may affect unrelated outputs, and exact-pattern retrieval may limit generalization. Other supplied community experiments report recall and output-quality tradeoffs, while a separate Qwen PLE-transfer experiment reports a 5.05% validation-perplexity reduction on a small model but faces a substantive challenge over whether the benefit comes from PLE transfer or its trained reader. These are adjacent, not direct validation of hot-swappable knowledge injection. Practical implication: worth tracking for local-model builders seeking an alternative memory mechanism, but not yet a recommendation to replace RAG or fine-tuning. Key tests are reproducible recall across varied prompts, interference/regressions, memory and latency costs, and persistence and update behavior under real workloads.
Measured heat
now 0 pts/hpeak 0 pts/hcomments 0/hpeers p10momentum: steady2 platformsage 2020h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion
How the heat travelled
Evidence (7) — ⭐ canonical anchor
Interpretation history
2026-10-21T13:34:56Z
audience grounding: medium — A promising local-inference experiment: patching Qwen’s learned PLE table at runtime could offer a fast way to add or swap model-specific information without reloading weights. But this is an early, author-reported capability—not yet evidence of dependable persistent memory or a practical alternative to RAG or fine-tuning. Reliability, generalization, and the cost of keeping the large table in memory remain open questions.
Decision trace
- 11-16 10:21review_dormant28 days without material information; scheduled checks stopped
- 11-02 08:27drop_targetsquiet through full ladder or over cap 8
- 10-22 00:34groundA promising local-inference experiment: patching Qwen’s learned PLE table at runtime could offer a fast way to add or swap model-specific information without reloading weights. But this is an early, a
- 10-21 21:24repriceVelocity spike on 1x8am0i (full-precision PLE sidecar serving) is engagement on already-known infrastructure evidence, not new facts about ortegaalfredo's core runtime-write claim. Measured heat
- 10-19 13:20sensor_dirtyvelocity_spike
- 10-19 09:40attention_routeThe editor compared this story and chose to keep watching.
- 10-19 09:35attention_candidatematerial_reprice
- 10-19 09:35repricePeriphery expanded with working full-precision PLE sidecar serving (apetersson's mlx-serve external-ngram-table branch, ciru runtime on Strix Halo) and community benchmarks showing quantized GGUF
- 10-19 06:21sensor_dirtyvelocity_spike
- 10-19 05:21sensor_dirtycomment_update
- 10-18 22:21sensor_dirtyvelocity_spike
- 10-18 15:31sensor_dirtyvelocity_spike
- 10-18 09:31sensor_dirtyvelocity_spike
- 10-18 08:31sensor_dirtycomment_update
- 10-18 02:34sensor_dirtyvelocity_spike
- 10-18 01:35attention_routeThe editor compared this story and chose to keep watching.
- 10-18 01:34attention_candidatematerial_reprice
- 10-18 01:34repriceNew evidence (reddit.post.1x8am0i) adds a real implementation result on the infrastructure side: community benchmarks (MarkoMarjamaa) show the heavily-quantized GGUF PLE table measurably degrades perf
- 10-18 01:32attention_candidateattach
- 10-18 01:32attachIndependent community testing of full bf16 vs quantized PLE n-gram tables materially contextualises the PLE sidecar case's impact-on-performance claim.
- 10-18 01:32propose_attachIndependent community testing of full bf16 vs quantized PLE n-gram tables materially contextualises the PLE sidecar case's impact-on-performance claim.
- 10-08 10:09drop_targetsquiet through full ladder or over cap 8
- 09-27 09:44repriceFourth consecutive velocity-spike trigger resolves to the identical Qwengram artifact — score and comment count literally unchanged (365/97), 1.8 pts/h vs ~98 peak, zero comment flow, and the 'ac
- 09-27 09:20sensor_dirtyvelocity_spike
- 09-26 23:38repriceThird consecutive velocity-spike trigger resolves to the same Qwengram post's cooling tail (~2.5 pts/h vs ~98 peak, momentum cooling; the 96th peer percentile reads a dead age-cohort, not renewed
- 09-26 23:20sensor_dirtyvelocity_spike
- 09-26 20:37repriceThe velocity spike is the same Qwengram post's tail with a minor late bounce (~5.5 pts/h vs ~98 peak; the 'accelerating' momentum label reads off a thin recent window — noise, not a sec
- 09-26 15:21sensor_dirtyvelocity_spike
- 09-26 13:28repriceThe storage-half result (Qwengram-0.8B, −5.05% perplexity) now carries a credible in-thread counterpoint: TokenRingAI reports their own tests on Qwen 3.5 4B and 35B where plain LoRA on the frozen back
- 09-26 06:21sensor_dirtyvelocity_spike
- 09-26 04:22sensor_dirtycomment_update
- 09-26 00:20sensor_dirtyvelocity_spike
- 09-25 23:58repriceFirst independent implementation result: Nicolodeva's Qwengram-0.8B freezes Qwen Flash-Next's ~51B-param PLE table onto a 0.8B backbone with a small trained reader/gate for 5.05% lower valid
- 09-25 23:58groundNicolodeva's quantified result (frozen ~51B-param PLE table transferred onto a 0.8B backbone for −5.05% validation perplexity with a trained reader) is the first independent evidence that a shipp
- 09-25 23:25attachIndependent practitioner freezes Qwen3.8 Flash-Next's 51B-param PLE n-gram memory into a 0.8B model with a trained reader/gate for 5% lower perplexity — evidence the PLE memory is a reusable, tra
- 09-25 23:23propose_attachIndependent practitioner freezes Qwen3.8 Flash-Next's 51B-param PLE n-gram memory into a 0.8B model with a trained reader/gate for 5% lower perplexity — evidence the PLE memory is a reusable, tra
- 09-22 07:54repriceThe HN attachment supplies only a PLE title, not technical content or corroboration of writable knowledge. Despite the magnitude-valve flag, the supplied cross-platform evidence is a two-point, commen
- 09-22 07:22attachThis provides useful technical context for the open PLE case by explaining the mechanism behind per-layer embeddings.
- 09-22 07:22propose_attachThis provides useful technical context for the open PLE case by explaining the mechanism behind per-layer embeddings.
- 09-19 23:31repriceThe new thread proposes runtime backpropagation confined to the n-gram table, a distinct adaptation mechanism rather than validation of prompt-driven hot-swapping. It adds no demonstrated result or in