This fork carries local patches on top of NVIDIA/hyperflare-inference, the upstream repository formerly named NVIDIA/flare-local-inference and NVIDIA/spark-local-inference.
This page lists each active and retired patch, what it does, and whether upstream still needs it; FORK.md describes how the fork is maintained.
| Item | Value |
|---|---|
| Upstream base | 9375d679 (2026-11-28), 12 commits past tag v0.4.1, upstream's newest tag |
| Recipes fork | Raydius/hyperflare-recipes on upstream recipes 72498d4a; its lock names one commit of this repository |
| FlashInfer | Raydius/flashinfer d0301ec6: upstream 335459b2 plus one fork commit |
| Release name | v0.4.1-r1; it names v0.4.1 because that is the newest upstream tag that is an ancestor of the base (docs/release.md) |
| Branches | deploy (this branch): the patch stack plus the DFlash2 and Elephant-1 work above it. main: an unchanged mirror of upstream |
| Serving image | ghcr.io/raydius/hyperflare-inference:<version>, built by .github/workflows/container.yml on each vX.Y.Z or vX.Y.Z-rN tag (docs/container.md) |
| Prepared core | raydollete/Qwen3.8-Flash-Next-HyperFlare-A16-Abliterated-1M, exported with v0.3.2-r2; it has not been loaded on v0.4.1-r1 (docs/TODO.md) |
| Base-move record | One entry per move since 2026-10-24, with its upstream range, conflicts, drops and retired patches, in FORK.md |
- Verdict. Each active patch states whether it is still needed on the base: kept, or adapted when it was also fitted to a mechanism upstream added. Each retired patch says what replaced it, usually an upstream commit.
- Judged against. Core patches: upstream
9375d679. Patches marked "recipes fork": upstream recipes72498d4ainstalled with that core. - Where the code is. A patch marked "recipes fork" has its code in that repository, under
hyperflare_recipes/andqualify/. Upstream moved model recipes, reusable components, reference models and qualification drivers there in17bb3c4a. - Unrun checks. Checks that have not run on this base are listed in docs/TODO.md and the recipes fork's docs/TODO.txt.
- Qwen 3.8 DFlash2. Packages are exported through upstream's own path (
d68ed8f5,--speculative-method dflash2, since 2026-11-04). The fork'sqwen38_dflashrecipe was retired on 2026-11-10.
The RTX 5060 Ti (16 GB, compute capability 12.0) has served cores exported on an RTX PRO 6000 that fit in its memory, and runs the kernel and component tests. It cannot export a core or download one by hardware detection.
| Use | On the RTX 5060 Ti | Basis |
|---|---|---|
| Serve a local core exported on an RTX PRO 6000 | Worked before the move to c0c4f798 for cores that fit in 16 GB; not yet run on 9375d679 |
Elephant-1 cores served at 11,596 MiB (concurrency 4) and 10,428 MiB (concurrency 2) |
| Export a core | Refused | Export names a core by its GPU platform; the card's PCI ID 0x2d04 is in no list of helios/src/core/naming.rs, so export stops with "NVML reports unsupported GPU PCI id" |
flare run <model> from Hugging Face |
Needs --revision |
Hardware detection reads the same platform lists and stops with "GPU has unsupported PCI ID 0x2d0410de; specify --revision" (flare/src/hardware.rs) |
| CUDA kernel and component tests | Works | On the pinned revision d0301ec6, FlashInfer's tests for the kernel families qwen38 prepares pass apart from 13 that fail the same way on 675984cd (upstream test defects); the qwen38 fused-rotation CUDA tests pass, factor-4 YaRN case included; the dense Qwen DSpark draft graphs match their reference on fabricated weights |
- Why a core moves between the cards. Both report compute capability 12.0, which
ignition/planning.pyaccepts as SM120, so prepared kernels and compiled forwards run on either. - The patch it needs. A core records the exporting card's persisting L2 cache size: 25,165,824 bytes on an RTX PRO 6000, against a 20,971,520-byte maximum here. Upstream passes the recorded size unchanged; the fork bounds it by the serving card (the persisting L2 patch below).
- Loaded with the patch on upstream
59adc480f, not with the fork's build. Aflarebuilt from the branch of PR #622 loaded the Elephant-1 coregb202-tp1-202611262358on an RTX 5060 Ti and answered a request. The fork's own build on9375d679has loaded no core on this card, and the L2 bound's other two context paths are covered by unit tests only (docs/TODO.md).
-
patch/00-fork-tooling— added 2026-10-20- What it does: FORK.md and
scripts/fork/{sync,rebase}.sh: the patch-stack workflow for both forks; the scripts act on the repository of the working directory.sync.shkeeps a fork tag whose name upstream uses for another commit, reports it, and still fast-forwardsmain; its drift report measures against upstream release tags and ignores the fork's-rNtags. Never upstreamed - Still needed: Yes, adapted —
9375d679has noFORK.mdorscripts/fork/; without the tag handling the sync stops atgit fetch --tags, because upstream'sv0.2.3and the fork's name different commits
- What it does: FORK.md and
-
Serving image published to GHCR — added 2026-11-16 · Release (
.github/workflows/container.yml)- What it does: On each
vX.Y.ZorvX.Y.Z-rNtag ondeploy, builds the repository'sDockerfilewith the version stamped byscripts/set_release_version.py, pushesghcr.io/raydius/hyperflare-inference:<version>(the tag name without itsv) and:sha-<commit>, then pulls thesha-tag back and requiresflare --versionto report the tag andflare run --helpto list--generation-defaults,--max-context-tokensand--chat-template. The container and release workflows refuse any other tag name, including numbers with leading zeros, before a version is resolved, andscripts/set_release_version.pyrefuses the same strings. A manual run on a version tag rebuilds that release; on a branch it pushes only:sha-<commit>at version0.0.0 - Still needed: Yes, adapted — upstream publishes no serving image (
9375d679has nocontainer.yml), and its release workflow and stamping script acceptvX.Y.Zonly. Neither workflow has run on GitHub from a revision tag (docs/TODO.md)
- What it does: On each
-
patch/01-generation-defaults— added 2026-10-21 · Serving- What it does:
flare run --generation-defaults <JSON>merges sampling keys,max_new_tokensandchat_template_kwargsinto the package's server config (unknown key or out-of-range value is a startup error naming it). Packages keep loading - Still needed: Yes, kept —
flare runbuilt from unpatched9375d679lists no--generation-defaults, and no source underflare-cli/srcorflare/srcthere namesgeneration_defaults
- What it does:
-
patch/03-context-and-chat-template— added 2026-10-21 · Serving- What it does:
flare run --max-context-tokens <N>lowers the per-request context (max_sequence_tokens); above the package's prepared context, or off its page size, is a startup error naming both.flare run --chat-template <FILE>replaces the package'schat_templateasset with the file (hashed at startup); a package with no Jinja frontend is a startup error. The package file is never written - Still needed: Yes, kept —
flare runbuilt from unpatched9375d679lists neither flag (--kv-cache-limit contextcaps KV capacity, not the per-request context)
- What it does:
-
Muse Glimmer recipe
muse_glimmer_nvfp4(9834def8,85463f36,37f3613d,c4f4fa7c,8fe522a3,d77a2055,906ee060) — added 2026-11-06 · Prepared (recipes fork,hyperflare_recipes/recipes/muse_glimmer_nvfp4)- What it does: Serves
original-el8/Muse-Glimmer-30B-NVFP4(aliasmuse-glimmer-30b-nvfp4) on one GPU at TP1: W4A4 NVFP4 decoder projections with a BF16 head, up to four images per request, eight concurrent requests by default and sixteen at--max-concurrency 16with 128 packed verification rows (served at 16 on one RTX PRO 6000: 57.3 GiB of KV, 9,076,736 tokens), and a declared 1,048,576-token context over the native 131,072 (no rope scaling; the sliding layers stay bounded at 2,048). Drafting uses thez-lab/Muse-Glimmer-30B-DFlash2block drafter (pinnedb54ffdd1) at 15 draft tokens;ignition export --draft-modelsupplies the drafter offline. Passkey retrieval at 1M: 14 of 15 cells within a 256-token cap, the 15th at 1,024 - Image profile number and forwards: the recipe's image profile is
ImagePreparationKind11 andImageSettingsfield 11, because upstream's Inkling padded grid holds 10. A Glimmer core exported before 2026-11-15 records 10; a hand-runflare runof it on a binary built from1a532755or later is not rejected, reads the profile as the padded grid, and gives invalid image results, so such a core stays on the image that exported it. The text and draft forwards take their metadata per call: Glimmer's attention is its own module (muse_glimmer_nvfp4/attention.py),muse_spark/attention.pyis upstream's text, Muse Spark'scontract.prepareandfrontend.runtime_assetstake optional arguments that default to upstream's behavior, and the draft path uses upstream's sharedDFlash2Preparation. Both numbers are free upstream:9375d679's Protobuf schema ends each list at 10. The recipe's tests intests/recipes/muse_glimmer_nvfp4passed on SM120 on upstream1a532755and have not run on a later base: attention parity under graph replay with synthetic weights, and, against the checkpoint and its DFlash2 drafter on a 96 GB GB202, vision parity, the text reference comparison and the width-16 draft round - Still needed: Yes, adapted — upstream recipes
72498d4alists nomuse-glimmer-30b-nvfp4; the upstream submission is split across PR #229 (runtime image profile andWindowedimage layout) and hyperflare-recipes PR #109 (recipe under aliasmuse-glimmer-30b-w4a4, using theWindowedlayout kind and omitting--draft-modelin favor of the pinned drafter download), and the fork takes that form at its next base move while keepingMuseGlimmerParameterswith--draft-modelondeploy. On this base a core exported at 16 sequences with the DFlash2 drafter on an RTX PRO 6000 (1,048,576-token context) answered a factual prompt, a three-turn chat and an image request, and its recorded preparation parameters hold--prompt-logprobs, 15 draft tokens and the draft folder (recipes forkqualify/results/v0.4.1-r1/glimmer-served.json,glimmer-plan-fields.json); throughput and passkey retrieval are not measured ondeploy(passkey retrieval at 1,000,060 tokens passed 3/3 on coregb202-tp1-202611300932built from the two PR heads)
- What it does: Serves
-
Elephant-1 recipe
elephant1(2e8f5d58,c2f2d052,e65c6c30,8797f6db) — added 2026-11-16 · Prepared (recipes fork,hyperflare_recipes/recipes/elephant1,hyperflare_recipes/components)- What it does: Serves
baselabs/elephant-1(aliaselephant-1-9b, served nameElephant-1), a text-only Qwen3.5-9B decision model, inside 12.5 GB: preparation packs the BF16 body projections to NVFP4 W4A16 (pack_body_nvfp4inhyperflare_recipes/components/weights.py) and keeps the embedding, head, norms and Gated DeltaNet scalars in BF16; the 333 vision tensors are skipped and image inputs refused. Context 16,384 tokens, concurrency up to 4. A decision is read with Completionsmax_tokens: 1andlogprob_token_idsnaming the option letters. The shared Gated DeltaNet buffers and the dense Qwen decoder take their widths and query format from each model's head counts and cache. Preparation needs the FlashInfer GDN head-ratio patch below. Coregb202-tp1-202611200624(exported on GB202 at concurrency 4 before the move toc0c4f798) serves on an RTX 5060 Ti in 11,596 MiB (12.16 GB), and the concurrency-2 coregb202-tp1-202611171634in 10,428 MiB; that card is in no Flare hardware platform list - Still needed: Yes, adapted — upstream recipes
72498d4ahas no Elephant-1 recipe and sizes its Gated DeltaNet buffers for 48 value heads; the recipe now declaresElephant1Parametersand passes native dense activations to its tuning session. On this base a core exported at concurrency 4 on an RTX PRO 6000 returns finitelogprob_token_idsprobabilities for the option letters of a decision prompt and gives 0.954 to the correct one (recipes forkqualify/results/v0.4.1-r1/elephant1-letters.json); the 158-probe comparison with the earlier core and the comparison with the vendor runtime have not run on this base (docs/TODO.txt)
- What it does: Serves
-
Elephant-1 trained block mask (
5acb610d,6d67fd70) — added 2026-11-17 · Serving (helios/) and Prepared (recipes fork,hyperflare_recipes/recipes/elephant1)- What it does: A prepared contract may declare a block-end marker (
FrontendContract.block_end_marker, field 11). Helios splits a prompt holding the marker once into two atomic prefill spans, serves a prompt without it causally, and refuses one holding it more than once; spans travel in the request spec, no prefix-cache key exists inside a span (a hit there falls back to an earlier checkpoint), and the end of the first block becomes a checkpoint boundary. A preempted request keeps its generated tokens in the last block.PreparedVarlenAttentiontakes optional key segment lengths. Theelephant1recipe runs its eight full-attention layers under the checkpoint's trained two-block mask with a 16,384-token prefill chunk. Against the vendor runtime the served core agrees on 0.956 of argmax answers with a 0.021 mean probability delta (0.924 / 0.037 with every layer causal), short of the 0.01 precision bound for the packed core (qualify/results/elephant1-decision-parity/).ignition debug-serve --directuploads no block distances and runs every prompt causally - Still needed: Yes, kept —
e85019b9bhas noblock_end_marker(0 hits) and noRequestSpec::atomic_spans(0 hits; upstream declares spans only for image layouts on vision cores), and field 11 is free in itsFrontendContract; the fork carries 55atomic_spansreferences at the tip. A scheduler test keeps spans whole under upstream'sTerminalPrefillgraph; no core with both has been served
- What it does: A prepared contract may declare a block-end marker (
-
Persisting L2 cache limit bounded by the serving device (
0d71e8920,2df3a6a02) — added 2026-11-16 · Serving (helios/)- What it does: A core records the exporting card's persisting L2 cache size; Helios lowers it to the serving card's maximum on every context it configures: a context it creates, a retained primary context, and the worker and compute contexts of a persistent-worker partition; upstream's dispatch ring (#556) configures no context of its own, so the bound covers it. A core exported on an RTX PRO 6000 (25,165,824 bytes) loaded on an RTX 5060 Ti (20,971,520) before the move to
c0c4f798. On upstream59adc480fwith this patch (the branch of PR #622), the Elephant-1 coregb202-tp1-202611262358loaded and answered a request on an RTX 5060 Ti through a context Helios creates, where unpatched59adc480fstops atcuCtxSetLimit; the retained primary context and persistent-worker contexts are covered by unit tests only, and the fork's own build on9375d679has loaded no core on a smaller card (docs/TODO.md) - Still needed: Yes, kept —
9375d679passes the recorded size tocuCtxSetLimiton every context and never reads the device maximum; until PR #622 merges
- What it does: A core records the exporting card's persisting L2 cache size; Helios lowers it to the serving card's maximum on every context it configures: a context it creates, a retained primary context, and the worker and compute contexts of a persistent-worker partition; upstream's dispatch ring (#556) configures no context of its own, so the bound covers it. A core exported on an RTX PRO 6000 (25,165,824 bytes) loaded on an RTX 5060 Ti (20,971,520) before the move to
-
FlashInfer
flashinfer-gdn-head-ratio.patch(Ignition image recipe,vllm-env/build/flare-ignition/) — added 2026-11-16 · Prepared (image)- What it does: The b12x Gated DeltaNet prefill and decode operators accept two value heads per key head as well as three. Source: local FlashInfer branch
gdn-head-ratio(a2f9c47a0, on598c8547), unpushed; it applied to the previous locked revisiond0301ec6on all eight files and has not been applied tocfc2c0d7yet.build.shapplies it to every image it builds, and a patch that no longer applies fails the build. The recipes fork's lock does not carry it, soelephant1preparation fails in an environment installed from the lock alone - Still needed: Yes, kept — FlashInfer still requires three value heads per key head; until the locked revision contains the change. No FlashInfer PR yet. On
d0301ec6the patched operators' own GPU tests pass on an RTX 5060 Ti and they ran at Elephant-1's geometry in its export on the previous base; oncfc2c0d7they have not run (docs/TODO.md)
- What it does: The b12x Gated DeltaNet prefill and decode operators accept two value heads per key head as well as three. Source: local FlashInfer branch
-
DSpark drafting and DaisyRose-27B in the dense Qwen recipe (
4d91893d,c0cd13b4) — added 2026-11-19 · Prepared (recipes fork,hyperflare_recipes/recipes/qwen38_dense,hyperflare_recipes/components)- What it does:
--speculative-method dspark(orspeculative_method = "dspark"in the configuration) prepares the block draftRadixArk/Qwen3.8-27B-DSpark(pinnedb9a5dbdf) forqwen38_dense, beside the recipe's defaultdflash2: five noncausal draft layers reading target layers 5, 19, 33, 47 and 61, a rank-256 Markov bias, FP8 paged draft history beside the target's pages, and 0 to 7 draft tokens (DFlash2 keeps 15). The draft loads and stores through the shared DFlash2 components (projector="dspark"inhyperflare_recipes/components/dflash2_weights.py), whose declared weight fields include the draft's two Markov tensors. The recipe sits on upstream's dense image input, and its costs charge the vision encoder once, throughvision_bytes.--draft-head-quantization,--draft-body-quantizationandignition bench --speculation-studyare refused with DSpark. DeclaresRadixArk/DaisyRose-27B-NVFP4(pinnedc4d85c5d), a fine-tune stored in the tensor layout ofnvidia/Qwen3.8-27B-NVFP4, asdaisyrose-27b. Qualified on an RTX PRO 6000 with one language-only core exported before the move toc0c4f798: 7 drafts at fixed width 8, 16 sequences, 1,048,576-token context, 3.29 accepted drafts per round over 619 rounds of chat traffic; the draft graphs match the eager referencehyperflare_recipes/reference/qwen38_dense_dspark.pyon an RTX 5060 Ti. Throughput at fixed concurrency is not measured, and no DSpark core has been exported on9375d679(recipes fork: docs/model-preparation.md, docs/TODO.txt) - Still needed: Yes, adapted — upstream recipes
72498d4alists nodaisyrose-27band its dense Qwen recipe declares nodsparkmethod (upstream declares DSpark only for DeepSeek V4/V4.1, Kimi K3/K3.1 and MiniMax M3); the limits of 7 draft tokens and no draft-head or draft-body quantization are checked inQwen38DenseParameters.validate. No PR yet
- What it does:
-
YaRN context for the dense Qwen recipe — added 2026-11-19, adapted 2026-11-28 · Prepared (recipes fork,
hyperflare_recipes/recipes/qwen38_dense)- What it does: A dense Qwen3.8 checkpoint directory whose
text_config.rope_parametersdeclares YaRN serves the context it declares:qwen38_densereads the parameters through theqwen38recipe's checkpoint inspection and validation, builds its target rotary tables from the Transformers YaRN initializer and multiplies them once by the attention factor it returns, so they equal the Transformers rotary embedding for the same parameters; unscaled tables are bit-identical to upstream's. The DSpark draft keeps its own configured YaRN. The factor-4 block of the DaisyRose model card over 262,144 tokens gives a 1,048,576-token context. The tables match the Transformers reference at positions up to 1,048,575 on CPU, and the dense fused-rotation CUDA test with a YaRN case passes on an RTX 5060 Ti; no dense YaRN core has been exported on this base - Still needed: Yes, adapted — upstream recipes
72498d4agives the YaRN context toqwen38only (8ba8b287); its dense recipe accepts no rope scaling. The fork's earlier frequency-only mechanism and itsdaisyrose-27b-yarn4alias are retired
- What it does: A dense Qwen3.8 checkpoint directory whose
-
ignition export --recipe/--draft-model(2c8ba959) — added 2026-11-02, adapted 2026-11-28 · Prepared (ignition/cli; the--draft-modelgroup in the recipes fork,hyperflare_recipes/parameters.py)- What it does:
--recipenames the recipe that prepares a local checkpoint directory; it is a base export flag that parsing passes to the directory's resolution, so the named recipe's parameters govern parsing,--helpand the rebuild record.--draft-modelsupplies a local draft folder; it is a recipe parameter group thatqwen38,qwen38_denseandmuse_glimmer_nvfp4compose, and other recipes refuse it. A core's rebuild record carries both:--recipefor every checkpoint-directory target, and the draft folder by its name (draft_model.folder), never its host path - Still needed: Yes, adapted —
9375d679has no--recipeand resolves a directory to the first recipe of its architecture, and upstream's recipe parameters (#545) declare no draft folder. No two recipes share an architecture, so--recipeselects nothing on this base: it confirms that the named recipe declares the directory's architecture
- What it does:
-
--draft-modelforqwen38DFlash2 proposals — added 2026-11-10 · Prepared (recipes fork,hyperflare_recipes/recipes/qwen38; the plan field and the rebuild record inignition/)- What it does:
ignition export --recipe qwen38with speculative methoddflash2loads the DFlash2 draft from the--draft-modelfolder (config.json,model.safetensors) and downloads the pinnedincoai/Qwen3.8-Flash-Next-DFlash2snapshot only without the flag. With MTP proposals the flag is still refused ("loads no external draft") - Still needed: Yes, adapted — upstream's
qwen38recipe (72498d4a) always downloads the pinned draft, so an offline export or a draft other than the pin needs the folder;preparereads it from the recipe's parameters
- What it does:
-
FlashInfer pin
Raydius/flashinfer@cfc2c0d7— added 2026-10-29, re-cut 2026-11-15, 2026-11-18, 2026-11-19, 2026-11-25, 2026-11-26, 2026-11-28 and 2026-11-30 · Prepared (pyproject.toml;pyproject.tomlanduv.lockin the recipes fork)- What it does:
local-inference-lab/flashinfer@274eb290, the revision upstream names for this base, plus one commit (branchrebase-20261130-evict): a compiler worker rejects a job whose result is an unresolved planning stub, andcompile_compressmemoizes through the program cache so its kernels are evicted with the rest. Upstream's own planned-JIT registry (_PLANNED_TRITON_JITS) covers application JITs. Upstream core names FlashInfer'smainbranch with no lock; this repository names one exact revision inpyproject.tomland the recipes fork'suv.lock - Still needed: Yes, kept — on unmodified
274eb290the two cases the fork owns fail,test_run_job_rejects_unresolved_planning_stubandtest_compile_compress_memo_is_a_program_cache; all 23 carried cases pass oncfc2c0d7on an RTX 5060 Ti (FlashInfer PR #67, open; the re-cut is pushed to the fork remote as branchrebase-20261130-evict, not to the PR). The carried inventory file records five compile factories upstream added without a preparation memo (docs/TODO.md). Ond0301ec6FlashInfer's tests for the kernel familiesqwen38prepares fail 13 of 1,250 cases, the same 13 that fail on675984cd; that suite has not been rerun oncfc2c0d7
- What it does:
-
Elephant-1 qualification tools — added 2026-11-16 · Tooling (recipes fork,
qualify/)- What it does:
elephant1_decision_parity.pyrenders 160 decision probes by the vendor rules and compares a served core with the vendor runtime (OneJev81ce62f) in two stages, the mask and the storage precision;--masksscores mask ablations, andcore --reversewithreport --recachedcompares answers from an empty prefix cache with cached ones.elephant1_block_attention_probe.pychecks the dense noncausal attention operator at Elephant-1's geometry and the prefill storage arithmetic. Results inqualify/results/elephant1-decision-parity/andqualify/results/elephant1-mask-feasibility/ - Still needed: Yes, kept — fork measurement tooling, not upstreamed; not run on this base
- What it does:
-
DFlash2 qualification tools (
bee64b00,25640c8d,a75e845d,9f764425,d3919444,d77a2055,4f434bdb) — added 2026-10-28 · Tooling (recipes fork,qualify/)- What it does:
dflash2_acceptance.py,dflash2_served.py,dflash2_draft_sweep.py,dflash2_long_context.pyand their results: acceptance, served DFlash2-vs-MTP comparison, draft-count sweep, past-262k probe.dflash2_served.pyanddflash2_draft_sweep.pyaccept only packages with eight request slots and mixed graphs, which are packages of the retiredqwen38_dflashrecipe;dflash2_console_probe.pyanddflash2_console_rate.pyrun the same workload against a console-served package of any prepared concurrency (results:qualify/results/dflash2-paths-c16/). In those results, A16 decode (force_moe_decode_a16) added to upstream'sqwen38DFlash2 path with the MXFP8 draft lowerscode_editfrom 555.9 to 518.7 tok/s at concurrency 1 and the 16-client aggregate from 1,231.2 to 1,152.0 tok/s, with non-overlapping ranges over three trials each; the fork's serving profile keeps A16 decode on despite that throughput cost. Earlier results of the retired recipe: served comparisonqualify/results/dflash2-served/, draft sweepdflash2-draft-sweep/, history-drafts A/Bdflash2-history-drafts/, requalification runsdflash2-requalify/, past-262k probedflash2-long-context/.long_context_passkey.py: over prompt length × depth, five-digit passkey retrieval, or with--task trackingRULER's multi-hop variable tracking (a four-hop chain of assignments answered only by following it), against a launched package or a running server (--base-url), reporting width-16 speculative rounds and accepted drafts per round;--comparepairs a native and a rope-scaled package's summaries cell by cell. Results for the config-driven YaRN and native test packages of PR #212 and the fork's serving package:qualify/results/yarn-config/; on this base, the served Qwen profile's passkey cells:qualify/results/v0.4.1-r1/qwen-passkey/ - Still needed: Yes, kept — fork measurement tooling, not upstreamed; on this base only
long_context_passkey.pyhas run
- What it does:
- History drafts on the parallel-draft round (
95752d66,83e8c54f2,402b416f) — added 2026-10-28, retired 2026-11-30 · Prepared (recipes fork,hyperflare_recipes/components) and Serving (helios/)- What it did:
flare run --history-draftscopied decoded-history tokens into parallel-draft (DFlash2) rounds through the copy mask, as it already did for MTP, and Helios offered at most the lane's verifiable token count. A/B at fixed-7 on a Qwen3.8 DFlash2 package of the retiredqwen38_dflashrecipe (2026-11-06,qualify/results/dflash2-history-drafts/,2e91f176): off 497.7 / 346.4 tok/s, on 380.7 / 341.6 tok/s (c1 / c8code_editmedians; 52 % of copies accepted) - Why retired: Upstream
c146d7be6(#620) removed the copy substitution and the history-draft runtime from Helios and Ignition —ServerConfig::history_drafts,Scheduler::history_proposal,helios/src/scheduler/decoded_history.rsand the--history-draftsflag — and export now rejects a core carrying the field (heliopause/src/export/binding.rs) while legacy cores keep loading. Upstream recipes removed its side in1bd120f8(#94). At the new basehistory_proposalandcopy_bitsappear in no file and the builtflarebinary lists no--history-drafts. The MiMo V2.6 Pro and Nemotron 3.5 Bolt copy buffers and the Qwen3.8 DFlash2 history gain return only with the restore in docs/TODO.md
- What it did:
- Copy-depth acceptance attribution (
6657f7e5,6f25f494d,316a51f91,043448f57) — added 2026-11-04, retired 2026-11-30 · Serving (helios/)- What it did: The scheduler routed each accepted depth of a round to the copy curve when its copy bit was set, and left that depth out of the host-wide acceptance population that seeds the MTP curve of later requests, so copies inflated neither the packed-round allocator's curve nor later requests' starting estimates
- Why retired: the same upstream
c146d7be6deleted the copy curve and the mask argument ofAcceptanceProfile::observe, and #644 and #645 then rewrotepolicy.rs,rounds.rs,utility.rsandcost.rsaround that deletion.helios/src/scheduler/speculation.rsnow matches upstream exactly and the tree carries no reference tospeculation::copiedorCOPY_DRAFT_CAPACITY; the DFlash2 acceptance path for the served recipes comes from b12x'sVerifyKernels.verify()offset, which replaced the hand-rolled copy path whenpatch/08retired.RequestSpec::atomic_spansis a separate field and stays
patch/07-rope-parameters— added 2026-10-22, retired 2026-11-28 · Prepared (ignition/cli)- What it did:
ignition export/ignition debug-serve--rope-parameters <JSON>appliedpatch/06's scaling to any resolved checkpoint as a Hugging Face / vLLM YaRNrope_parametersobject, and a core's rebuild record carried the flag. A Flash Next core exported with factor 4 over 262,144 tokens served a 1,048,576-token context (recipes forkqualify/results/yarn-config/fork-serving-passkey.json) - Why retired: Upstream
d3d0e783and recipes8ba8b287(PR #212, hyperflare-recipes#68) take YaRN from the checkpoint's owntext_config.rope_parameters, so a checkpoint directory whoseconfig.jsoncarries the model card's YaRN block replaces the flag; on9375d679the flag is an unrecognized argument. The served profile moved to such a directory: on this base it serves 1,048,576 tokens and retrieves a five-digit passkey in 6 of 6 cells at 200,000 and 1,000,000 tokens (recipes forkqualify/results/v0.4.1-r1/qwen-passkey/). Cores exported with the flag keep loading
- What it did:
patch/06-qwen38-yarn-declaration— added 2026-10-21, retired 2026-11-28 · Prepared (ignition/; the alias and rotary tables in the recipes fork)- What it did: Johannes Bertens's
ec0a64f2, cherry-picked: aRopeScalingdeclaration, YaRN interpolation of the Qwen3.8 rotary tables, theqwen3.8-flash-yarn4alias (1,048,576 tokens), and plan, identity and limits derived from the declared context. The recipes fork's87c08409multiplied the scaled tables by YaRN's attention factor,0.1 ln(factor) + 1 - Why retired: Upstream
d3d0e783derives the checkpoint context from its configuration and records it in the plan report, and recipes8ba8b287builds theqwen38tables from the Transformers YaRN initializer with the attention factor applied once. The fork's commits,87c08409and the alias are not carried; upstream's alias rule rejects a second alias for the same weights. A Qwen3.8 Flash Next core exported on this base from a YaRN checkpoint directory serves a 1,048,576-token context, its served checks pass, and theqwen38fused-rotation CUDA test with a factor-4 case passes on an RTX 5060 Ti
- What it did: Johannes Bertens's
- Image input for the dense Qwen recipe (
1f486f63,751eeefc) — added 2026-11-19, retired 2026-11-25- What it did:
qwen38_denseprepared the checkpoint's vision encoder with the Flash Next recipe's encoder (widened for the dense model's width), gave the decoder three-axis rotary positions with a stored per-request position offset, and accepted up to four images of at most 32 MiB per request;--language-model-onlyprepared no encoder - Why retired: Upstream
0d45b17a(#386;32009ad1in the recipes repository) adds image input for Qwen3.8 27B to its dense recipe:qwen38_densedeclaresmax_images=4on upstream recipes07d7bb3. The fork's two commits are not carried. The DaisyRose aliases and the DSpark method sit on upstream's declarations; an export with image input has not run on this base
- What it did:
- FP8 paged prefill kernel call passes
kv_tile_ranges(c44217ca) — added 2026-11-19, retired 2026-11-25- What it did: Passed
Nonefor the last launch parameter of FlashInfer's SM120 FP8 paged prefill kernel, which attends each request's whole history, as FlashInfer's own wrapper does. Without it the first execution raisedTypeError: Expects 16 parameters, so every dense Qwen export failed after compiling its forwards - Why retired: Upstream
db4ba3d3(ce095402in the recipes repository) passes the trailing argument asNoneon the gated and ungated call inhyperflare_recipes/components/paged_tma.pyand adds a test for paged TMA prefill. The fork's commit is not carried; the test's CUDA cases have not run on this base
- What it did: Passed
- Qwen preparation accepts the locked Transformers release (
c32bb51b) — added 2026-11-15, retired 2026-11-25- What it did:
qwen38's model-tree and MTP-module construction accepted thetransformers==5.23.0distribution that the lock names, as well as a Git install of revision1d9654e7, which was the only accepted source before - Why retired: Upstream
173eb256(#456;069f7189in the recipes repository) requires the locked release:hyperflare_recipes/recipes/qwen38/checkpoint_schema.pydeclaresTRANSFORMERS_VERSION = "5.23.0". The fork's commit is not carried
- What it did:
- Mixed speculative export fixes (
ecb6c1dc,388d3d21) — added 2026-10-31, retired 2026-11-19- What it did: Built the packed mixed decoder with verification off and
sampler=False, because verification mode aliased the sample rows to the hidden rows and rejected the mixed round's scratch, and emitted the proposal depth of mixed rounds with speculation - Why retired: Upstream closed PR #211 on 2026-11-18 as superseded:
d68ed8f5aliases the sample rows only when their shape equals the hidden rows' (never in a mixed round, so verification mode builds no sampler and aliases nothing, which is whatsampler=Falsedid), and4a24d78aderives the draft depth of speculative mixed graphs. The depth hunk had already folded into upstream's code; the decoder flag, the mixed-round call and the depth assertions intests/preparation/test_execution.pynow matchba42481a. On the retiring commit the Qwen mixed, execution, bootstrap, speculative-state, DFlash2 and parallel-draft CPU suites pass, and on GPU 1tests/recipes/test_qwen38_mixed_cuda.pypasses 24 of 24. Packages exported with the patch keep loading
- What it did: Built the packed mixed decoder with verification off and
- DFlash2 recipe
qwen38_dflash(8046cf12, folddf9a23d1,05289f11,cd47b4d8) — added 2026-10-31, retired 2026-11-10- What it did: Served Qwen3.8-Flash-Next with the
incoai/Qwen3.8-Flash-Next-DFlash2block draft through a recipe of its own: aliasesqwen3.8-flash-dflash2andqwen3.8-flash-dflash2-yarn4, a pin oflocal-inference-lab/Qwen3.8-Flash-Next-NVFP4-MXFP8-CSF-QAD@dc5b8ab2, mixed prefill rounds embedding a DFlash2 draw, and history drafts on its rounds - Why retired: Upstream's
qwen38recipe serves the same draft (--speculative-method dflash2). Measured at 16 sequences and a 1,048,576-token context on one RTX PRO 6000 (qualify/results/dflash2-paths-c16/README.md), the fork recipe reached 535.1 and 355.6code_edittok/s at concurrency 1 and 8 against 555.9 and 436.7 for upstream's path with the MXFP8 draft, held 909,312 KV tokens (the server refused a 1M prompt), and exported in 92 minutes against 28. Decode throughput during concurrent long prefill was not measured and is not a workload this fork needs. Lost with it: mixed prefill and history drafts for Qwen 3.8 DFlash2 packages, the QAD pin (that repository id now resolves toqwen38with MTP proposals unlessdflash2is given), the toolsdflash2_tap_check.pyandmixed_prefill_check.py, and the CUDA parity check of the shared draft component against the reference on the pinned Flash-Next draft. Packages exported with the recipe keep loading - The hooks the fork had added to
ignition/recipes/qwen38/(mtp=anddraft_windows=instate.py, feature taps indecoder.py, feature buffers inmixed_state.py,feedback=inspeculative_state.py) and the"dflash"projector entry inignition/components/dflash2_weights.pyare gone (2026-11-21): upstream rejected DFlash2 drafts inside mixed prefill rounds, so mixed rounds are MTP-only and DFlash2 serves with separate prefill and verification graphs. Theadmissionanddraft_page_blocksparameters ofPreparedParallelDraftRound, their test, and the absorption and speculative-round hooks inmixed_model.pywere removed with the move to upstream6b68b9b4, whose functional draft round cannot run them
- What it did: Served Qwen3.8-Flash-Next with the
- Opaque-write copy rule (
80946209) — added 2026-10-31, retired 2026-11-10- What it did: Kept a captured copy as an invocation when it read storage an earlier opaque call wrote or its destination was written again later
- Why retired: On upstream
e774a468its five reproducers intests/preparation/test_aot.py(opaque writes before ordinary reads, counts and ids written by copies for opaque readers, deferred-then-opaque ids, opaque partial writes feeding a count) and a case whose copy destination is read only after the graph all pass on GPU without the rule; upstreamfa0eadadkeeps the first group's copies in order, and the post-graph case is deferred by upstream and still publishes the opaque write. The reproducers stay as regression tests
- FlashInfer MoE fragment guard (
49fe5449, in theRaydius/flashinferpin) — added 2026-10-29, retired 2026-11-10- What it did: Flattened the dynamic MoE kernel's direct SFB fragment only when it was still nested, so
moe.decodetuning stopped failing withTypeError: Value after * must be an iterable, not int - Why retired: FlashInfer #71 (
e239dfb3a) guards both flatten sites and is in upstream's pin85ea6e76
- What it did: Flattened the dynamic MoE kernel's direct SFB fragment only when it was still nested, so
patch/02-graph-shared-memory— added 2026-10-21, retired 2026-10-22- What it did: On package load, raised a graph kernel's
MAX_DYNAMIC_SHARED_SIZE_BYTESto the dynamic shared memory its captured node recorded. Fixed Ignition-prepared Qwen3.8-Flash packages failingcuGraphAddKernelNode_v2withINVALID_VALUE(43 prefill nodes at 57,600 B vs an exported 49,152) - Why retired: Upstream
37c87e1ddoes the same: it raises a function's shared-memory allowance from its captured nodes
- What it did: On package load, raised a graph kernel's
patch/04-minijinja-empty-reverse-slice— added 2026-10-21, retired 2026-10-22- What it did: Vendored minijinja 2.24.0 with one fix: reversing an empty sequence (
[][::-1]) rendered nothing instead of panicking. A chat template that splits off system messages and reverses the rest (froggeric's Qwen-Fixed-Chat-Templates) failed every request with a system prompt - Why retired: Upstream Helios now renders templates with its own Jinja VM, whose
slicereturns an empty list for[][::-1]; minijinja is only a test oracle
- What it did: Vendored minijinja 2.24.0 with one fix: reversing an empty sequence (
patch/05-replace-cached— added 2026-10-21, retired 2026-10-22- What it did:
ignition run --replace-cachedkept only the current launch's package in the package cache, purging other snapshots and unreferenced blobs just before export - Why retired: Upstream
7d3331c5removedignition run
- What it did:
ignition runforwarding inpatch/01andpatch/03— added 2026-10-21, retired 2026-10-22- What it did:
ignition runforwarded--generation-defaults,--max-context-tokensand--chat-templateto Flare - Why retired: Upstream
7d3331c5removedignition run; theflare runflags remain
- What it did:
- FlashInfer
flashinfer-delta-prefill-source-dependencies.patch(Ignition image recipe,vllm-env/build/flare-ignition/) — added 2026-10-22, retired 2026-10-23- What it did: Declared
__b12x_source_dependencies__for the delta-prefill compile factory's computed imports (FlashInfer0765eaf1), without which every Qwen3.8 preparation failed in "Prepare and tune kernels" - Why retired: Upstream's FlashInfer pin
9c9e94ef(Flarec922eb07) declares the same four dependencies
- What it did: Declared
- FlashInfer
flashinfer-qsa-singleton-default.patch(Ignition image recipe) — added 2026-10-22, retired 2026-10-23- What it did: Kept QSA at its single
warps=2configuration at the default autotune effort, because Ignition's Qwen3.8 QSA request had no benchmark and multi-candidate preparation failed - Why retired: Upstream
aca7888fgives Ignition representative QSA tuning workloads, so the candidates race properly; keeping the patch would suppress that tuning
- What it did: Kept QSA at its single
patch/08-docker-context-templates— added 2026-10-22, retired 2026-10-26- What it did: Admitted
ignition/recipes/{qwen38,step5,kimi3}/assets/chat_template.jinjainto the Docker build context and copied them besidehelios/in the build stage, becausehelios/src/frontend/templates.rsinclude_str!s them and upstream's.dockerignoreexcluded all ofignition/(since947a5a6d) - Why retired: Upstream
230c5b40carries the template assets in its Docker context
- What it did: Admitted
patch/09-forward-storage-fit— added 2026-10-27, retired 2026-10-28- What it did: A cached compiled forward whose shared-storage bases needed more bytes than the live allocation raised
BindingMismatchand recompiled, instead of failing inas_strided(setStorage … out of bounds) - Why retired: Upstream
317c1eccbinds compiled storage as regions and preserves storage mutations without cloning whole buffers, so restoring a cached forward onto a smaller allocation now succeeds: in-image onlocal/flare-ignition:ec2f234d(with the patch still applied, upstream56f5702a, FlashInferf91f257efrom7c1a9fde) the four-allocation cycle restores with correct outputs and recompiles[1,1,1,1]— the guard never fires and the patch's regression test (which asserted[1,2,2,2]) fails on the absence of recompiles alone
- What it did: A cached compiled forward whose shared-storage bases needed more bytes than the live allocation raised
- Warmup retention scoped to integrated GPUs (
026839f1) — added 2026-11-02, retired 2026-11-04- What it did: Kept warmup physical retention to integrated GPUs so discrete-GPU DFlash2 exports fit (export OOM after the
6fa01a49rebase, cause upstreama794c99d) - Why retired: Upstream #154 pools retained mappings across compiled warmup; the 149-forward export fits without it (removed in
e6fc2ef6)
- What it did: Kept warmup physical retention to integrated GPUs so discrete-GPU DFlash2 exports fit (export OOM after the
Coding agents: skip this README and read AGENTS.md directly.
Hyperflare is a local inference server for NVIDIA SM120/SM121 GPUs, built for long conversations, coding agents, and repeated tool use. Its goal is to make the memory, bandwidth, and compute in workstations and compact systems such as DGX Spark go further, while keeping generation responsive.
This is a research prototype, and is made available via open-source to enable technical collaboration and collect early feedback.
The design rests on a few principles:
-
Embrace the standard PyTorch ecosystem at build time; serve from Rust. Ignition uses PyTorch, Transformers, and FlashInfer/b12x to load models, tune kernels, compile forwards, and capture CUDA graphs into a runtime core. Helios, the Rust runtime, serves that core without Python. Compilation and graph capture finish before serving.
-
Build on the model ecosystem. Reuse canonical model implementations wherever their dataflow fits, and specialize the parts that need different layouts or execution. Model development keeps the tools and libraries that make the Python ecosystem productive.
-
Make memory and state explicit. Plan buffers and execution capacities ahead of time. Treat conversation state—including recurrent state alongside KV caches—as a whole, so reuse, branching, and resuming preserve it correctly.
-
Keep the runtime small and shared. Model recipes own model computation; the runtime owns scheduling, cache storage, and request handling. Core Ignition in this repository provides the recipe-free preparation library and CLI runner; official model recipes and reusable b12x model components live in local-inference-lab/hyperflare-recipes. A focused hardware and kernel stack keeps those boundaries manageable.
vLLM covers a much broader range of models, hardware, and deployment patterns. Hyperflare trades that breadth for a focused serving contract around selected models and local workloads. Hyperflare is not, and will never be, a replacement for production inference engines like vLLM.
Think of Hyperflare as a specialized option when its hardware and model coverage fit your machine.
Start with model preparation and serving and the official model recipes in local-inference-lab/hyperflare-recipes. For native Windows development and serving prebuilt model cores, follow Windows serving. See the CLI guide for configuration and the core design for the architectural reasoning.
Hyperflare's project code is licensed under Apache 2.0. Contributions require the sign-off described in CONTRIBUTING.md. Third-party attributions are listed in NOTICE; upstream terms remain applicable to third-party code and assets.
The PyTorch-derived image resizing implementation in helios/ retains the
PyTorch BSD-style license, also distributed with
Heliopause. The DeepSeek recipe assets in
local-inference-lab/hyperflare-recipes
retain their MIT license. The
heliopause/LICENSE and heliopause/NOTICE symlinks refer to the root files for
Python package distribution.
Upstream chat templates are fetched with the model checkpoints and annotated locally using bundled insertion patches. Gemma uses pinned Google sources. The custom Kimi segmented renderer is included as project code. Downloaded model assets and exported model cores retain their upstream terms; see frontend preparation.
