Skip to content

Introduce Breeze and Jetson Thor (SM110) to Flare core - #592

Open
kbenkhaled wants to merge 1 commit into
NVIDIA:mainfrom
kbenkhaled:breeze-sm110-merge
Open

kbenkhaled wants to merge 1 commit into
NVIDIA:mainfrom
kbenkhaled:breeze-sm110-merge

Conversation

@kbenkhaled

Copy link
Copy Markdown

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.

  • Enables SM110 capability admission, per-recipe architecture declarations, and Thor platform naming.
  • Integrates Breeze preparation, autotuning, AOT forward compilation, shared 256B-aligned workspace/state buffers, and staged PLE n-gram delivery.
  • Keeps all Breeze imports lazy so non-SM110 hosts do not require Breeze and are unaffected.

Validation

Tested on Jetson Thor with Breeze providing the kernels:

  • Rust tests: helios naming (6/6) and flare catalog (9/9) passed.
  • Python + CUDA tests (FLARE_RUN_CUDA_TESTS=1): 168/168 passed.
  • End-to-end with companion hyperflare-recipes PR (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 via flare run (0.000000 step-0 top-5 greedy logprob diff).
  • AIPerf benchmarks (concurrency=1):
    • SPEED-Bench writing (MTP0 / MTP3 / MTP5): 30.4 / 49.2 / 49.6 tok/s (439 / 444 / 444 ms TTFT)
    • SPEED-Bench summarization (MTP0 / MTP3 / MTP5): 29.9 / 46.3 / 47.4 tok/s (470 / 472 / 472 ms TTFT)
    • Synthetic ISL 2048 / OSL 250 (no MTP): 30.1 tok/s (904 ms TTFT)

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]>
@flare-autobot flare-autobot added area:preparation Ignition checkpoint loading, tuning, compilation, capture, and export. enhancement New feature or request performance Performance, latency, throughput, or memory-efficiency investigation or improvement. labels Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:preparation Ignition checkpoint loading, tuning, compilation, capture, and export. enhancement New feature or request performance Performance, latency, throughput, or memory-efficiency investigation or improvement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants