The probe that imports the runtime packages with the bundled interpreter ran with
the caller's environment, so unless the caller had set PYTHONDONTWRITEBYTECODE a
__pycache__ folder appeared beside every module it loaded and went into the archive:
the archive's file set depended on who built it. The probe now runs through
run_probe(), which sets PYTHONDONTWRITEBYTECODE=1 for the child and starts it with -B.
Tests: the probe leaves no __pycache__ or .pyc in the folder it runs in, with the
variable unset or set to empty by the caller; a plain import in the same setup does
leave one, so the check can see it. With the fix taken out, the two probe tests fail.
DeepSeek out (f-ds-out) removed the `DSV41=` default of this script but left the
`"dsv41": $([ "$DSV41" = 1 ] && ...)` member in the BUILD.json line. The script runs
`set -u`, so the Linux HIP package build stopped with "line 89: DSV41: unbound
variable", wrote an empty BUILD.json, and the next step (the tuning tables) aborted with
a JSONDecodeError. Found by the round 18 gate (p620, rx9070 package, no DSV41 in the
environment); f-ds-out's own gates had not built that package. Nothing reads the key
(only the update feed has a "dsv41" member), so the member is removed; nothing else in
the line changes. A wider search of packaging, spark, docker, .github, tools, setup.py
and every .bat / .ps1 / .cmake file found no other live use of the variable.
DeepSeek V4.1-Flash leaves every user page, as written in par/dsout/DOCS-DRAFTS.md:
- README.md and its 7 translations lose the DeepSeek block; docs/media/models/deepseek.svg is
removed with its credit lines.
- MODELS, INSTALL, docs/README, MAC, TROUBLESHOOTING, AMD_HIP, DOCKER, INTEL, MULTI_GPU,
TERMINAL_LAUNCH, AI_SETUP, AI_REFERENCE, MEDIA_KIT, DETAILS, SAFETY, DGX_SPARK_LINUX, STRIX_HALO,
STRIX_HALO_WINDOWS, AGENTS.md and the packaging pages (README, UPDATES, ENGINE-COMPONENT,
mac/README): DeepSeek sections, rows and clauses deleted; the eight approved new sentences.
STRIX_HALO's WSL sentence (true for every AMD engine) moves to the Quick start.
- The three links to DEEPSEEK41.md anchors that no longer exist (MODELS.md twice,
TERMINAL_LAUNCH.md once) went with their sections, so the link check passes again.
- docs/data/capabilities.json drops the deepseek41 family; docs/CAPABILITIES.md and the cap
blocks regenerated by tools/capability_table.py --write. MEDIA_KIT.md has no cap block left,
so tools/capability_table.py no longer lists it; tools/test_capability_table.py points its two
contradiction tests at qwen38 / qwen36 and loses the DeepSeek-on-a-Mac test.
- docs/SETTINGS.md: the three STRATA_DS4_* rows go (count 280 -> 277). The page is not fully
regenerated: tools/settings_register.py --docs would also change seven rows that are not about
DeepSeek and were already out of date on f-own-int 9bef5255d; they wait for the owner.
- The four approved help texts lose their [DRAFT] prefix: strata launch --context, and
"choose the Qwen engine" (strata components use / remove).
Kept on purpose: DeepSeek as a cloud provider and search key, every DeepSeek Harness mention,
docs/release-notes-*.md and history/, docs/DEEPSEEK41.md and DEEPSEEK_MAC.md (the five-line page).
- strata_control/cfg_paths.py gets saved_configs() (it lived in dsv41_paths.py; runtime._repair_config_paths
called cfg_paths.saved_configs() since commit 4 and its AttributeError was swallowed, so no saved config was
repaired before a start: 5 tests of test_cfg_paths found it).
- tests: test_engine_library_shapes no longer patches the removed _ds_entries; test_launch's verdict test loses
the DeepSeek disk words; test_split_gen_keys no longer looks for the restore-point and rid keys the server sent
only to the DeepSeek engine.
- packaging/mac/build_engine.sh: a comment named the deleted DeepSeek package script.
- feed_tool.py build-feed --carry-dsv41 <the last strata-feed.json> --carry-dsv41-base <https folder of the release
that holds the archives>: the dsv41 member goes into the new feed as it was, except that a relative package URL
(a flat release asset) becomes base + name, because the new feed sits in a newer release that does not hold
the archives. Strata 0.2.13 and earlier read it to keep their DeepSeek engine; this Strata never reads it.
- The command line refuses to build a feed until the choice is made (--carry-dsv41 ... or --no-dsv41-carry) and
refuses a base that still holds the <DSV41-TAG> placeholder, is not https or does not end in "/".
- make_model_release.py prints the carry-over in its build-feed line, with the placeholder.
- Test: tests/terminal/test_feed_carry_dsv41.py (URLs, refusals, the CLI choice, and the path an older Control
takes: the entry schema feed._engine_package and transfer.resolve_ref on the carried URL; no network).
- Deleted: packaging/build_dsv41_cuda.sh, build_dsv41_hip_linux.sh, build_dsv41_windows.bat,
packaging/mac/build_dsv41_engine.sh, tools/dsv41 (pack, smoke, tune, refs, its HIP build scripts) and
third_party/project-maya (its notice covered only the DeepSeek port).
- package_engine.py: no strata-dsv41 beside the engine, no --require-dsv41; build_hip_linux.sh (rx9070),
build_cuda_linux_aarch64.sh and spark/build_engine.sh build and package the Qwen engine only (the same tree,
flags and architectures; the packages no longer carry strata-dsv41); package_terminal.py no longer bundles the
dsv41 scripts; feed_tool.py / make_local_feed.py have no --dsv41; make_model_release.py no DeepSeek bucket;
mac/sign-and-notarize.sh: --engine is the generic engine-package step (a model shape's engine uses it), its
DeepSeek words go; docker/build.sh and entrypoint.sh comments; tools/check py-optional without tools/dsv41.
- docs/DEEPSEEK41.md and docs/DEEPSEEK_MAC.md: the owner's five-line page (approved 11-11), each page with the
whole text, so an old link to either lands on the full answer ("on a Mac" in the Mac one).
- Tests: the DeepSeek build-script and --require-dsv41 checks go (test_engine_manifest, test_bundle_tools_paths,
tools/test_quant_header_names, tools/test_no_llama_download's list, test_update_feed's --dsv41 build test).
The feed member for older Strata versions, frozen, is the next commit (the owner chose to keep it).
Conflict: tools/test_setup_llama_archive.py, deleted on f-own-int (e43ff9885, no llama.cpp archive
download in the own stack) and changed on main (fd40eb0fd, its urlopen mock moved to netpolicy):
kept deleted.
irm -TimeoutSec 120 https://github.com/Niko1221/Strata/releases/latest/download/install.ps1 | iex
In Windows PowerShell 5.1 the limit bounds the wait for the answer; in PowerShell 7 it is a total cap, which is fine for a script of a few KB.
Changed in README.md and its seven translations, AGENTS.md, SECURITY.md, docs/AI_SETUP.md, INSTALL.md, TERMINAL_LAUNCH.md and the comment at
the top of packaging/install.ps1. Owner approved the line. tests/terminal/test_net_install_sh.py class DocumentedLines checks both
documented lines and that no copy of an old one is left outside the old release notes.
The three Invoke-WebRequest calls (no -TimeoutSec: .NET defaults of up to 100 s for the answer and 300 s per read) are one Fetch function on
HttpWebRequest, which behaves the same in Windows PowerShell 5.1 and PowerShell 7: Timeout 15 s for the connection, TLS and the server's
headers; ReadWriteTimeout 60 s (no byte for 60 s ends the download; no total cap); the default proxy with the Windows sign-in; one retry after
2 s, only after a timeout. A lookup failure or a refused port fails at once. The failures use the install.sh sentences (W10 with the Windows
proxy sentence after it, W11), with the .NET reason on its own line above them.
Tests: tests/terminal/test_net_install_sh.py class InstallPs1Text (a text test on Linux: the limits and the messages are in the script).
The real run on Windows (black hole, refused port, trickle) goes through the coordinator.
curl -fsSL --connect-timeout 15 --max-time 120 https://github.com/Niko1221/Strata/releases/latest/download/install.sh -o install.sh && sh install.sh
(the script is a few KB, so a total cap is fine here); SECURITY.md's `curl -fsSLO` line gets the same flags. Changed in README.md and its
seven translations, AGENTS.md, SECURITY.md, docs/AI_SETUP.md, DGX_SPARK_LINUX.md, INSTALL.md, TERMINAL_LAUNCH.md, docker/compose/MAC.md and
the comment at the top of packaging/install.sh. Owner approved the line.
curl had --retry 3 and no connect or stall limit; wget had none. Now curl runs with --connect-timeout 15 --speed-limit 1 --speed-time 60
--retry 1 --retry-delay 2 (a TLS handshake that never answers fails after about 32 s; a refused port at once; a link that delivers a byte a
second is never cut); GNU wget with --dns-timeout=15 --connect-timeout=15 --read-timeout=60 --tries=2 --waitretry=2; BusyBox wget with -T 60.
The two failures now name the host (taken from $FEED), say what to check and that nothing was installed (W10, W11); curl's own reason line
stays above them.
Tests: tests/terminal/test_net_install_sh.py (class InstallFetch: a TLS black hole, a refused port, a working server, a slow trickle with
STRATA_SLOW_NET_TESTS=1), tests/terminal/test_install_scripts_env.py (W10 text).
Conflicts (each resolved by keeping both sides):
- .gitattributes: f-own-1b's LF rules for third_party/strata-gguf-py and
third_party/strata-llama, and main's *.jinja LF rule.
- packaging/build_cuda_linux.sh: f-own-1b's optional STRATA_GGML_DIR
override ($ggml) and main's shape_setup line; the cmake line is
$ggml ${STRATA_CMAKE_EXTRA:-} $shape_cmake (no third_party/llama.cpp path).
- packaging/build_hip_linux.sh: ${GGML[@]+...} (the optional override) plus
main's $shape_cmake.
- spark/build_engine.sh: $ggml plus main's ${STRATA_CMAKE_EXTRA:-} $shape_cmake.
packaging/build_sycl_linux.sh, setup.py and tools/test_setup_choices.py
merged by themselves.
The release scripts' Mac stage (rel213/scripts/mac_rel213.sh) copied third_party/ggml/ggml-common.h into metal/, which is a one-line forwarder since the
header swap: a package staged like that would leave the Metal kernels without their block layouts. build_engine.sh builds strata and strata-vision from the
vendored trees and stages third_party/strata-ggml/strata-quant-common.h as metal/strata-quant-common.h and, for two releases, as metal/ggml-common.h,
and compares both with the source before it finishes.
third_party/strata-llama holds what tools/vision builds - llama (src, include), tools/mtmd, vendor/{hash,miniaudio,nlohmann,sheredom,stb} and the whole ggml
with its backend registry and the CPU (x86, Arm), CUDA, HIP, SYCL and Metal backends - as 916 files (20.5 MB) byte-identical to llama.cpp 3cf03257f, upstream
CMake unedited, MIT licences kept; UPSTREAM.md lists every file with its sha256 and says phase 3 deletes the tree with tools/vision. tools/check_vendored.py
covers it (also against a llama.cpp tree with --upstream). tools/vision/CMakeLists.txt takes it as the default LLAMA_DIR; setup.py (vision_llama,
VISION_SOURCES), the vision/HIP/CUDA/Spark/Mac/Windows scripts, sycl/setup_intel.py and the Dockerfile build from it (STRATA_GGML_DIR / LLAMA / --llama stay as
overrides). setup.py has no llama.cpp zip any more; tools/test_no_llama_download.py fails if a script, Docker file or workflow fetches or requires a tree.
build_cuda_linux.sh, build_hip_linux.sh, build_split_{cuda,hip}.sh, build_dsv41_{cuda,hip_linux}.sh, build_dsv41_windows.bat, mac/build_dsv41_engine.sh,
spark/build_engine.sh and metal/setup_mac.py take an optional STRATA_GGML_DIR / GG / LLAMA override (kept for two releases) and no longer require or fetch a
llama.cpp tree for the engine. Docker: the Terminal stage no longer downloads llama.cpp (gguf-py is in the Terminal archive; the image checks it) and
docker/entrypoint.sh no longer links a seed. backends.yml and metal-build.yml drop the llama.cpp fetch and the override. strata-vision still builds from llama.cpp's
own tree in these scripts until it is vendored (next commit).
Since ggml is vendored (own-stack 1A) no CMake file reads that variable: LLAMA_CPP= in build_sycl_linux.sh and $GGML in build_hip_gfx1103.sh were
silently ignored and the build used the vendored third_party/strata-ggml (the same pin, so the right code). build_sycl_linux.sh now takes
STRATA_GGML_DIR= (or LLAMA_CPP=) as a real override and no longer picks up a downloaded third_party/llama.cpp by itself.
third_party/strata-ggml/strata-quant-common.h holds the header text (llama.cpp's ggml/src/ggml-common.h at the pin plus the one Strata edit; manifest row
'edited'); third_party/ggml/ggml-common.h is a one-line forwarder kept for two releases, so every #include "ggml-common.h" is unchanged. The Metal
runtime reads the text under the new name (resource_path.h resource2: <exe>/metal/strata-quant-common.h, else the old name beside the executable, else
the compiled-in path); the Mac package script ships metal/strata-quant-common.h and, for two releases, the same text as metal/ggml-common.h. The
dpct-migrated SYCL-mode copy moved the same way (it is not part of the build). tools/test_quant_header_names.py.
gguf_py_dir() is the vendored third_party/strata-gguf-py (STRATA_GGUF_PY overrides); the engine builds pass -DSTRATA_GGML_DIR only when
STRATA_GGML_DIR names a checkout (ggml_defs); ENGINE_SOURCES includes third_party/strata-ggml; setup.run() no longer fetches the zip. The Terminal
and Control packages carry third_party/strata-gguf-py (+1.8 MB: gguf-py 0.74 MB, the converter 1.0 MB). get_llama_cpp() is only called for a
strata-vision build until that tree is vendored. The feed-model install gate needs no STRATA_TEST_LLAMA_CPP and fails if setup fetches llama.cpp.
An engine is compiled for one geometry and refuses a GGUF of another, so the engine of a new Qwen4 shape must not replace the Strata engine (Flash-Next users keep theirs).
* feed: member shape_engines (engine entries plus shape); a feed model of family qwen4exp_<shape> runs on that shape's engine; build-feed --shapes refuses a model of a shape with no engine
* packaging: package_engine.py --shape (manifest id strata-q4-lite and the shape in the signed manifest), pack-engine names the archive by the component
* Control: strata_control/shape_engine.py installs it into <components>/shapes/<shape>/engine/ (resumable download, archive and manifest hashes, signature, shape, one test start), the run config says component:strata-q4-lite and engine_component.expand resolves it there; strata update brings an installed shape engine up to date beside the older one; strata components engine reports it
* setup (the app's Download, the Terminal's launch) fetches it when the model is chosen; the Terminal's first step checks it instead of the Strata engine; a shape model's min_engine is not compared with the Strata engine; not offered on a Mac yet
* older Controls ignore the member, read only strata-engine manifests and do not know the family, so they never offer the model
Tests: tests/terminal/test_shape_engine.py, tools/test_setup_shape.py.
60 files, 94 names: strata_control, strata_cli, serve, integrations/harness,
metal/setup_mac.py, packaging/make_local_feed.py, sycl/tools/fixups.py and the
tools/ scripts. Left alone: test files and tests/, bench/results, __init__.py
re-exports, apps/host/audit-fixes (moving in 3.5), tools/dflash2/final_tables.py
(its exec() uses the namespace), tools/nvfp4_verify_gguf.py (torch) and the
platform import in strata_control/doctor.py (tests patch doctor.platform).
From the intake report it prints, in the order of the 0.2.11 release, what
would be built, signed and uploaded, with sizes from the previous upload
folder: case A is the feed (a models entry, re-signed at the next sequence)
and the app; case B adds the Qwen engine packages and Controls at a new
version; case C is refused. Steps that need the release key print a
placeholder; the script has no key, build, upload or publish code, and
--execute is refused. --write also writes the plan, the model's DRAFT feed
entry and the release notes, model card and checklist filled from the report
with measured numbers left as [FILL: ...].
The SYCL 0.2.11 engine reads only bf16 selector codebooks, so Arc gets its own tuned file (qwen3.8-flash-next-dflash2.strata1.q4_0-bf16sel.pack, 522,458,112 bytes, own SHA-256 pin) through
SetDefault.pack. Only IQ3_XXS, the set measured on the A750 (tuned 0.6 x1.054, 3 of 3 rounds); other Arc sets keep the stock pack. SYCL never gets the selq4 file, CUDA / HIP / Metal never the
bf16sel one. NOTICE names the second file and no longer overclaims about the text.
(cherry picked from commit 6111c583b70e3c88a3d54039e13d76b19f15742d)