Repository navigation
Introduce Breeze and Jetson Thor (SM110) to Flare core - #592
Open
kbenkhaled wants to merge 1 commit into
Open
kbenkhaled wants to merge 1 commit into
kbenkhaled wants to merge 1 commit into
Conversation
Jetson Thor (SM110, PCI device 0x2b00) runs native CUDA kernels from Breeze
rather than FlashInfer/b12x. Previously, Ignition rejected compute capability
(11, 0) during GPU admission, recipes could not declare supported compute
capabilities, forward compilation and weight discovery walked only b12x and
Ignition objects, RecordedPreparationSession required b12x requests to tune,
PLE lookup in ignition/components/ngram_delivery.py assumed
b12x.sequence.ple_embedding, and Helios's PCI naming table did not recognize
0x2b00. To support Breeze on SM110 alongside b12x on SM87/SM103/SM120/SM121
without adding an interchangeable backend layer, runtime compilation, or
environment switches, GPU architecture selects the kernel library once at
planning and session initialization, and both libraries share declare(),
session.tune(), and ForwardCache.
Changes:
- helios/src/core/naming.rs and flare/src/catalog.rs: register Jetson Thor
(THOR_DEVICES = [0x2b00], platform "thor") in PLATFORMS and platform_from_pci,
with naming and catalog unit tests.
- ignition/declaration.py, ignition/planning.py, and ignition/cli/__init__.py:
define B12X_CAPABILITIES = ((8, 7), (10, 3), (12, 0), (12, 1)),
BREEZE_CAPABILITIES = ((11, 0),), SUPPORTED_CAPABILITIES,
format_capabilities(), and uses_breeze(device); add Recipe.capabilities
defaulting to B12X_CAPABILITIES so recipes that do not support SM110 fail at
planning time before loading weights.
- ignition/preparation/breeze.py: add require_breeze(), breeze_cache(kernel_cache),
breeze_op_key(), is_breeze_entry(), BreezeSession, and BreezeBuffers.
BreezeSession caches prepared ops with tuple keys and retained key-tensor
references, tracks prepared row capacities, runs Breeze start-time tuning,
and allocates one shared 256-byte-aligned scratch workspace (in
core_storage.graph_pool during export, serializing zero bytes to disk) plus
one shared 256-byte-aligned zeroed persistent counter buffer. All Breeze
imports stay lazy so SM87/SM103/SM120/SM121 environments do not require
Breeze.
- ignition/preparation/tuning.py: attach self.breeze = BreezeSession(...) to
RecordedPreparationSession when uses_breeze(device) is true; extend declare()
to accept breeze.tune.entries.Entry alongside b12x PreparationRequest; run
Breeze tuning inside RecordedPreparationSession.tune() under _tuning_clocks()
honoring --autotune-effort (off -> plan, default -> prepare(cache=True),
audit -> prepare(cache=False)); scope breeze_cache(config.kernel_cache) in
@with_autotune_effort; and release Breeze session state on close().
- ignition/preparation/{aot,compile_pool,forward_metadata,rebuild_manifest}.py:
walk breeze.* objects in _uses_custom_object_state (guard and forward metadata
pickling) and weight_views; register breeze.torch_ops in CompilePool workers
only when breeze is installed (guarded via find_spec("breeze")); hash
breeze/**/*.py into ForwardCache keys only on BREEZE_CAPABILITIES GPUs so
non-Breeze cache keys are unchanged.
- ignition/components/ngram_delivery.py: add flare::breeze_ple_requests
(torch.ops.breeze.ngram_hash + publish) and flare::breeze_staged_ple
(wait_for_readiness + torch.ops.breeze.ngram_dequant) inside PreparedPLELookup
using the same two-op publish/consume boundary as b12x, validating
quant_mode == "nvfp4_group16", tp_size == 1, head geometry, and EOS boundary
clamping from caps.
- AGENTS.md, docs/design-review.md, docs/cli-design.md,
docs/core-format-design.md, and docs/orbit.md: document SM110 / Jetson Thor
("thor") and Breeze alongside SM103/SM120/SM121 and FlashInfer/b12x.
- tests/preparation/test_sm110_breeze.py: test SM110 capability and
Recipe.capabilities admission, BreezeSession caching/strict finalization/late
sizer rejection, missing-Breeze safety in ForwardCache and _compile_forward
(plus SM110 vs SM120 cache hashing isolation), Breeze weight_views,
breeze_cache scoping, unified declare() tuning for off/default/audit, and
shared 256B-aligned workspace reuse through ForwardCache and CompilePool
across poisoned alternating CUDA graph replays.
Validation on NVIDIA Jetson Thor (SM110, PCI 0x2b0010de, CUDA 13.2) with Breeze
at 51ab00e (rebased onto ba3afb1; no SM103/SM120/SM121 GPU on this host):
- Rebuilt flare_heliopause and release flare-cli on Thor.
- Rust tests: flare-helios (--features runtime-core) core::naming::tests 6/6
passed; flare catalog::tests 9/9 passed.
- Core Python + CUDA tests (tests/preparation/test_sm110_breeze.py,
tests/preparation/test_core_boundary.py,
tests/preparation/test_runtime_memory_planning.py,
tests/preparation/test_runtime_patches.py, tests/cli): 168/168 passed with
FLARE_RUN_CUDA_TESTS=1.
- End-to-end with hyperflare-recipes (nvidia/Qwen3.8-Flash-Next-FP4-Local,
revision b9ce18a6, TP1, concurrency 4, MTP5, vision): ignition export tuned
42 Breeze entries, compiled and captured 71 graphs (3,262 exported kernels,
shared 256B-aligned Breeze workspace in graph_pool), exported
thor-tp1-202611282344, and passed all 9 serving validation checks (MTP5 +
MTP0, vision, 0.000000 step-0 top-5 greedy logprob diff) and warm AIPerf
benchmarks via native flare run.
- Authorship (design-review principle 14): all code and shared-workspace
mechanisms were authored by Gemini 4 Neon (not Claude Opus 5.5) and
independently reviewed by GPT-6.2 Sol.
Limitations: Breeze is currently user-installed on SM110 hosts until a pinned
package/wheel is added to pyproject.toml; only single-GPU (TP1) SM110
preparation and serving were executed; SM87/SM103/SM120/SM121 GPU suites were
not run in this environment.
Design-Signed-Off-By: Gemini 4 Neon (Cursor); design-review=09c1
Signed-off-by: kbenkhaled <[email protected]>
kbenkhaled
force-pushed
the
breeze-sm110-merge
branch
from
November 29, 2026 00:51
a60b159 to
99e4c95
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds SM110 (Jetson Thor) preparation and serving support using Breeze as the native CUDA kernel library. Currently users must install Breeze manually from NVIDIA-AI-IOT/breeze.
Validation
Tested on Jetson Thor with Breeze providing the kernels:
heliosnaming (6/6) andflarecatalog (9/9) passed.FLARE_RUN_CUDA_TESTS=1): 168/168 passed.hyperflare-recipesPR (Qwen3.8-Flash-Next-FP4-Local@b9ce18a6, TP1, max concurrency 4, MTP5, vision): exported 71 graphs / 3,262 kernels (77.9 GiB resident), passed all 9 MTP5 and MTP0 serving checks viaflare run(0.000000step-0 top-5 greedy logprob diff).concurrency=1):