model-format: allow the whole-tensor stream for output.weight and token_embd.weight (native head / embedding owners)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Pavlo Ratushnyi
2026-10-15 08:58:13 +02:00
co-authored by Claude Sonnet 5.5
parent 838f68b459
commit c7abf4fab6
+3
View File
@@ -1425,6 +1425,9 @@ fn plan_stream_rows(
..
}
| TensorRole::Global(GlobalRole::OutputHcUp) => (320, 10240, false),
// The complete vocabulary-major head / embedding table: the native head and embedding owners
// (`generate.cpp` NativeHead / embedding upload) read each as ONE whole-tensor stream.
TensorRole::Global(GlobalRole::Output | GlobalRole::TokenEmbedding) => (2560, 248320, false),
_ => return Err(BindingError::Range("row_count")),
};
let expected = [columns, rows, 512];