Commit the final Qwen MTP primary before saving state

This commit is contained in:
Georg Bauer committed 2026-10-04 13:42:17 +02:00
1 parent 5ecf8ab4f3
commit a8cad88100
17 files changed
+806 -127

No files matched your search

@@ -10,7 +10,9 @@ use std::fs::{self, File};
use std::io::{Read, Seek, SeekFrom, Write};
use std::path::Path;
const MAGIC: &[u8; 8] = b"QWMTKV01";
// V1 may bank an emitted MTP primary without its trunk/history state (#106).
// Reject it before decoding tensors; the owner rebuilds the selected cache.
const MAGIC: &[u8; 8] = b"QWMTKV02";
const HEADER_BYTES: u64 = 16;
const MAX_MANIFEST_BYTES: u64 = 64 * 1024 * 1024;
const IO_CHUNK: usize = 8 * 1024 * 1024;