mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #2041] [CLOSED] [Other] setup: agentionai's Signal 3.8 Flash Next as --family signal (AP-Q4_K_XL, AP-IQ4_XS), images with its own encoder #3821
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#3821
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/2041
Author: @clothespin
Created: 10/12/2026
Status: ❌ Closed
Base:
main← Head:signal-installer📝 Commits (10+)
6143044tools/embd_bf16_pack.py: --gguf reads split models, takes --tensor and prints its rounding error (Signal AP-Q4_K_XL's Q6_K table: worst 0.00036), and has a test; --model's header unchanged byte for byted5e9f53docs/SIGNAL_AP_Q4_K_XL.md: manual setup for agentionai's Signal AP-Q4_K_XL (Q4_K/IQ4_NL experts, Q6_K dense: a --compat-bf16 pack plus a BF16 embedding)9ba6d16setup: agentionai's Signal 3.8 Flash Next as --family signal (AP-Q4_K_XL, AP-IQ4_XS), images with its own encoder3abe46bsetup: Signal's two sizes are not NVIDIA-only - main has AMD kernels for every format they use; the flag asked for a reason23250b5dtook backce2d915docs: Unsloth's UD-Q4_K_XL is neither experimental nor NVIDIA-only since23250b5d, and setup keeps every expert in RAM where they fitc347144setup: Signal's menu text gives the RAM sizes the rule uses - every expert in RAM from ~80 GB (AP-Q4_K_XL) and ~70 GB (AP-IQ4_XS), not ~90 and ~8096b1a26Signal was not first class outside setup.py: the app looks for its picture reader under the name setup writes it, and launch counts its partsd639a39The app's version list had no group for Signal, so its two sizes were listed under "Qwen3.6 models"412f149The app gave a Signal version no edition of its own, so its name was the only thing beside itf65cde3Signal was missing from the table of files Strata runs, and from the tool that writes it📊 Changes
33 files changed (+909 additions, -106 deletions)
View changed files
📝
README.de.md(+1 -0)📝
README.es.md(+1 -0)📝
README.fr.md(+1 -0)📝
README.ja.md(+1 -0)📝
README.md(+1 -0)📝
README.pt-BR.md(+1 -0)📝
README.zh-CN.md(+1 -0)📝
apps/host/src/lib/native-catalog.ts(+2 -2)📝
apps/host/src/lib/native-fit.ts(+1 -0)📝
apps/host/src/lib/native-names.ts(+1 -1)📝
apps/host/tests/languages-and-catalog.test.mjs(+8 -0)📝
apps/host/tests/native-fit.test.mjs(+8 -2)📝
data/gguf_fingerprints.json(+34 -2)📝
docs/AI_SETUP.md(+1 -0)📝
docs/DETAILS.md(+2 -1)📝
docs/MCP_SERVER.md(+1 -1)📝
docs/MODELS.md(+23 -0)➕
docs/SIGNAL_AP_Q4_K_XL.md(+309 -0)📝
docs/TERMINAL_LAUNCH.md(+4 -3)📝
metal/setup_mac.py(+2 -2)...and 13 more files
📄 Description
Problem and result
agentionai's Signal 3.8 Flash Next is a fine-tune of
Qwen3.8-Flash-Next in two ~4-bit sizes, AP-Q4_K_XL (101 GB) and AP-IQ4_XS (90.45 GB). The engine runs the files as they
are, but nothing above setup knew them:
--compat-bf16pack;native embedding: token_embd.weight is absent, of another type without a GPU dequantizer;AP-file for UD-Q4_K_XL or for a GGUF Strata cannot run;mmproj-F16.ggufin its own repository, the same file name Qwen3.6 uses for a differentfile;
packaged Terminal's tools, the adoption path, the unattended settings path and the lists that tell a person or an
agent what they can ask for did not have the family at all.
Before: a manual recipe only, and even after setup could install it a person had to know the family name by heart.
After:
setup.py --family signal --model AP-Q4_K_XL(orAP-IQ4_XS) downloads, packs, writes the BF16 embedding andthe config, and starts the server; the size also appears in the app's list with a group and an edition of its own, and
strata launch --plan --model ap-q4_k_xlresolves it with no--familyat all. Both sizes ran through setup and thespeed check on one RTX 4090 (Validation). No engine source changed, and the configs setup writes for the original model
and for Unsloth's file are byte for byte what
mainwrites (Validation).Related discussion
This text replaces the description of #2041, which was closed in the October 19 tracker reset. I searched open and closed
issues and pull requests for "Signal", "agentionai", "AP-Q4_K_XL" and "AP-IQ4_XS" (the first results of each); #2041 is
the only one that adds Signal to setup. Builds on #290 (
--embd-gguf). No scope agreement beyond the review on #2041.This adds a family; it changes no default. The measured run and its individual requests are in the results-only pull
request #3573, as CONTRIBUTING asks.
Approach
Sixteen commits on
mainat7dd5cf18(0.2.4.2). The branch is a rebase of the six that were reviewed on #2041, plusten that finish the job outside setup.py. The rebase is verified rather than assumed:
git range-diffsays five of thesix are byte-identical patches and the sixth differs only in the three conflict hunks (a
--compat-bf16pack argument,the
embd_bf16flag and the picture-encoder name, where upstream added a family in between).tools/embd_bf16_pack.py:--ggufalready existed (for Gyro-S's Q6_K table). It now reads a split model throughiq_pack.py's model reader, takes--tensor, records the rounding method in the file, and prints the worst roundingerror. The
--modelheader is unchanged byte for byte. Two new tests are intools/test_iq_pack.py.docs/SIGNAL_AP_Q4_K_XL.md(new) and a pointer indocs/MODELS.md: the manual workflow, its speeds, and what wasand was not checked.
setup.py: thesignalfamily and the two models, pinned at revisioneba565bewith each file's size and SHA-256,and the picture encoder pinned too (saved as
mmproj-Signal-3.8-Flash-Next-F16.gguf). For this family only, setupwrites
<pack>/token-embd-bf16.ggufand adds--embd-ggufto the config. Alsotools/test_setup_signal.py(11tests), the README,
docs/AI_SETUP.md,docs/DETAILS.mdanddocs/MODELS.md.budget_model()and the--gguf-dirname check now read a one-file name with the
AP-prefix.23250b5dtook back (Q4_K experts have an AMD path;AP-IQ4_XS uses UD-IQ4_XS's types). Setup only warns on AMD; nothing is blocked.
23250b5d. Reviewerssaw it in #2041; I can move it to its own pull request.
unsloth_budget()gives 80 and 70 GiB (arena + 16 GiB); the text, the fallback table and
docs/AI_SETUP.mdnow say so. The rule is notchanged.
strata_cli/launch/modelstate.py: the family in the table of files Strata runs, so a Signal install is recognised,listed and adopted instead of looking like somebody's loose download.
tools/gguf_fingerprints.jsongains the tworows for the sizes, measured on the files the pins point at (not made up), and
tools/make_gguf_fingerprints.pylearned the family so a later
--writekeeps them.mmproj-F16.gguf, which on a PC that also has Qwen3.6-35B-A3B is a different 4.7 MB smaller file:setup.py'sunattended path and
metal/setup_mac.py. The Mac Terminal's installer now renames it and checks the pin the PCpaths check.
edition ("Signal"), the full name in the model list, and the picture reader looked up under the name setup writes.
familydescription,docs/MCP_SERVER.mdanddocs/TERMINAL_LAUNCH.md, and the six translated READMEs, which listed the other models without Signal.strata_cli/launch/adopt.pyand the unattended settings path: a Signal file already on disk can be adopted andgiven settings, including the BF16 embedding copy beside the pack, which is reported as a problem when it is
missing. Not unsloth or nvfp4, which are still absent from that path: out of scope here.
Validation
Tested at
e208ba89onmain7dd5cf18. Linux 7.2.11, RTX 4090 (24 GB, driver 615.78.08, CUDA 13.4), Ryzen 97950X3D, 93.5 GiB RAM at the firmware's defaults (DDR5-3600). The Python suites ran on CPython 3.14 with the
repository's
requirements.txtplustextual,numpyandpyyaml. The setup runs and the speed rows below weremeasured before the rebase, at the earlier tip
04443aebonmain9de04cd4, with engine 0.1.46.3 built from thosesources; they have not been repeated on the rebased branch.
Passed:
The default path is byte-identical, measured today on this branch: the 25 configs
tools/test_setup_golden.py'srecord()builds (5 PCs x 5 choices) were written out with--writein a worktree at7dd5cf18and at this tip, andthe two files
cmpclean..venvequivalent:tools/test_setup_*.pyandtools/test_iq_pack.py- 865 passed, 1 skipped, 237 subtests passed,53 failed. All 53 are under Failed, and each one also fails at
7dd5cf18.tests/desktop: 32 passed, 6 skipped, 8 subtests passed.apps/host(npm test): 974 passed, 104 skipped, 1 failed (under Failed).tests/terminalin full: 1637 passed, 47 skipped, 332 subtests passed, 31 failed (21 min 39 s). The 31 are underFailed, with the proof that none of them comes from this branch.
Two failures the first-class work introduced were fixed on this branch and pass:
tests/terminal/test_own_files.py::Table::test_every_size_setup_installs_is_in_the_table(the file table had noSignal rows) and
tests/terminal/test_bundle_tools_paths.py::ByPathToolsAreBundled::test_every_file_run_by_path_is_in_the_bundle(
tools/embd_bf16_pack.pyis run by path and was not bundled).Setup end to end, each into an empty data folder with its own settings file, the engine already built: AP-Q4_K_XL on
2026-10-21 (the file already downloaded,
--gguf-dir): the SHA-256 check, the pack and the 5 GB draft-layer download;AP-IQ4_XS on 2026-10-19 with the 90 GB download (engine 0.1.45.3), and again on 2026-10-21 on the files of that run,
where setup wrote the same arguments.
Speed,
tools/strata_bench.py(3 runs per test, thinking off, temperature 0), one server start per run, nothing elseon the GPU, 2026-10-21. Median of the runs;
docs/SIGNAL_AP_Q4_K_XL.mdhas every run, the slowest and fastest request:The hand-built config differs from setup's in six settings at once, so the rows do not say which of them matters. Also
measured (
tools/ab_engine.py, 4 rounds): the engine's default beat--adapt-every 1 --adapt-swaps 80 --adapt-decay 0.97in 15 of 16 pairs at 100 tokens (60.8 against 49.8 tok/s) and 16 of 16 at up to 512 (65.7 against 59.7); and--kv int8against--kv q4_0, two runs each alternating, was 60.5 against 64.5 for short answers, 74.9 against 72.1in the agent session and 2741 against 2693 for the 16K prompt.
strata launch --plan --model ap-q4_k_xlwith no--family, on this branch: it resolves the size itself (Signal3.8 Flash Next AP-Q4_K_XL, 101 GB, 128K context, pictures on the card, draft layer on) and changes nothing.
AP-IQ4_XS answered "What is 17 * 23? Answer with just the number." with
391on 2026-10-19 through llama-swap after acold load (37 of 40 draft tokens accepted). One short request.
AP-Q4_K_XL, 2026-10-11 on the pre-rebase branch (engine 0.1.43): setup's pack, tokenizer and embedding file were byte
for byte the hand-built ones in the document, and it passed the document's picture checks and the text checks of
docs/ORCA.md, except one answer (the second-largest number in a list: 100 for 99).Failed:
tools/test_setup_golden.py: 48 sub-test failures, both here and at7dd5cf18(run in a worktree). It compares thecomputed configs with the stored
tools/test_setup_golden.json; the configs this branch computes are byte for bytewhat
maincomputes, as shown under Passed.tools/test_setup_dsv41.py::test_no_engine_stops_before_the_download(4) andtools/test_setup_download.py::Resume::test_a_killed_download_continues(1): 5 failed, 108 passed at7dd5cf18in aworktree, the same 5 here. Nothing here touches the download path.
apps/host/tests/timeskip-real.test.mjs:98, "the revision command (a grandchild of the job) was ended too": fails at7dd5cf18with the same assertion (true !== false).tests/terminal: the same 31 in two runs of the same 12 files in the same checkout (31 both times, identical testnames, no drift). 28 of them also fail at
7dd5cf18. The other three(
test_discovery.py::GuiLayout::test_list_and_the_wizard_agree_on_the_installand twice intest_shared_models_folder.py) are install-layout tests: they fail in this checkout, which is a registered Stratainstall with a data directory, they failed here before any commit of mine, and they pass in a clean worktree at both
7dd5cf18and this tip. They are this machine's layout, not this branch. They were 34 before the last five commits,which is where the two fixed failures above come from.
monitor client) sit in
action_requiredon every head, waiting for a maintainer to allow them.Not run:
picture encoder on the CPU, and pictures with AP-IQ4_XS. Kernel-level AMD checks are in the commit message of the
fourth commit; they are not a model run.
metal/setup_mac.pywas changed and has never been executed: no Apple hardware here. It is Python, and no file undersrc/,sycl/,metal/,cuda/orinclude/changed, so no backend was rebuilt for this pull request.--model Q8_0for Signal (setup should refuse it; I have not seen it do so);embd_bf16_pack.py --modelend to end(no safetensors checkpoint here); setup's download of AP-Q4_K_XL (the file was already there).
strata bench run): its only profile is the original Qwen3.8-Flash-Next and it saysfine-tunes need a profile of their own, which does not exist. The speeds above are the community guide's quick check
and are not standard results.
default.
Limits
setup's AP-Q4_K_XL config (71.3, 71.5 and 64.5). They were measured with the firmware at its defaults (DDR5-3600 on
four modules) and depend on it. They predate the rebase and the engine has moved since.
GiB of this 93.5 GiB PC available while it ran, with a desktop session open. In two of its three runs the kernel logged
a page-allocation failure in the engine while the server loaded, followed by the NVIDIA driver failing to create a DMA
mapping (
Assertion failed: status == NV_OK @ mem_desc.c:4326). The engine carried on and both runs finished without afailed request, but they hold the only slow requests of the session (a 4K prompt at 718 tok/s, one agent turn that took
11.1 s to its first token). The cause is not established. A PC with less memory to spare may behave worse; I did not
measure one.
budget_model()change reads any one-file name ending in-<model>.GGUF, not only Signal's. I did not checkwhether another family's file reaches it.
tools/make_gguf_fingerprints.py --writewas not run against the whole table, so a later regeneration by someone else may reorder or reformat entries; I did
not check what it would do.
READMEs for their model lists.
no Mac model installer for family 'signal'), because the Mac install path has no Signal entry. That is the state of things today, not a claim that itcannot work.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
STRATA_PREFILL_PIPE_FLOOR, the smallest pipelined prompt chunk (default 512, as before) #4794