[GH-ISSUE #4256] [TUI] DeepSeek IST-DAS --model-path rejects current first shard; own-file fallback also fails #1872

Closed
opened 2026-11-04 01:54:54 +07:00 by bsakaguchi · 1 comment
Owner

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 strata command)

What happened

I ran strata launch with my own copy of ISTA-DASLab's 2.00 bpw set using --model-path. Setup stopped at the Model step:

The model could not be installed. DeepSeek-V4.1-Flash-1017-GSQ-RCO-IQ2_XXS-00001-of-00004.gguf is 39,075,725,728 bytes; the published file is 39,075,714,624. it may be cut short or another version; your file was left as it is. Copy the whole published file into the folder

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 download recorded commit 653a9874 and SHA-256 2dfe9711… in .cache/huggingface/download/*.metadata, both matching the Hub's listing for main at 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_REVISIONS pins ISTA-DASLab at cb02422 (2026-10-23).

On 2026-10-25, ISTA-DASLab pushed commit 41213f3 (Fix DeepSeek-V4.1 embedded chat templates). It rewrote tokenizer.chat_template in 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's main was at 653a987 when I tested it.

File Pinned (cb02422) Main (653a987)
IQ2_XXS-00001 39075714624 d46efb67… 39075725728 2dfe9711eac1f7814aa59154d11e8f27739f8b96875dc1e667eac9f8c756e1fe
IQ2_XS-00001 39535776992 4c653079… 39535788064 d9b949d55e27242b8afc7c2928749b888372d4c39682f9a131670d1c2555155e
IQ1_M-00001 39358830464 6e3f0d5f… 39358841536 a7be0d5a48e4d1c13c5535f9123d9131ab8964e5acf8a0c01d14970e4b7f4df9

Strata'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's patch_chat_template.py as 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:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "...\Strata\terminal\current\strata_control\gguf_preflight.py", line 165, in inspect_metadata
    raise ProfileError("GGUF tensor has an unsupported encoding or shape", 5)
strata_control.profiles.ProfileError: GGUF tensor has an unsupported encoding or shape

own_gguf_is_whole() catches the exception and returns False, so setup takes the hard-stop branch. The exception is not recorded in setup.log.

Relevant source-code observations:

  • int_tensors_to_engram in tools/dsv41/pack_gguf.py describes Engram hash parameters stored as integer tensors: engram_token_map (I32), and engram_primes, engram_offsets, and engram_multipliers (I64).
  • BLOCK_GEOMETRY in tools/gguf_reader.py has 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_FILES in the installed setup.py to:

(39075725728, "2dfe9711eac1f7814aa59154d11e8f27739f8b96875dc1e667eac9f8c756e1fe")

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

1. hf download ISTA-DASLab/DeepSeek-V4.1-Flash-1017-GSQ-RCO-GGUF --include "*IQ2_XXS*" "DeepSeek-V4.1-Flash-Engram-IQ4_NL.gguf" --local-dir <folder>
2. strata launch --family deepseek41 --model ist-das-2.00bpw --model-path "<folder>" --speed full

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

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 `strata` command) ### What happened I ran `strata launch` with my own copy of ISTA-DASLab's 2.00 bpw set using `--model-path`. Setup stopped at the Model step: > The model could not be installed. DeepSeek-V4.1-Flash-1017-GSQ-RCO-IQ2_XXS-00001-of-00004.gguf is 39,075,725,728 bytes; the published file is 39,075,714,624. it may be cut short or another version; your file was left as it is. Copy the whole published file into the folder **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 download` recorded commit `653a9874` and SHA-256 `2dfe9711…` in `.cache/huggingface/download/*.metadata`, both matching the Hub's listing for `main` at 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_REVISIONS` pins ISTA-DASLab at `cb02422` (2026-10-23). On 2026-10-25, ISTA-DASLab pushed commit `41213f3` (Fix DeepSeek-V4.1 embedded chat templates). It rewrote `tokenizer.chat_template` in 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's `main` was at `653a987` when I tested it. | File | Pinned (cb02422) | Main (653a987) | |---|---|---| | IQ2_XXS-00001 | 39075714624 `d46efb67…` | 39075725728 `2dfe9711eac1f7814aa59154d11e8f27739f8b96875dc1e667eac9f8c756e1fe` | | IQ2_XS-00001 | 39535776992 `4c653079…` | 39535788064 `d9b949d55e27242b8afc7c2928749b888372d4c39682f9a131670d1c2555155e` | | IQ1_M-00001 | 39358830464 `6e3f0d5f…` | 39358841536 `a7be0d5a48e4d1c13c5535f9123d9131ab8964e5acf8a0c01d14970e4b7f4df9` | Strata'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's `patch_chat_template.py` as 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: ```text Traceback (most recent call last): File "<string>", line 1, in <module> File "...\Strata\terminal\current\strata_control\gguf_preflight.py", line 165, in inspect_metadata raise ProfileError("GGUF tensor has an unsupported encoding or shape", 5) strata_control.profiles.ProfileError: GGUF tensor has an unsupported encoding or shape ``` `own_gguf_is_whole()` catches the exception and returns `False`, so setup takes the hard-stop branch. The exception is not recorded in `setup.log`. Relevant source-code observations: - `int_tensors_to_engram` in `tools/dsv41/pack_gguf.py` describes Engram hash parameters stored as integer tensors: `engram_token_map` (I32), and `engram_primes`, `engram_offsets`, and `engram_multipliers` (I64). - `BLOCK_GEOMETRY` in `tools/gguf_reader.py` has 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_FILES` in the installed `setup.py` to: ```python (39075725728, "2dfe9711eac1f7814aa59154d11e8f27739f8b96875dc1e667eac9f8c756e1fe") ``` 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 ```text 1. hf download ISTA-DASLab/DeepSeek-V4.1-Flash-1017-GSQ-RCO-GGUF --include "*IQ2_XXS*" "DeepSeek-V4.1-Flash-Engram-IQ4_NL.gguf" --local-dir <folder> 2. strata launch --family deepseek41 --model ist-das-2.00bpw --model-path "<folder>" --speed full ``` ### 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`
Author
Owner

@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-path or --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

<!-- gh-comment-id:6491880116 --> @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-path` or `--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
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#1872
No description provided.