generate: the native dense projections bounded to the trunk's layers

A -MTP file's draft block (blk.40) carries the attention and shared-expert projection names; it is the drafter's,
not in the trunk's pack, and NativeDense::load would refuse it as absent from the canonical table.  The bound is a
no-op for Flash-Next (no block past the trunk).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017tPVMg2wGSNR1KANEiUtwr
This commit is contained in:
Robert KarlandClaude Fable 5.1 committed 2026-10-11 13:55:23 -07:00
1 parent a2e615b79f
commit e41dfc7e63
1 file changed
+4 -1
+4 -1
View File
@@ -2517,7 +2517,10 @@ int main(int argc, char** argv) {
strata::core::NativeDense native_dense;
if (!o.native_dense_gguf.empty()) {
if (!native_dense.load(o.native_dense_gguf, wt, err, o.native_ple_key)) {
// bounded to the trunk: a -MTP file's draft block (blk.40 of Qwen3.6, `nextn_predict_layers`) carries the
// same projection names, is not in the trunk's pack (tools/iq_pack.py leaves it to the drafter's), and would
// otherwise be "absent from canonical table"; no Flash-Next file has a block past its trunk
if (!native_dense.load(o.native_dense_gguf, wt, err, o.native_ple_key, 0, g.n_layers)) {
std::fprintf(stderr, "strata generate: native dense projections: %s\n", err.c_str());
return 1;
}