Archived
unlimitedocr: tiled/base e2e parity, per-segment tower layout, n-gram whitelist
The pass packer now keeps a view and its one-cell separator in one pass, and RadBatch carries each segment's grid host-side (enc_seg_h/enc_seg_w) so the DeepEncoder no longer reads device coordinates to pick a geometry. The tower lays out a line of n tiles as kMap rows of n*kMap features plus one newline cell, accepts an earlier chunk of a longer line, and emits the learned view_seperator for an explicit 4x4 separator rather than any square segment. The device sam_attn resamples a rel_pos table that is not 2*tile-1 rows on read (the 127-row global tables serve a 40-grid block as 79), matching libref/libavx. The n-gram ban gains the reference's optional whitelist (5th operand, OAI keys, generation_config alias) with range/dtype checks. Gates: tiled e2e stage cosines 0.9994-1.0, det/text 0.9901 with every coordinate within 1 px; two-page 0.9917 within 2 px; device selftest sam_attn (incl. 127->79) and ngram whitelist (1344 columns) 0 mismatches.
This commit is contained in:
1 parent
fad4ba7f1a
commit
52637ec186
37 files changed
+401566
-778
No files matched your search
@@ -1228,6 +1228,17 @@ so that is what a request sending neither field gets:
|
||||
{"messages": [...], "ngram_ban_n": 35, "ngram_window": 128}
|
||||
```
|
||||
|
||||
**The ban's whitelist** (`ngram_whitelist` in a request, alias `no_repeat_ngram_whitelist`;
|
||||
`generation.no_repeat_ngram_whitelist` in the container and in a `generation_config.json`, a JSON
|
||||
array of ids) names token ids the ban must never ban: the reference processor removes them from
|
||||
the banned set before it blocks anything (`banned.difference_update(whitelist)`). Absent, null and
|
||||
empty all mean off -- the reference's empty whitelist, the form this checkpoint ships -- and off is
|
||||
bit-identical to a ban without the feature. There is no command-line flag.
|
||||
|
||||
```json
|
||||
{"messages": [...], "ngram_ban_n": 35, "ngram_window": 128, "ngram_whitelist": [151645, 151644]}
|
||||
```
|
||||
|
||||
**The rest of the sampler** has a flag per field, spelled like the request field:
|
||||
`--presence-penalty`, `--frequency-penalty`, `--repetition-penalty`, `--repeat-last-n`,
|
||||
`--typical-p`, `--dry-multiplier`, `--dry-base`, `--dry-allowed-length`, `--dry-penalty-last-n`,
|
||||
|
||||
+1
-1
@@ -2382,7 +2382,7 @@ the usual rescale, pairs by value).
|
||||
| op | params | operands |
|
||||
|---|---|---|
|
||||
| `sample_dry` | `M` `n_vocab` `vocab_off`/opt | `logits`:inout, `params`, `history`, `breakers`? |
|
||||
| `sample_ngram_ban` | `M` `n_vocab` `vocab_off`/opt | `logits`:inout, `params`, `history`, `ngram` |
|
||||
| `sample_ngram_ban` | `M` `n_vocab` `vocab_off`/opt | `logits`:inout, `params`, `history`, `ngram`, `whitelist`? |
|
||||
| `sample_typical` | `M` `n_cand` | `cand_idx`:inout, `cand_val`:inout, `params` |
|
||||
| `sample_xtc` | `M` `n_cand` | `cand_idx`:inout, `cand_val`:inout, `params` |
|
||||
| `sample_chain` | `M` `n_vocab` `temp`:f64/opt `p`:f64/opt `min_p`:f64/opt `k`/opt | `logits`, `query`?, `u` → `draw` |
|
||||
|
||||
Reference in new issue
Block a user