4.0 KiB
Model acquisition
The strata-next CLI can fetch and verify model files described by a versioned manifest. Each file has a pinned HTTPS URL, byte length, and SHA-256. It writes to NAME.part, resumes with HTTP Range when supported, verifies the complete digest, and renames the file only after successful verification. A server that ignores Range causes a full restart of that file. Existing completed files are hashed before reuse. A failed hash is never accepted as a completed model.
For the initial Qwen3.8-Flash-Next IQ3_S profile:
strata-next model fetch qwen-iq3-s --output /models/qwen-iq3-s
strata-next model verify qwen-iq3-s --output /models/qwen-iq3-s
strata-next model inspect /models/qwen-iq3-s/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf
strata-next model extract-tokenizer /models/qwen-iq3-s/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf --output /models/qwen-iq3-s/pack
The profile manifest is embedded in the executable; a custom manifest path can be used in place of qwen-iq3-s. The two shard URLs are pinned to Hugging Face repository commit ed59f92082b1e93c0e96d60a8b11aab089b52f09, matching the imported Strata setup source. On 2026-10-02, the Hub's file metadata reported these byte lengths and linked ETags: shard 1 54,817,524,224 bytes / 4c1eb2ceb4915e1192f4f386021897bde56a97f40a0bb78bb86465e0f7d2aca3; shard 2 28,800,138,432 bytes / 316b46f3a2dbd68c900f43136ab9449f9dcc3725dfd8c794847c204bc161e113. Hugging Face documents SHA-256 ETags for LFS files. No full model download or local digest measurement has been performed yet.
The executable carries its HTTPS trust roots, so model fetch does not need a CA bundle installed in a minimal container. TLS certificate and hostname verification remain enabled.
The acquisition stage downloads GGUF files; the native tokenizer stage extracts and uses tokenizer assets. Before fetching, the CLI checks available filesystem space against the remaining bytes in all manifest shards and checks again after the server chooses resume or restart. This avoids starting a transfer that already cannot fit; filesystem quotas or concurrent writers can still cause a later write failure. The upstream iq_pack.py format conversion, KAR-2 preparation, compressed GPU loading, and model startup still need native implementations and differential validation. See compressed runtime contract for the target fetch → verify → prepare → GPU decode sequence and with-key/without-key cache profiles. Model bytes belong on an external volume and never in Git or CI artifacts.
model inspect reads the GGUF v3 header and tensor directory without mapping weight data. It checks metadata types, counts, alignment, duplicate keys/tensors, split numbering, and whether tensor start offsets fit the file. This is a structural check, not proof that all tensor bytes or quantization geometry are valid.
model extract-tokenizer validates the Qwen byte-level BPE metadata, then writes tokenizer/ under the output directory through a staging directory. It requires a nonempty chat template and refuses to overwrite an existing tokenizer directory. The dense/expert pack is still pending.
The extracted directory is accepted by the native model tokenize and model detokenize commands. model tokenize TOKENIZER_DIR --stdin --special reads UTF-8 text from standard input and prints a JSON array of token IDs; --special enables control tokens such as <|im_end|>. User-defined tokens remain literal in both modes. model detokenize TOKENIZER_DIR 1,2,3 prints a JSON string. This native BPE path has been compared with upstream on a synthetic full-byte vocabulary, but not with the real IQ3_S tokenizer yet. The dense/expert pack and model startup remain pending.
Metadata references: Hugging Face file download documentation and the two pinned files in the model repository.