Commit Graph
224 Commits
Author SHA1 Message Date
Niko1221 83cadd32fe split HIP: gfx11/gfx12 WMMA paths, one binary with code objects for gfx1100-1103 gfx1200 gfx1201, kernel self-test on cards not run (hip/selftest*), exe lookup strata-split-N-amd, experimental AMD only on explicit on, packaging for N=2,3,4 2026-11-02 12:39:12 +01:00
Niko1221 202bb94ae6 split HIP: AMD gfx1201 starts the split by default (AUTO_SPLIT_AMD_ARCHS), off by key, preset or STRATA_SPLIT_ENGINE=0; tests and docs 2026-11-02 12:27:01 +01:00
Niko1221 2c1771dce2 Merge f-0291-split (up to ea2aed12c: auto/on/off switch, drafting fix, i-quant sets, PF_JOB) into f-0291-split-hip; AMD opt-in rule (AUTO_SPLIT_AMD_ARCHS), strata-split-N-gfx1201 lookup, packaging/build_split_hip.sh, AMD tests 2026-11-02 12:13:42 +01:00
Niko1221 ac1965edea split: the all-cards split engine is automatic by default, with an off switch
strata launch --split-engine auto|on|off (settings field, saved in the preset and written to the launch config, so an off survives updates);
STRATA_SPLIT_ENGINE=0/1 for testers. auto (the default) uses the split engine where the rule says yes and says nothing where it says no; on says
why it cannot run; off never. The rule also leaves the layer split for choices the split engine does not honour (DFlash2, custom engine arguments,
replicas, a conversation memory format other than int8). The engine is looked up per card count and architecture (strata-split-N-smCC, then
strata-split-N); sm_120 joins sm_86 as a tested architecture. Tests: modes, auto/on/off, silent refusals, the flag, a saved off.
2026-11-02 10:44:43 +01:00
Niko1221 43c40ecb19 split: the launcher side: apply_to_config probes the cards (nvidia-smi) and RAM, reads the GGUF, and turns the run config into the split engine's with the normal one kept as fallback; strata launch calls it only when the config says split_engine true (or STRATA_SPLIT_ENGINE=1 for testers); tests 2026-11-01 21:05:45 +01:00
Niko1221 687527d7a3 Int3 merge f-0291-ds-left final (ea2e791d8): screens say 5 experts on 3+ RDNA4 cards 2026-11-01 13:15:20 +01:00
Niko1221 ea2e791d8b Screens and app say 5 experts on several RDNA4 cards that hold half of the experts, as the engine does
The engine gives 5 experts per word on two or more RDNA4 cards that together hold at least half of the experts (4 x R9700), but strata launch --plan, the Speed screen and the app's Speed label called Full quality the default there.
dsv41_fit.rdna4_faster() applies the engine's rule with the plan's own numbers: one card the run uses (on Windows one AMD card): yes; several: yes when the plan puts at least half of the set's experts on them (3 or more R9700 for every official set; two hold 37-47%, so they keep 6). strata launch uses it with the chosen model; the model catalog carries rdna4_faster per DeepSeek size for the app (NativeSize, Speed label); --speed help and docs/MODELS.md say it. Other makes and older Radeons are unchanged.
2026-11-01 13:14:36 +01:00
Niko1221 0f7159ca35 Int3 merge f-0291-ds-left (386d2e441): #4677 stop bound, 5 experts by default on one RDNA4 card 2026-11-01 13:07:20 +01:00
Niko1221 386d2e4416 DeepSeek: 5 experts per word by default on a single RDNA4 card (R9700, RX 9000); --experts N still wins
One R9700 holds under a fifth of a 2.25 bpw set, so the CPU lane and the SSD set the speed, as on the 16 GiB cards and the multi-card RDNA4 rule that already take 5.
1 x R9700 on p620 (125 GB RAM), 2.25 bpw, frozen expert profile, 5 interleaved pairs, 5 against 6 experts: decode 15.24 against 13.08 tok/s (+16%, 5 of 5 pairs), a scripted agent loop -24% wall time (5 of 5), the long-read loop -12% (5 of 5). KL against the 6-expert run 0.030 (6 against 6: 0.008); against the original model 0.1106 against 0.1067-0.1071. quality027 quick: 18 of 19 with 5 experts and with 6, the same task flagged in both.
ds4_experts_rule.hpp: experts_per_word() takes single_rdna4 (the engine passes rdna4() with one device); DS4_DEFAULTS=026 gives the model's 6 back. The Terminal's Speed words (strata launch --plan and screens), the app's Speed label (arch added to RunCard) and docs/MODELS.md say the same. Several RDNA4 cards keep the existing rule (they must hold half of the experts); the screens still do not mirror that one.
2026-11-01 13:04:39 +01:00
Niko1221 f009913c6d Launch: the progress lines name a DeepSeek set as the screen does (ISTA-DAS 2.25 bpw, not 'deepseek41 IST-DAS-2.25bpw'), and the DeepSeek engine package is said to be about 430 MB, not 70 MB (G4 clean-machine findings) 2026-11-01 12:43:37 +01:00
Niko1221 63a9b7d2ee Int3 fix (ds-left 67eb5f1f5 beside fixes 27060866e): the own-files disk verdict reads DeepSeek's memory words, so it only applies to the deepseek41 family; other families keep 27060866e's rule (no disk warning for files used where they are) 2026-11-01 12:34:18 +01:00
Niko1221 58aeca07da Int3 merge f-0291-ds-left (67eb5f1f5): DeepSeek plan numbers, false disk warning. dsv41_fit.py: ds-left's accounting replaces the older AMD fit of 896818a3d (AMD_DENSE_ON_GPU_GB / AMD_RESERVE_GB); that commit's test (2,366 / 12,147 within 0.5%) is superseded by ds-left's MeasuredCardAccounting (within 3%, engine startup lines of d93547aed) and is removed 2026-11-01 12:20:52 +01:00
Niko1221 54ef8615bb Int3 merge f-0291-term-small (da8c7f4a4): Terminal fixes and tests 2026-11-01 11:19:09 +01:00
Niko1221 67eb5f1f57 DeepSeek plan: experts on the cards from the engine's own accounting; own files need no free disk
The plan said 2,947 experts for one R9700 and 13,180 for four; the engine held 2,366-2,566 and 12,147-12,192. It took 4.5 GB of dense weights and 1.15 GB of reserve per card and forgot the driver context, the prompt buffers and the dense weights every card repeats. Constants now come from the engine's startup lines (f-042-maya-rc d93547aed): 2.25 bpw one R9700 2,543, four 12,260; boston 2 x A6000 within 1%, A4000 and RTX 5070 within 5%.
strata launch --model-path on files that stay where they are printed 'tight: needs more disk space' with nothing to download: the menu row counted the whole download against Strata's folder. With own files the verdict now comes from the memory words alone.
2026-11-01 09:56:34 +01:00
Niko1221 34c0f7dae7 Launch: a remembered card choice is said when the PC has more cards (NVIDIA DeepSeek after --gpu 0 stayed on one card without a word); Strix Halo: a fixed small expert cache lowers setup's own RAM budget (the person's cache and budget are only warned about) and a silent exit code 1 gets a plain next step 2026-11-01 09:51:26 +01:00
Niko1221 daed630ed5 ISTA-DAS in the last user-facing lines: the setup --check list and the own-files message print the set's label (ids unchanged); comments 2026-11-01 09:38:03 +01:00
Niko1221 2e8fb221cf Trial2 merge f-0291-gh2-app (0dfa2d9b1) 2026-11-01 03:46:05 +01:00
Niko1221 0a02ee4108 Launch: a runtime host left in failed or stale is cleared before the tuning and before the start, the 'profile already has a live runtime' message names launch --stop and --retune, and --save-preset is kept when the start fails after the tuning (#4824) 2026-10-31 23:03:01 +01:00
Niko1221 0f2778ae22 Trial merge f-0291-fixes (dde320ffa): keep both _parallel_lines and _broken_nvidia_note in launch/cmd.py 2026-10-31 22:00:53 +01:00
Niko1221 2784dfdcc4 DeepSeek --parallel: the engine flag probe lives in its own module (strata_control/dsv41_flags.py), because serving must not import dsv41_engine.py (it reaches the network) 2026-10-31 20:13:11 +01:00
Niko1221 93af8275dc launch: DeepSeek Parallel step test; comments say DeepSeek is one at a time unless --parallel is asked for 2026-10-31 19:56:07 +01:00
Niko1221 009491d561 strata launch --parallel for DeepSeek: the launch prints what it does and the numbers, as the plan does; tests; app test fixture lists the setting 2026-10-31 19:50:10 +01:00
Niko1221 094132ca77 strata launch --parallel N for DeepSeek: passed on instead of dropped, off by default; --plan says what it does with the measured numbers; a pick beyond what was run warns (Windows, Mac, small or unknown card); an engine from before the flag is asked (--help) and the launch goes on one at a time; the TUI step offers it for DeepSeek 2026-10-31 19:33:28 +01:00
Niko1221 dde320ffaf Launch: after a saved --backend choice the launch says which make is used; the plan for an Intel card no longer announces a draft layer download and says Strata builds the pack 2026-10-31 12:18:14 +01:00
Niko1221 b0fde18b16 Launch: a PC whose NVIDIA driver does not answer but has working Intel Arc cards is told so, with the one next step (--backend intel) 2026-10-31 12:15:24 +01:00
Niko1221 4f0fafbc8f Warning for UD-Q4_K_XL on a Strix Halo in setup, launch and the plan (can stop on the first request after a start; points to UD-IQ4_XS; warn only, written to be removed with the stall fix) 2026-10-31 12:05:53 +01:00
Niko1221 d88531297c Launch on an Intel Arc card prepares the model itself: setup.py --prepare-pack builds the pack from the GGUF files and fetches gguf-py on its own, the run settings are written as before, and docs/INTEL_ARC.md's quick start is true 2026-10-31 12:05:53 +01:00
Niko1221 17a572f3e3 Launch: --backend nvidia|amd|intel|auto chooses the engine make on a PC with cards of several makes and is remembered; --plan and the Cards step say the Intel cards exist; a chosen make is never refused 2026-10-31 12:05:52 +01:00
Niko1221 ab0ed4feab Launch: the Intel Arc 'cannot set up this card' message points to docs/INTEL_ARC.md and the pack tool 2026-10-31 10:15:14 +01:00
Niko1221 86c94204a1 Naming: the DeepSeek sets are ISTA-DAS on screen and in the docs; the ids (--model IST-DAS-2.25bpw) are unchanged and the new spelling is accepted too 2026-10-31 09:51:11 +01:00
Niko1221 27060866eb Launch: no disk warning for model files used where they are, and the tight-fit notice no longer says tight twice 2026-10-31 09:50:48 +01:00
Niko1221 987ebd442f Launch: list the Arc Pro B65 (0xe222) and the other discrete Battlemage/Alchemist ids, so two cards are both named for a launch that names none 2026-10-31 03:10:24 +01:00
Niko1221 e4031fc4d0 AMD cards fix, review round: setup's pinned one-card pick is still written (with gpus_by), only DeepSeek on AMD is judged when a copy adopts an earlier card, the launcher uses the plan's card rule and remembers a named card, Windows uses setup's amd_rank and no Linux arch list, message names strata launch --gpu 2026-10-31 03:05:41 +01:00
Niko1221 6f7f763ce5 DeepSeek on several AMD cards uses every card when none was named: setup's own pick is no longer 'asked'; old configs of that pick move to every card at the start; the launcher and the app stop keeping it 2026-10-31 02:56:19 +01:00
Niko1221 7851a8dab6 Merge f-038-ds-unsloth (final 4148c5125) 2026-10-30 20:26:56 +01:00
Niko1221 4148c51257 launch: ask dsv41_fit.not_here directly (the launch tests stub the setup object) 2026-10-30 20:25:25 +01:00
Niko1221 bd3c5cd4cb Keep Unsloth's 1-bit DeepSeek sets off a DGX Spark until a Spark run passes (AARCH64_NOT_YET, one rule beside the Mac one) 2026-10-30 20:23:59 +01:00
Niko1221 99866a47a2 Merge f-029-urgent (bc694233b) 2026-10-30 20:06:15 +01:00
Niko1221 32806f82aa Keep Unsloth's 1-bit DeepSeek sets off the Mac until the Metal engine has an IQ1_S kernel (lists, --model, --model-path, app check, setup) 2026-10-30 19:57:24 +01:00
Niko1221 7146d6983f Setup, Control and Terminal: a child's non-UTF-8 output (GBK adapter names) no longer kills Step 1 or launch (#4675) 2026-10-30 18:44:41 +01:00
Niko1221 d7cb41ba87 DeepSeek local GGUF: accept both layouts of the IST-DAS sets, the pinned four-shard one and ISTA-DASLab's six-shard one (owner decision, option B)
The download default stays on the four-shard pin cb02422c; nothing is fetched under the new names. The six-shard files (Hub commit a419d74c,
27 October: five shards a set, the Engram as the sixth) and the four-shard files with the first shard ISTA re-published on 26 October (what the
Hub's last four-shard commit 653a9874 serves; #4237 was refused by the app because only the pinned size of shard 1 was known) are taken from
files already here, by size and SHA-256.

- setup.py: DSV41_ISTA6_FILES (15 files), shards6 on the three sets, dsv41_layout_of / dsv41_parts / dsv41_pack_layout; install_dsv41 picks the
  layout of a --gguf-dir folder (both whole: the pinned one), packs the five files with the Engram as --engram, and builds the pack again when it
  was made from the other layout's files. The converted Engram (same name and size, another hash) is accepted beside the pinned one.
- strata_control/dsv41_sets.py, models.py: the app's check and `strata models import` know the six-shard names, the re-published shard 1, and
  that a folder with both whole layouts of one set is that set once.
- strata_cli/launch: --model-path and the guided screen name what is missing in the layout that is there.
- tools/dsv41/pack_gguf.py: --engram as the sixth shard of a six-shard split; the pinned release's Engram serves the six-shard shards too.
- Tests for each; docs/DEEPSEEK41.md.

Builds on the cherry-picks of #4348 (integer tensors in the GGUF reader) and #4632 (StackArc3's six-shard work, option A), which this
commit reworks so the four-shard pin and files keep working unchanged.

Related: #4237, #4256, #4632.
2026-10-30 00:32:32 +01:00
StackArc3 c4e975cc7a Accept ISTA-DASLab's six-shard DeepSeek V4.1 Flash GGUF layout
On 27 October 2026 ISTA-DASLab replaced the four-shard IST-DAS builds on
the Hub's main with six-shard builds (llama.cpp b11870+ layout), and
--model-path with those files failed with "...-00001-of-00004.gguf is
missing". The v0.2.7.1 pin still serves the old files.

- Pin a419d74c: five shards per build named of-00006 and the shared
  Engram as the sixth. The Engram was converted in place (same name and
  size, new hash).
- pack_gguf.py counts an --engram file 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 single tensor per_layer_token_embd.weight.
- An Engram whose finish mark names an old hash is fetched again in the
  same run. One whose mark has no hash is hashed: a match is kept and
  marked, a mismatch is fetched again. A user's own old one is refused
  with the reason.
- A pack from an earlier run is rebuilt unless it names this run's files.
- Six-shard only; four-shard files are ignored and stay on disk. The
  first-release name tables are now empty. No engine code changes.

Related: #4237, #4256.
2026-10-30 00:16:56 +01:00
Niko1221 18200cffaf Merge f-028-arcb65-pipe: pipelined B-series (two Battlemage stages) is the default 2026-10-29 17:25:33 +01:00
Niko1221 74e1f86442 Setup and the launcher write --spec 2 for exactly two Arc B-series cards
On two Battlemage cards the engine pipelines the two cards' verify windows by default, and then answers as a 2-token window
whatever --spec says (pipelined --spec 4 equals serial --spec 2 in 100 of 100 agent requests; serial --spec 4 differs in 3).
So the generated config says --spec 2 there: the same answers, and about 20% faster than the old --spec 4.

strata_control/intel_spec.py holds the rule: the cards are found by PCI device id (the xe driver and an id in 0xE200-0xE2FF,
the id the engine's architecture enum comes from), never by name.  It changes only setup's own default "--spec 4", only
with the draft layer on, and only for exactly two such cards.  A --spec in "user_args", any other value, one card, an
A-series card in the pair, three cards and "mtp": false are left alone.  Applied in three places: sycl/setup_intel.py when it
writes the run config of a layer split (the copy in "args_written" follows, so a rerun does not take it for a hand edit),
the launcher's derive_config (before the person's --set options, which win), and the Intel server's engine_args at every
start (a config an older setup wrote).  Tests in tests/sycl/test_intel_two_card_spec.py.
2026-10-29 15:52:37 +01:00
Niko1221 32f0c44f08 Merge f-028-par 2026-10-29 15:11:01 +01:00
Niko1221 92a867be17 Merge f-arc-cpumsg 2026-10-29 15:11:00 +01:00
Niko1221 4fdb563a34 Four-card AMD serving profile: 32 slots in 4 groups, split 13,26,39, chunk 2048 (setup and launcher)
For exactly four Radeon AI PRO R9700 cards (at least 28 GB each, hip, no --peer-device) running Qwen3.8-Flash-Next
IQ3_S, setup.py and the launcher fill in what the person has not chosen: parallel 32 with --batch-groups 4, the layer
split 13,26,39 (the output head costs about four layers on the last card), --prefill 2048 (in place of the "auto" setup
writes), and STRATA_QSA_SLOTS, STRATA_BATCH_SELF_COMMIT and STRATA_SLOT_COPY_DIRECT in the run config's env. A setting
of the person's own always wins; STRATA_FOUR_CARD_PROFILE=0 or "four_card_profile": false turns it off. The prompt cache
stays on (agent follow-up turns wait 0.8 s for the first token instead of 1.5 s).

Through the launcher's configuration on the 4 x R9700 box (total tok/s, warm round, parallel 4 before): 1 request 66.6 ->
67.9, 8 at once 156.6 -> 261.2, 32 at once 155.4 -> 369.6, four 7.9K prompts out 24.3 -> 35.0 and in 1892 -> 2706.
batch_test with the profile's flags: 32 of 32 slots identical to solo; a 25 minute soak of 32 clients: 0 errors.

serve/server.py no longer says "at most 8 requests" for a layer split (each pipelined group holds its own slots).
Tests: tests/terminal/test_amd_four_card.py.
2026-10-29 15:06:10 +01:00
Niko1221 5596cb2c5b launch: do not point at an engine log that was never written (#3714)
When the runtime refused the start because another host still owned the profile ('already has a live managed runtime'), no engine existed
and no log was written, but the error ended with 'The engine's log has the reason: <path>' and the screen showed an empty folder. A busy
profile now gets its own sentence (the other server, and strata launch --stop), and a log that is not on disk is no longer named, here or
in the sentence after an engine that stopped while loading.
2026-10-28 23:52:42 +01:00
吴佳浩Alben 2f9c6fc35c Fix #4209: a saved preset's lower-case model tag reaches setup as its key
strata_cli/launch/settings.py saves the model into a preset/choices file lower-case ("--model iq3_xxs"),
and LaunchRunner.setup_args() forwarded it unchanged. setup.py's --model choices are the MODELS table's own
keys ("IQ3_XXS", "Gyro-S"), so argparse refused the argument: starting a saved preset with any choice that
differs from the installed config (--vision, --context, --kv) reran setup and stopped there. Typing the same
name on the command line worked, because cmd.py normalises it through Catalog.resolve().

setup_args() now resolves the pair through the same Catalog.resolve() and keeps the old value when it
cannot. The except is deliberately broad: the resolver reads the model table, and a table that cannot be
read here must not turn a launch that worked into a traceback - the values then go on to setup unchanged,
exactly as before. The new test drives that case with a resolver that raises.
2026-10-28 23:31:20 +01:00
Niko1221 7a80b3a96b Say plainly why a CPU without AVX-512 stops the engine: the pack folder without native_experts.txt, not the CPU, is the cause; doctor warns before the start, the launcher gives the next step, the SYCL engine names the folder like the CUDA one does 2026-10-28 15:37:12 +01:00