Archived
glm indexer: a step that takes all its blocks does not split
A prefill chunk past the row threshold split the indexer over the ranks even when every row's history fit the selection, so it scored rows whose selection was already decided and gathered the result. Such a step now takes the unsplit take-all path on every rank: zeros into a plane of its own, [max_tok, topk + 1] (the score plane holds only a run of rows where a step may split), and a selection over the whole step, with no query side, scorer or gathers. Temp-0 replies byte-identical to the scoring path; 114/114 tests.
This commit is contained in:
1 parent
c9e34d534c
commit
be623ba1dc
3 files changed
+105
-36
No files matched your search
@@ -211,6 +211,7 @@ static int indexer_buffers(RadBuilder* b, Model& m) {
|
||||
* at 64k of context the whole step's plane would be 256 MiB. */
|
||||
const int64_t scored = g.world > 1 ? std::min(T, std::max(part, GlmTp::kSplitRows)) : T;
|
||||
c.score = decl_b(b, nm.f("index_scores"), RAD_F32, { scored, blocks });
|
||||
c.unscored = decl_b(b, nm.f("index_unscored"), RAD_F32, { T, std::min<int64_t>(513, blocks) });
|
||||
c.selected = m.aw.core.selected;
|
||||
c.length = m.aw.core.length;
|
||||
c.nsel = decl_b(b, nm.f("selected_count"), RAD_I32, { T });
|
||||
|
||||
Reference in new issue
Block a user