mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4256] [TUI] DeepSeek IST-DAS --model-path rejects current first shard; own-file fallback also fails #1872
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#1872
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Cyberdog90 on GitHub (Oct 26, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4256
Area
[TUI]
Desktop app, Terminal or source?
Terminal (the
stratacommand)What happened
I ran
strata launchwith my own copy of ISTA-DASLab's 2.00 bpw set using--model-path. Setup stopped at the Model step:Expected behavior: Setup accepts the complete file currently published by ISTA-DASLab, or accepts it through the existing own-file GGUF fallback instead of stopping with a possible truncation error.
The file is not truncated.
hf downloadrecorded commit653a9874and SHA-2562dfe9711…in.cache/huggingface/download/*.metadata, both matching the Hub's listing formainat the time of testing. Downloading the file again produced the same result.Shards 00002–00004 and the Engram file match Strata's pins.
1. The first-shard pins predate an upstream update
HF_REVISIONSpins ISTA-DASLab atcb02422(2026-10-23).On 2026-10-25, ISTA-DASLab pushed commit
41213f3(Fix DeepSeek-V4.1 embedded chat templates). It rewrotetokenizer.chat_templatein the three first backbone shards. The commit states that tensor bytes are unchanged.The first shards were updated again later that day in
1c100b9. The repository'smainwas at653a987when I tested it.d46efb67…2dfe9711eac1f7814aa59154d11e8f27739f8b96875dc1e667eac9f8c756e1fe4c653079…d9b949d55e27242b8afc7c2928749b888372d4c39682f9a131670d1c2555155e6e3f0d5f…a7be0d5a48e4d1c13c5535f9123d9131ab8964e5acf8a0c01d14970e4b7f4df9Strata's own downloads use the pinned revision, so they are unaffected by the upstream change. Files downloaded from the Hub's current
main, or modified using ISTA-DASLab'spatch_chat_template.pyas documented in PATCHING.md, can have different sizes and hashes.I reproduced the setup failure with IQ2_XXS. I have not tested the other two quantizations.
2. The own-file GGUF fallback rejects the tested first shard
The own-file fallback added in
ad9bb57(#3651, #3777) handles GGUF files whose sizes or hashes differ from the pinned values.With my file, the verification path is:
verify_sha256(own=True)→own_gguf_is_whole()→gguf_preflight.inspect_metadata()Running the metadata check directly produced:
own_gguf_is_whole()catches the exception and returnsFalse, so setup takes the hard-stop branch. The exception is not recorded insetup.log.Relevant source-code observations:
int_tensors_to_engramintools/dsv41/pack_gguf.pydescribes Engram hash parameters stored as integer tensors:engram_token_map(I32), andengram_primes,engram_offsets, andengram_multipliers(I64).BLOCK_GEOMETRYintools/gguf_reader.pyhas no I8/I16/I32/I64 entries.I have not identified the specific tensor that triggers the exception, so I have not confirmed whether the missing geometry entries are its cause.
3. Workaround verified
I changed the IQ2_XXS-00001 entry in
DSV41_ISTA_FILESin the installedsetup.pyto:With this change, setup proceeded past the Model step and the model launched successfully using the same files.
Smallest steps or command that reproduce it
Reproduction status
Reproduced locally
Strata version
strata 0.2.6 (build 0.1.51)
Graphics card, memory and system
RTX 4090 24GB / 128 GB RAM / Windows 11
Model, size and settings
DeepSeek-V4.1-Flash IST-DAS 2.00 bpw (ist-das-2.00bpw) · 8K context ·
--speed full· own files via--model-path@Niko1221 commented on GitHub (Oct 29, 2026):
Thank you, and for the table of sizes and hashes. Fixed in 0.2.7: setup accepts the first shard that ISTA re-published on 2026-10-26 (with the larger chat template; 39,075,725,728 bytes for IQ2_XXS, and the IQ2_XS and IQ1_M ones) when it is in the folder you give with
--model-pathor--gguf-dir. The file is checked by its own size and SHA-256 and is not downloaded. Strata's own downloads still use the pinned revision.Release: https://github.com/Niko1221/Strata/releases/tag/v0.2.7