Skip to content

About

No description, website, or topics provided.

Resources

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

1,635 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Raydius fork: patch notes

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.

At a glance

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

How to read the patch list

  • 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 recipes 72498d4a installed with that core.
  • Where the code is. A patch marked "recipes fork" has its code in that repository, under hyperflare_recipes/ and qualify/. Upstream moved model recipes, reusable components, reference models and qualification drivers there in 17bb3c4a.
  • 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's qwen38_dflash recipe was retired on 2026-11-10.

RTX 5060 Ti compatibility

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.py accepts 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. A flare built from the branch of PR #622 loaded the Elephant-1 core gb202-tp1-202611262358 on an RTX 5060 Ti and answered a request. The fork's own build on 9375d679 has loaded no core on this card, and the L2 bound's other two context paths are covered by unit tests only (docs/TODO.md).

Active patches

  • 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.sh keeps a fork tag whose name upstream uses for another commit, reports it, and still fast-forwards main; its drift report measures against upstream release tags and ignores the fork's -rN tags. Never upstreamed
    • Still needed: Yes, adapted — 9375d679 has no FORK.md or scripts/fork/; without the tag handling the sync stops at git fetch --tags, because upstream's v0.2.3 and the fork's name different commits
  • Serving image published to GHCR — added 2026-11-16 · Release (.github/workflows/container.yml)

    • What it does: On each vX.Y.Z or vX.Y.Z-rN tag on deploy, builds the repository's Dockerfile with the version stamped by scripts/set_release_version.py, pushes ghcr.io/raydius/hyperflare-inference:<version> (the tag name without its v) and :sha-<commit>, then pulls the sha- tag back and requires flare --version to report the tag and flare run --help to list --generation-defaults, --max-context-tokens and --chat-template. The container and release workflows refuse any other tag name, including numbers with leading zeros, before a version is resolved, and scripts/set_release_version.py refuses the same strings. A manual run on a version tag rebuilds that release; on a branch it pushes only :sha-<commit> at version 0.0.0
    • Still needed: Yes, adapted — upstream publishes no serving image (9375d679 has no container.yml), and its release workflow and stamping script accept vX.Y.Z only. Neither workflow has run on GitHub from a revision tag (docs/TODO.md)
  • patch/01-generation-defaults — added 2026-10-21 · Serving

    • What it does: flare run --generation-defaults <JSON> merges sampling keys, max_new_tokens and chat_template_kwargs into 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 run built from unpatched 9375d679 lists no --generation-defaults, and no source under flare-cli/src or flare/src there names generation_defaults
  • 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's chat_template asset 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 run built from unpatched 9375d679 lists neither flag (--kv-cache-limit context caps KV capacity, not the per-request context)
  • 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 (alias muse-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 16 with 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 the z-lab/Muse-Glimmer-30B-DFlash2 block drafter (pinned b54ffdd1) at 15 draft tokens; ignition export --draft-model supplies 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 ImagePreparationKind 11 and ImageSettings field 11, because upstream's Inkling padded grid holds 10. A Glimmer core exported before 2026-11-15 records 10; a hand-run flare run of it on a binary built from 1a532755 or 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.py is upstream's text, Muse Spark's contract.prepare and frontend.runtime_assets take optional arguments that default to upstream's behavior, and the draft path uses upstream's shared DFlash2Preparation. Both numbers are free upstream: 9375d679's Protobuf schema ends each list at 10. The recipe's tests in tests/recipes/muse_glimmer_nvfp4 passed on SM120 on upstream 1a532755 and 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 72498d4a lists no muse-glimmer-30b-nvfp4; the upstream submission is split across PR #229 (runtime image profile and Windowed image layout) and hyperflare-recipes PR #109 (recipe under alias muse-glimmer-30b-w4a4, using the Windowed layout kind and omitting --draft-model in favor of the pinned drafter download), and the fork takes that form at its next base move while keeping MuseGlimmerParameters with --draft-model on deploy. 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 fork qualify/results/v0.4.1-r1/glimmer-served.json, glimmer-plan-fields.json); throughput and passkey retrieval are not measured on deploy (passkey retrieval at 1,000,060 tokens passed 3/3 on core gb202-tp1-202611300932 built from the two PR heads)
  • 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 (alias elephant-1-9b, served name Elephant-1), a text-only Qwen3.5-9B decision model, inside 12.5 GB: preparation packs the BF16 body projections to NVFP4 W4A16 (pack_body_nvfp4 in hyperflare_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 Completions max_tokens: 1 and logprob_token_ids naming 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. Core gb202-tp1-202611200624 (exported on GB202 at concurrency 4 before the move to c0c4f798) serves on an RTX 5060 Ti in 11,596 MiB (12.16 GB), and the concurrency-2 core gb202-tp1-202611171634 in 10,428 MiB; that card is in no Flare hardware platform list
    • Still needed: Yes, adapted — upstream recipes 72498d4a has no Elephant-1 recipe and sizes its Gated DeltaNet buffers for 48 value heads; the recipe now declares Elephant1Parameters and passes native dense activations to its tuning session. On this base a core exported at concurrency 4 on an RTX PRO 6000 returns finite logprob_token_ids probabilities for the option letters of a decision prompt and gives 0.954 to the correct one (recipes fork qualify/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)
  • 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. PreparedVarlenAttention takes optional key segment lengths. The elephant1 recipe 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 --direct uploads no block distances and runs every prompt causally
    • Still needed: Yes, kept — e85019b9b has no block_end_marker (0 hits) and no RequestSpec::atomic_spans (0 hits; upstream declares spans only for image layouts on vision cores), and field 11 is free in its FrontendContract; the fork carries 55 atomic_spans references at the tip. A scheduler test keeps spans whole under upstream's TerminalPrefill graph; no core with both has been served
  • 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 upstream 59adc480f with this patch (the branch of PR #622), the Elephant-1 core gb202-tp1-202611262358 loaded and answered a request on an RTX 5060 Ti through a context Helios creates, where unpatched 59adc480f stops at cuCtxSetLimit; the retained primary context and persistent-worker contexts are covered by unit tests only, and the fork's own build on 9375d679 has loaded no core on a smaller card (docs/TODO.md)
    • Still needed: Yes, kept — 9375d679 passes the recorded size to cuCtxSetLimit on every context and never reads the device maximum; until PR #622 merges
  • 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, on 598c8547), unpushed; it applied to the previous locked revision d0301ec6 on all eight files and has not been applied to cfc2c0d7 yet. build.sh applies 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, so elephant1 preparation 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 d0301ec6 the 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; on cfc2c0d7 they have not run (docs/TODO.md)
  • 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 (or speculative_method = "dspark" in the configuration) prepares the block draft RadixArk/Qwen3.8-27B-DSpark (pinned b9a5dbdf) for qwen38_dense, beside the recipe's default dflash2: 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" in hyperflare_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, through vision_bytes. --draft-head-quantization, --draft-body-quantization and ignition bench --speculation-study are refused with DSpark. Declares RadixArk/DaisyRose-27B-NVFP4 (pinned c4d85c5d), a fine-tune stored in the tensor layout of nvidia/Qwen3.8-27B-NVFP4, as daisyrose-27b. Qualified on an RTX PRO 6000 with one language-only core exported before the move to c0c4f798: 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 reference hyperflare_recipes/reference/qwen38_dense_dspark.py on an RTX 5060 Ti. Throughput at fixed concurrency is not measured, and no DSpark core has been exported on 9375d679 (recipes fork: docs/model-preparation.md, docs/TODO.txt)
    • Still needed: Yes, adapted — upstream recipes 72498d4a lists no daisyrose-27b and its dense Qwen recipe declares no dspark method (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 in Qwen38DenseParameters.validate. No PR yet
  • 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_parameters declares YaRN serves the context it declares: qwen38_dense reads the parameters through the qwen38 recipe'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 72498d4a gives the YaRN context to qwen38 only (8ba8b287); its dense recipe accepts no rope scaling. The fork's earlier frequency-only mechanism and its daisyrose-27b-yarn4 alias are retired
  • ignition export --recipe / --draft-model (2c8ba959) — added 2026-11-02, adapted 2026-11-28 · Prepared (ignition/cli; the --draft-model group in the recipes fork, hyperflare_recipes/parameters.py)

    • What it does: --recipe names 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, --help and the rebuild record. --draft-model supplies a local draft folder; it is a recipe parameter group that qwen38, qwen38_dense and muse_glimmer_nvfp4 compose, and other recipes refuse it. A core's rebuild record carries both: --recipe for every checkpoint-directory target, and the draft folder by its name (draft_model.folder), never its host path
    • Still needed: Yes, adapted — 9375d679 has no --recipe and 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 --recipe selects nothing on this base: it confirms that the named recipe declares the directory's architecture
  • --draft-model for qwen38 DFlash2 proposals — added 2026-11-10 · Prepared (recipes fork, hyperflare_recipes/recipes/qwen38; the plan field and the rebuild record in ignition/)

    • What it does: ignition export --recipe qwen38 with speculative method dflash2 loads the DFlash2 draft from the --draft-model folder (config.json, model.safetensors) and downloads the pinned incoai/Qwen3.8-Flash-Next-DFlash2 snapshot only without the flag. With MTP proposals the flag is still refused ("loads no external draft")
    • Still needed: Yes, adapted — upstream's qwen38 recipe (72498d4a) always downloads the pinned draft, so an offline export or a draft other than the pin needs the folder; prepare reads it from the recipe's parameters
  • 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.toml and uv.lock in the recipes fork)

    • What it does: local-inference-lab/flashinfer@274eb290, the revision upstream names for this base, plus one commit (branch rebase-20261130-evict): a compiler worker rejects a job whose result is an unresolved planning stub, and compile_compress memoizes 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's main branch with no lock; this repository names one exact revision in pyproject.toml and the recipes fork's uv.lock
    • Still needed: Yes, kept — on unmodified 274eb290 the two cases the fork owns fail, test_run_job_rejects_unresolved_planning_stub and test_compile_compress_memo_is_a_program_cache; all 23 carried cases pass on cfc2c0d7 on an RTX 5060 Ti (FlashInfer PR #67, open; the re-cut is pushed to the fork remote as branch rebase-20261130-evict, not to the PR). The carried inventory file records five compile factories upstream added without a preparation memo (docs/TODO.md). On d0301ec6 FlashInfer's tests for the kernel families qwen38 prepares fail 13 of 1,250 cases, the same 13 that fail on 675984cd; that suite has not been rerun on cfc2c0d7
  • Elephant-1 qualification tools — added 2026-11-16 · Tooling (recipes fork, qualify/)

    • What it does: elephant1_decision_parity.py renders 160 decision probes by the vendor rules and compares a served core with the vendor runtime (OneJev 81ce62f) in two stages, the mask and the storage precision; --masks scores mask ablations, and core --reverse with report --recached compares answers from an empty prefix cache with cached ones. elephant1_block_attention_probe.py checks the dense noncausal attention operator at Elephant-1's geometry and the prefill storage arithmetic. Results in qualify/results/elephant1-decision-parity/ and qualify/results/elephant1-mask-feasibility/
    • Still needed: Yes, kept — fork measurement tooling, not upstreamed; not run on this base
  • 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.py and their results: acceptance, served DFlash2-vs-MTP comparison, draft-count sweep, past-262k probe. dflash2_served.py and dflash2_draft_sweep.py accept only packages with eight request slots and mixed graphs, which are packages of the retired qwen38_dflash recipe; dflash2_console_probe.py and dflash2_console_rate.py run 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's qwen38 DFlash2 path with the MXFP8 draft lowers code_edit from 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 comparison qualify/results/dflash2-served/, draft sweep dflash2-draft-sweep/, history-drafts A/B dflash2-history-drafts/, requalification runs dflash2-requalify/, past-262k probe dflash2-long-context/. long_context_passkey.py: over prompt length × depth, five-digit passkey retrieval, or with --task tracking RULER'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; --compare pairs 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.py has run

Retired patches

  • 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-drafts copied 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 retired qwen38_dflash recipe (2026-11-06, qualify/results/dflash2-history-drafts/, 2e91f176): off 497.7 / 346.4 tok/s, on 380.7 / 341.6 tok/s (c1 / c8 code_edit medians; 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.rs and the --history-drafts flag — and export now rejects a core carrying the field (heliopause/src/export/binding.rs) while legacy cores keep loading. Upstream recipes removed its side in 1bd120f8 (#94). At the new base history_proposal and copy_bits appear in no file and the built flare binary 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
  • 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 c146d7be6 deleted the copy curve and the mask argument of AcceptanceProfile::observe, and #644 and #645 then rewrote policy.rs, rounds.rs, utility.rs and cost.rs around that deletion. helios/src/scheduler/speculation.rs now matches upstream exactly and the tree carries no reference to speculation::copied or COPY_DRAFT_CAPACITY; the DFlash2 acceptance path for the served recipes comes from b12x's VerifyKernels.verify() offset, which replaced the hand-rolled copy path when patch/08 retired. RequestSpec::atomic_spans is 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> applied patch/06's scaling to any resolved checkpoint as a Hugging Face / vLLM YaRN rope_parameters object, 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 fork qualify/results/yarn-config/fork-serving-passkey.json)
    • Why retired: Upstream d3d0e783 and recipes 8ba8b287 (PR #212, hyperflare-recipes#68) take YaRN from the checkpoint's own text_config.rope_parameters, so a checkpoint directory whose config.json carries the model card's YaRN block replaces the flag; on 9375d679 the 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 fork qualify/results/v0.4.1-r1/qwen-passkey/). Cores exported with the flag keep loading
  • 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: a RopeScaling declaration, YaRN interpolation of the Qwen3.8 rotary tables, the qwen3.8-flash-yarn4 alias (1,048,576 tokens), and plan, identity and limits derived from the declared context. The recipes fork's 87c08409 multiplied the scaled tables by YaRN's attention factor, 0.1 ln(factor) + 1
    • Why retired: Upstream d3d0e783 derives the checkpoint context from its configuration and records it in the plan report, and recipes 8ba8b287 builds the qwen38 tables from the Transformers YaRN initializer with the attention factor applied once. The fork's commits, 87c08409 and 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 the qwen38 fused-rotation CUDA test with a factor-4 case passes on an RTX 5060 Ti
  • Image input for the dense Qwen recipe (1f486f63, 751eeefc) — added 2026-11-19, retired 2026-11-25
    • What it did: qwen38_dense prepared 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-only prepared no encoder
    • Why retired: Upstream 0d45b17a (#386; 32009ad1 in the recipes repository) adds image input for Qwen3.8 27B to its dense recipe: qwen38_dense declares max_images=4 on upstream recipes 07d7bb3. 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
  • FP8 paged prefill kernel call passes kv_tile_ranges (c44217ca) — added 2026-11-19, retired 2026-11-25
    • What it did: Passed None for 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 raised TypeError: Expects 16 parameters, so every dense Qwen export failed after compiling its forwards
    • Why retired: Upstream db4ba3d3 (ce095402 in the recipes repository) passes the trailing argument as None on the gated and ungated call in hyperflare_recipes/components/paged_tma.py and 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
  • 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 the transformers==5.23.0 distribution that the lock names, as well as a Git install of revision 1d9654e7, which was the only accepted source before
    • Why retired: Upstream 173eb256 (#456; 069f7189 in the recipes repository) requires the locked release: hyperflare_recipes/recipes/qwen38/checkpoint_schema.py declares TRANSFORMERS_VERSION = "5.23.0". The fork's commit is not carried
  • 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: d68ed8f5 aliases 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 what sampler=False did), and 4a24d78a derives 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 in tests/preparation/test_execution.py now match ba42481a. On the retiring commit the Qwen mixed, execution, bootstrap, speculative-state, DFlash2 and parallel-draft CPU suites pass, and on GPU 1 tests/recipes/test_qwen38_mixed_cuda.py passes 24 of 24. Packages exported with the patch keep loading
  • DFlash2 recipe qwen38_dflash (8046cf12, fold df9a23d1, 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-DFlash2 block draft through a recipe of its own: aliases qwen3.8-flash-dflash2 and qwen3.8-flash-dflash2-yarn4, a pin of local-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 qwen38 recipe 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.6 code_edit tok/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 to qwen38 with MTP proposals unless dflash2 is given), the tools dflash2_tap_check.py and mixed_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= and draft_windows= in state.py, feature taps in decoder.py, feature buffers in mixed_state.py, feedback= in speculative_state.py) and the "dflash" projector entry in ignition/components/dflash2_weights.py are 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. The admission and draft_page_blocks parameters of PreparedParallelDraftRound, their test, and the absorption and speculative-round hooks in mixed_model.py were removed with the move to upstream 6b68b9b4, whose functional draft round cannot run them
  • 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 e774a468 its five reproducers in tests/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; upstream fa0eadad keeps 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 the Raydius/flashinfer pin) — 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.decode tuning stopped failing with TypeError: Value after * must be an iterable, not int
    • Why retired: FlashInfer #71 (e239dfb3a) guards both flatten sites and is in upstream's pin 85ea6e76
  • 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_BYTES to the dynamic shared memory its captured node recorded. Fixed Ignition-prepared Qwen3.8-Flash packages failing cuGraphAddKernelNode_v2 with INVALID_VALUE (43 prefill nodes at 57,600 B vs an exported 49,152)
    • Why retired: Upstream 37c87e1d does the same: it raises a function's shared-memory allowance from its captured nodes
  • 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 slice returns an empty list for [][::-1]; minijinja is only a test oracle
  • patch/05-replace-cached — added 2026-10-21, retired 2026-10-22
    • What it did: ignition run --replace-cached kept only the current launch's package in the package cache, purging other snapshots and unreferenced blobs just before export
    • Why retired: Upstream 7d3331c5 removed ignition run
  • ignition run forwarding in patch/01 and patch/03 — added 2026-10-21, retired 2026-10-22
    • What it did: ignition run forwarded --generation-defaults, --max-context-tokens and --chat-template to Flare
    • Why retired: Upstream 7d3331c5 removed ignition run; the flare run flags remain
  • 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 (FlashInfer 0765eaf1), without which every Qwen3.8 preparation failed in "Prepare and tune kernels"
    • Why retired: Upstream's FlashInfer pin 9c9e94ef (Flare c922eb07) declares the same four dependencies
  • 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=2 configuration at the default autotune effort, because Ignition's Qwen3.8 QSA request had no benchmark and multi-candidate preparation failed
    • Why retired: Upstream aca7888f gives Ignition representative QSA tuning workloads, so the candidates race properly; keeping the patch would suppress that tuning
  • 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.jinja into the Docker build context and copied them beside helios/ in the build stage, because helios/src/frontend/templates.rs include_str!s them and upstream's .dockerignore excluded all of ignition/ (since 947a5a6d)
    • Why retired: Upstream 230c5b40 carries the template assets in its Docker context
  • 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 BindingMismatch and recompiled, instead of failing in as_strided (setStorage … out of bounds)
    • Why retired: Upstream 317c1ecc binds 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 on local/flare-ignition:ec2f234d (with the patch still applied, upstream 56f5702a, FlashInfer f91f257e from 7c1a9fde) 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
  • 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 6fa01a49 rebase, cause upstream a794c99d)
    • Why retired: Upstream #154 pools retained mappings across compiled warmup; the 149-forward export fits without it (removed in e6fc2ef6)

Flare — ASCII wordmark above a supermassive solar flare

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.

Licensing and contributions

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.

About

No description, website, or topics provided.

Resources

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages