mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #4632] [CLOSED] [Other] Accept ISTA-DASLab's six-shard DeepSeek V4.1 Flash GGUF layout #5121
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#5121
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?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/4632
Author: @StackArc3
Created: 10/29/2026
Status: ❌ Closed
Base:
main← Head:dsv41-ista-six-shard-layout📝 Commits (1)
dfbd834Accept ISTA-DASLab's six-shard DeepSeek V4.1 Flash GGUF layout📊 Changes
12 files changed (+401 additions, -163 deletions)
View changed files
📝
docs/DEEPSEEK41.md(+10 -4)📝
setup.py(+97 -66)📝
strata_cli/launch/runner.py(+1 -1)📝
strata_control/dsv41_fit.py(+5 -5)📝
strata_control/models.py(+1 -1)➕
tests/fixtures/dsv41/engram-converted-27oct-header.gguf(+0 -0)📝
tests/terminal/test_dsv41_import_preview.py(+3 -3)📝
tests/terminal/test_dsv41_own_files_and_mmproj.py(+1 -2)📝
tests/terminal/test_dsv41_tui_items.py(+6 -13)📝
tests/terminal/test_pack_gguf_engram.py(+80 -4)📝
tools/dsv41/pack_gguf.py(+20 -3)📝
tools/test_setup_dsv41.py(+177 -61)📄 Description
Problem and result
on 27 October 2026 (23:16 UTC) ISTA-DASLab replaced the four-shard IST-DAS builds on the Hub's
mainwith six-shard builds (llama.cpp b11870+ layout).--model-pathwith those files fails: "...-00001-of-00004.gguf is missing". The v0.2.7.1 pin (cb02422c, 23 October 2026, 23:26 UTC) still serves the old files with matching sizes and hashes. After this change the six-shard 2.00, 1.75 and 2.25 bpw sets each launched and answered a chat request on one machine.Related discussion
#4237 (the scope question for Option A against Option B is open there; hurui200320 asked for this PR and prefers the six-shard pin), #4256. Hub commit:
huggingface.co/ISTA-DASLab/DeepSeek-V4.1-Flash-1017-GSQ-RCO-GGUF@a419d74cd2Approach
this is Option A, a change to a default, so it stays a draft until scope agreement is answered in #4237. AGENTS.md says "A new feature is opt-in, and the default path stays byte-identical to the last release." Option A cannot keep that: it moves the pin to a419d74c, changing the default download. Option B (not implemented) leaves the pinned download untouched and teaches only the own-files path the six-shard set with its own pins. I can rework this branch into B.
of-00006, the shared Engram as the sixth. The Engram was converted in place: same name and size, new hash.pack_gguf.pycounts a--engramfile as the sixth shard only if it is one file, not already among the shards, number count-1 of the same split, and holds the one tensorper_layer_token_embd.weight.Validation
Tree: v0.2.7.1,
46c152a1, plus this diff; bundled Python 3.12.15; Windows 11, RTX 5070 Ti 16 GB, 64 GB RAM, engine 0.1.52 cuda13.Passed:
LOCALAPPDATA,APPDATA,STRATA_HOME,STRATA_DATA_DIR; no otherSTRATA_*variable was set,env.txtbelow; network refused through a dead proxy, loopback exempt), patched tree:python tools/test_setup_dsv41.py98 run, 98 pass;python -m unittest tests.terminal.<module>fortest_pack_gguf_engramandtest_dsv41_import_preview,_tui_items,_own_files_and_mmproj,_fit,_context,_prefill_chunk,_upgrade: 95 pass;python tools/test_setup_pins.py(23),test_setup_model_pins.py(16),test_setup_choices.py(54),test_setup_unsloth.py(57).46c152a1:python tools/test_setup_dsv41.py87 run, 87 pass.python setup.py --yes --no-start --family deepseek41 --model IST-DAS-1.75bpw --context 8192 --vision yes --data-dir <data-dir>, then the same with--model IST-DAS-2.25bpw, with these set:STRATA_CONTROL_INSTALL=1,STRATA_INSTALL_DIR=<scratch>\install,PYTHONPATH=<repo>,PYTHONNOUSERSITE=1,PYTHONUNBUFFERED=1,STRATA_DSV41_EXE=<install-dir>\engine-dsv41\0.1.52-windows-x86_64-cuda-cuda13\strata-dsv41.exe,STRATA_DSV41_NO_SMOKE=1,STRATA_PROFILE_DIR=<scratch>\profiles,STRATA_RUNTIME_DIR=<scratch>\runtime,STRATA_STATE_DIR=<scratch>\state,LOCALAPPDATA=<scratch>\appdata\Local,APPDATA=<scratch>\appdata\Roaming. Both exited 0 (54 and 64 minutes); setup reported every shard downloaded after its SHA-256 check and built both packs; the hard-linked Engram was accepted. No model was loaded. The run logs were lost before this text was written, so the files were hashed again afterwards: all 11 files (five IQ1_M shards, five IQ2_XS shards, the Engram) match their pinned size and SHA-256, log with the script, sizes and both hashes per file below (reverify.txt).STRATA_DSV41_EXE(the installed 0.1.52 cuda13 engine),STRATA_INSTALL_DIR,STRATA_PROFILE_DIR,STRATA_RUNTIME_DIR,STRATA_STATE_DIRset to folders under<scratch>,LOCALAPPDATAandAPPDATAunder<scratch>\appdata,PYTHONNOUSERSITE=1andPYTHONUNBUFFERED=1. Each exited 0 and printed "The model is loaded and answering", then was stopped withstrata launch --stop(its "Stopped" line is in each log):python strata.py launch --family deepseek41 --model ist-das-2.00bpw --model-path <link-dir> --data-dir <data-dir> --context 8k --vision on --tune skip --access local --port 8080 --no-tui(answering 3.9 minutes after the start, 2.6 of them spent checking the files' SHA-256; 935 MiB of GPU memory used after the stop).<link-dir>holds hard links to the six files of the set, made withcmd /c mklink /H "<link-dir>\<name>" "<model-dir>\<name>"for each, so that setup's marker files stay out of the original folder.python strata.py launch --family deepseek41 --model ist-das-1.75bpw --data-dir <data-dir> --context 8k --vision on --tune skip --access local --port 8080 --no-tui(1.0 minute; 861 MiB after the stop).python strata.py launch --family deepseek41 --model ist-das-2.25bpw --data-dir <data-dir> --context 8k --vision on --tune skip --access local --port 8080 --no-tui(1.1 minutes; 822 MiB after the stop).max_tokens200, finish reasonstopeach time. 2.00: 115 completion tokens, 21.4 s wall, 12.2 prompt and 6.5 decode tokens/s. 1.75: 139, 20.7 s, 14.0 and 7.9. 2.25: 131, 26.4 s, 10.7 and 5.9. The rates are the server's owntimingsfields; completion tokens include the model's reasoning text. Single observations after a fresh start, not benchmarks. JSON files below.Failed:
python tools/test_setup_dsv41.py98 run, 94 pass. The four failures are copies oftest_no_engine_stops_before_the_download, which also fail on unmodified46c152a1. The test does not stub the engine download and reports GitHub as reachable, so setup reads the live update feed, downloads a real engine package and returns 0 instead of 1. Also onetest_dsv41_tui_itemstest, because the default data folder held the downloaded sets. In the clean environment all 98 and all 22 pass.python -m pytest tests/terminal -qon the final diff, bundled Python 3.12.15, clean environment, no network (pytest installed with pip into a folder outside the repo): Failed on both trees. Patched tree: 7 failed, 3 errors, 1918 passed, 62 skipped (1973 s). Pristine46c152a1: 9 failed, 4 errors, 1910 passed, 62 skipped (2207 s). The two trees ran at the same time. Failing on both:test_bench_standard.py::RunTests::test_a_round_total_is_null_when_a_counted_request_has_no_token_count,test_bundle_imports.py::BundleImports::test_setup_py_and_each_of_its_tools_import_with_tools_limited_to_the_bundle,test_monitor_bundle.py::MonitorBundleTests::test_offline_install_plan_and_remove_touch_only_monitor_files. Failing on the patched tree only in that run: four tests intest_runtime.py(test_edited_source_migration_is_previewed_digest_pinned_and_verified,test_failed_edited_source_migration_uses_private_snapshot_for_rollback,test_local_management_bridge_and_cli_share_owner_and_journal,test_zero_token_completion_does_not_count_as_generation_ready). Failing on the pristine tree only in that run:test_docker_files.py::Scripts::test_build_script_exits_zero_after_assembling_a_contextand five intest_runtime.py(test_a_reused_pid_with_another_creation_time_is_not_the_recorded_child,test_failed_source_switch_restores_prior_owned_launch,test_hard_killed_host_child_exits_and_next_start_recovers_private_state,test_owned_runtime_and_calibration_exclude_each_other_even_on_port_zero,test_restart_plan_compares_revision_without_stopping_instance). Re-running those ten tests one tree at a time: all 10 passed on the patched tree; on the pristine tree 2 failed (the docker build test andtest_local_management_bridge_and_cli_share_owner_and_journal, a Windows PermissionError deleting a temp file) and 8 passed. No test failed on the patched tree in the re-run. The full outputs are not part of the diff.Not run:
Limits
--shardsis counted as a shard.Log excerpt
The whole launch log of the 2.00 run (38 lines), paths replaced by
<link-dir>,<data-dir>and<scratch>. Timestamps are the wrapper's, in local time (UTC-5); every other time in this text is UTC. Removed: seven file-check progress lines of the form "Checking that the model files are complete ...: N of M GB" and one empty line.Files
env.txt (clean environment)
reverify.txt (hash check of all 11 files)
chat-1.75.json (first chat send)
chat-2.00.json (first chat send)
chat-2.25.json (first chat send)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.