Rename PFlash v3.3 Dual-Key to PFlash November Update in README
Browse files
README.md
CHANGED
|
@@ -27,7 +27,7 @@ activations decide what the large reader model prefills:
|
|
| 27 |
plus both uniform (`k_bar`) and attention-mass-weighted (`k_att`) L2-normalized per-segment key centroids;
|
| 28 |
4. **Dual-key bidirectional segment reranker** (`seg-reranker.gguf`) refines segment relevance with full
|
| 29 |
cross-segment context (`~1.5–4 ms` on GPU) over concatenated `[k_bar, k_att]` (`1024`-dim) representations
|
| 30 |
-
and drives PFlash
|
| 31 |
|
| 32 |
All Stage-1 signals read the same tap — the drafter's block-14 residual (`post_block14_residual_before_block15`)
|
| 33 |
— from the same single forward pass. The highest-ranked units that fit the budget go to the reader in their
|
|
@@ -64,7 +64,7 @@ original order, plus the pinned request.
|
|
| 64 |
`[1024, 512]`) computing GPU-reduced NoPE query→context attention mass density per unit plus L2-normalized
|
| 65 |
mean key centroids (`k_bar`) and attention-mass-weighted key centroids (`k_att`) in a single GPU pass.
|
| 66 |
Calibrated Stage-1 `.lift` is preserved separately for recall gating (`PFLASH_RECALL_GATE`).
|
| 67 |
-
- **Dual-key bidirectional segment reranker (`seg-reranker.gguf`
|
| 68 |
encoder (`d_model=384`, `n_heads=6`, `head_dim=64`, `d_ff=1024` SwiGLU, Pre-RMSNorm, 1D segment-index NeoX
|
| 69 |
RoPE with `theta=10000`, no causal mask) over non-mandatory, positive-mass body segments (`N_seg ~ 200–1500`).
|
| 70 |
Consumes concatenated `[k_bar, k_att]` (`1024`-dim), pooled `[q_bar, q_bar]` (`1024`-dim), multiplicative
|
|
@@ -85,8 +85,8 @@ original order, plus the pinned request.
|
|
| 85 |
|
| 86 |
## Using it
|
| 87 |
|
| 88 |
-
PFlash
|
| 89 |
-
repository alongside the drafter GGUF, then set:
|
| 90 |
|
| 91 |
```bash
|
| 92 |
export PFLASH_SCORING_HEAD_GGUF=/path/to/pflash/seg-scoring-head.gguf
|
|
@@ -97,7 +97,7 @@ export PFLASH_REQUEST_PROBE_GGUF=/path/to/pflash/request-probe.gguf
|
|
| 97 |
# server: --pflash auto
|
| 98 |
```
|
| 99 |
|
| 100 |
-
- **Default
|
| 101 |
`32768:0.270`, `65536:0.260`, `120000:0.240`).
|
| 102 |
- **Built-in defaults**: Stage-1 nucleus mass-floor (`0.90`, cap `0.58`), one-sided adaptive keep-ratio safety
|
| 103 |
net (`0.42`/`0.58`), pure-neural query candidates (`PFLASH_QUERY_TW=score`), Lucebox Mix cold-history paging,
|
|
@@ -110,9 +110,9 @@ export PFLASH_REQUEST_PROBE_GGUF=/path/to/pflash/request-probe.gguf
|
|
| 110 |
Measured end-to-end with all four components enabled (default launch, zero extra flags), reader
|
| 111 |
`Qwen3.8-27B IQ4_XS`, AMD Radeon AI PRO R9700, single GPU, `max_tokens = 2048` (matched with Full Prefill):
|
| 112 |
|
| 113 |
-
### Public Long-Context & Code Suite (Full Prefill vs PFlash
|
| 114 |
|
| 115 |
-
| Benchmark | Full prefill | PFlash
|
| 116 |
|---|---:|---:|---:|---:|---:|---:|
|
| 117 |
| Document QA | 27/30 | **27/30** | 29.8 s | **8.35 s** | **3.57×** | 29% |
|
| 118 |
| RULER QA | 13/15 | **13/15** | — | **6.05 s** | — | 35% |
|
|
@@ -128,11 +128,11 @@ Measured end-to-end with all four components enabled (default launch, zero extra
|
|
| 128 |
|---|---:|---:|---:|---:|---:|---:|---:|---:|
|
| 129 |
| full prefill | 7.30 s | 7.35 s | 1.00× | 0.8889 | 0.3750 | 0.3383 | 0.8333 | **0.6089** |
|
| 130 |
| PFlash v2 (`r=0.35`) | 3.93 s | 3.55 s | 1.86× | 0.8889 | 0.3750 | 0.3312 | 0.7778 | 0.5932 |
|
| 131 |
-
| **PFlash
|
| 132 |
|
| 133 |
### Agentic & Lucebox Mix Coding Workloads (Default Launch)
|
| 134 |
|
| 135 |
-
| workload | full prefill | PFlash v2 default | **PFlash
|
| 136 |
|---|---|---|---|
|
| 137 |
| Lucebox Mix 45K cold model switch (8 sessions) | 8/8 (100%), med TTFT 114.50 s | 8/8 (100%), med TTFT 114.54 s | **8/8 (100%), med TTFT 23.97 s** (4.8× faster) |
|
| 138 |
| Autonomous 3-turn tool-loop recall (6 sessions) | — | 3/6 (50%), med T3 TTFT 10.23 s | **6/6 (100%), med T3 TTFT 10.23 s** (+50 pp) |
|
|
|
|
| 27 |
plus both uniform (`k_bar`) and attention-mass-weighted (`k_att`) L2-normalized per-segment key centroids;
|
| 28 |
4. **Dual-key bidirectional segment reranker** (`seg-reranker.gguf`) refines segment relevance with full
|
| 29 |
cross-segment context (`~1.5–4 ms` on GPU) over concatenated `[k_bar, k_att]` (`1024`-dim) representations
|
| 30 |
+
and drives the PFlash November Update adaptive keep-ratio safety net.
|
| 31 |
|
| 32 |
All Stage-1 signals read the same tap — the drafter's block-14 residual (`post_block14_residual_before_block15`)
|
| 33 |
— from the same single forward pass. The highest-ranked units that fit the budget go to the reader in their
|
|
|
|
| 64 |
`[1024, 512]`) computing GPU-reduced NoPE query→context attention mass density per unit plus L2-normalized
|
| 65 |
mean key centroids (`k_bar`) and attention-mass-weighted key centroids (`k_att`) in a single GPU pass.
|
| 66 |
Calibrated Stage-1 `.lift` is preserved separately for recall gating (`PFLASH_RECALL_GATE`).
|
| 67 |
+
- **Dual-key bidirectional segment reranker (`seg-reranker.gguf`)**: 3-layer bidirectional Transformer
|
| 68 |
encoder (`d_model=384`, `n_heads=6`, `head_dim=64`, `d_ff=1024` SwiGLU, Pre-RMSNorm, 1D segment-index NeoX
|
| 69 |
RoPE with `theta=10000`, no causal mask) over non-mandatory, positive-mass body segments (`N_seg ~ 200–1500`).
|
| 70 |
Consumes concatenated `[k_bar, k_att]` (`1024`-dim), pooled `[q_bar, q_bar]` (`1024`-dim), multiplicative
|
|
|
|
| 85 |
|
| 86 |
## Using it
|
| 87 |
|
| 88 |
+
The PFlash November Update runs inside the Lucebox server with built-in defaults (no tuning flags needed).
|
| 89 |
+
Download this repository alongside the drafter GGUF, then set:
|
| 90 |
|
| 91 |
```bash
|
| 92 |
export PFLASH_SCORING_HEAD_GGUF=/path/to/pflash/seg-scoring-head.gguf
|
|
|
|
| 97 |
# server: --pflash auto
|
| 98 |
```
|
| 99 |
|
| 100 |
+
- **Default quality-first curve**: activates from **8,192** tokens (`8192:0.450`, `16384:0.350`,
|
| 101 |
`32768:0.270`, `65536:0.260`, `120000:0.240`).
|
| 102 |
- **Built-in defaults**: Stage-1 nucleus mass-floor (`0.90`, cap `0.58`), one-sided adaptive keep-ratio safety
|
| 103 |
net (`0.42`/`0.58`), pure-neural query candidates (`PFLASH_QUERY_TW=score`), Lucebox Mix cold-history paging,
|
|
|
|
| 110 |
Measured end-to-end with all four components enabled (default launch, zero extra flags), reader
|
| 111 |
`Qwen3.8-27B IQ4_XS`, AMD Radeon AI PRO R9700, single GPU, `max_tokens = 2048` (matched with Full Prefill):
|
| 112 |
|
| 113 |
+
### Public Long-Context & Code Suite (Full Prefill vs PFlash November Update)
|
| 114 |
|
| 115 |
+
| Benchmark | Full prefill | PFlash November Update | Full TTFT | PFlash Nov TTFT | Speedup | Median kept |
|
| 116 |
|---|---:|---:|---:|---:|---:|---:|
|
| 117 |
| Document QA | 27/30 | **27/30** | 29.8 s | **8.35 s** | **3.57×** | 29% |
|
| 118 |
| RULER QA | 13/15 | **13/15** | — | **6.05 s** | — | 35% |
|
|
|
|
| 128 |
|---|---:|---:|---:|---:|---:|---:|---:|---:|
|
| 129 |
| full prefill | 7.30 s | 7.35 s | 1.00× | 0.8889 | 0.3750 | 0.3383 | 0.8333 | **0.6089** |
|
| 130 |
| PFlash v2 (`r=0.35`) | 3.93 s | 3.55 s | 1.86× | 0.8889 | 0.3750 | 0.3312 | 0.7778 | 0.5932 |
|
| 131 |
+
| **PFlash November Update (adaptive)** | **4.90 s** | **4.18 s** | **1.49× avg / 1.76× med** | **0.8889** | **0.3750** | **0.3875** | **0.8333** | **0.6212** |
|
| 132 |
|
| 133 |
### Agentic & Lucebox Mix Coding Workloads (Default Launch)
|
| 134 |
|
| 135 |
+
| workload | full prefill | PFlash v2 default | **PFlash November Update** |
|
| 136 |
|---|---|---|---|
|
| 137 |
| Lucebox Mix 45K cold model switch (8 sessions) | 8/8 (100%), med TTFT 114.50 s | 8/8 (100%), med TTFT 114.54 s | **8/8 (100%), med TTFT 23.97 s** (4.8× faster) |
|
| 138 |
| Autonomous 3-turn tool-loop recall (6 sessions) | — | 3/6 (50%), med T3 TTFT 10.23 s | **6/6 (100%), med T3 TTFT 10.23 s** (+50 pp) |
|