Skip to content

Add TML-d24-varloop-research checkpoint and SM120 qualification to Inkling 2 Mini - #468

Closed
brandonmmusic-max wants to merge 1 commit into
NVIDIA:mainfrom
brandonmmusic-max:inkling2-mini-varloop-sm120
Closed

brandonmmusic-max wants to merge 1 commit into
NVIDIA:mainfrom
brandonmmusic-max:inkling2-mini-varloop-sm120

Conversation

@brandonmmusic-max

@brandonmmusic-max brandonmmusic-max commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Why

PR #433 added MINI_RECIPE inside ignition/recipes/inkling2/ for thinkingmachines/Inkling-2-Mini on GB10 (SM121), leaving SM120 untested and rejecting checkpoints with loop_config.is_varloop: true. The companion public checkpoint thinkingmachines/TML-d24-varloop-research (657b53ba5da7baefe9ff15dca5cd25f5bd3dbaa2) has the exact same 24-layer / 48-visit looped architecture, 1,244 tensor keys (19,525,870,752 stored bytes), hf_quant_config.json, vision tower, and DSpark drafter as Inkling-2-Mini, differing in config.json only by omitting top-level dtype (already defaulted to bfloat16) and setting loop_config.is_varloop: true (training-time variable-loop metadata; transformers executes num_passes=3 identically at inference).

Serving Inkling 2 Mini checkpoints through Helios also benefits from the companion Helios TML output-parsing and Responses SSE error-sequence fixes in #457 and #458 (building on #162 and #304).

What changed

  • Config validation (ignition/recipes/inkling2/config.py): Accept boolean loop_config.is_varloop values (True or False) while keeping LoopConfig's four fields (core_start, core_end, num_passes, gate_rank) unchanged so Inkling-2-Mini and Inkling-2-Small-NVFP4 preparation identities stay bit-identical.
  • Checkpoint catalog (ignition/recipes/inkling2/recipe.py): Register Checkpoint(alias="tml-d24-varloop-research", repository="thinkingmachines/TML-d24-varloop-research", revision="657b53ba5da7baefe9ff15dca5cd25f5bd3dbaa2", architecture="Inkling2LoopForConditionalGeneration", served_model_name="TML-d24-varloop-research", ...) directly on MINI_RECIPE.checkpoints without adding a duplicate recipe module or changing any GB10 SM121 or Inkling 2 Small (Prepare and serve Inkling 2 Small NVFP4 at TP4 on four DGX Sparks #304) defaults.
  • Tests (tests/recipes/test_inkling2_mini.py, tests/cli/test_inkling2.py, tests/cli/test_models.py, tests/server/test_inkling2_mini.py):
    • Add test_varloop_release_configuration and reject non-boolean is_varloop ("true").
    • Add test_varloop_alias_and_repository_share_mini_recipe verifying both checkpoints resolve to MINI_RECIPE with distinct served_name values (inkling-2-mini vs TML-d24-varloop-research), and update aliases() in test_models.py.
    • Parameterize tests/server/test_inkling2_mini.py over the served model["id"] (inkling-2-mini or TML-d24-varloop-research) and replace the single-word "calibration " repetition in test_images_and_cached_image_prefixes with numbered calibration notes (matching test_chunked_prefix_restore_and_branching), avoiding single-token continuation before the TML content-kind header under default temperature=1.0, top_p=1.0 sampling.
  • Documentation (docs/model-preparation.md): Document the tml-d24-varloop-research alias and record SM120 (RTX PRO 6000 Blackwell) qualification alongside GB10 SM121 (Add Inkling 2 Mini text, vision, DSpark preparation, and fused loop kernels #433).

Claimed result

MINI_RECIPE exports and serves both thinkingmachines/Inkling-2-Mini (inkling-2-mini) and thinkingmachines/TML-d24-varloop-research (TML-d24-varloop-research) natively on one SM120 GPU (NVIDIA RTX PRO 6000 Blackwell Workstation Edition) against pinned FlashInfer 994df9c4, passing all CPU tests, GPU CUDA checkpoint tests, and native flare run service tests across plain (0 drafts), fixed (7 drafts), and adaptive (7 drafts) decoding modes without altering GB10 SM121 (#433) or Inkling 2 Small (#304) behavior.

Supporting evidence

Measured on NVIDIA RTX PRO 6000 Blackwell Workstation Edition (SM120) against NVIDIA/hyperflare-inference main (b9cac839) and locked FlashInfer 994df9c4:

  • CPU tests: pytest tests/recipes/test_inkling2_config.py tests/recipes/test_inkling2_mini.py tests/cli/test_inkling2.py tests/cli/test_models.py tests/cli/test_mtp_only.py -q -> 103 passed (including test_small_preparation_identity exact SHA-256 match).
  • SM120 CUDA checkpoint suites (FLARE_RUN_CUDA_TESTS=1):
    • Inkling-2-Mini: pytest tests/recipes/test_inkling2_kernels_cuda.py tests/recipes/test_inkling2_mini.py tests/components/test_inkling2_dspark_cuda.py -q -> 73 passed, 4 skipped (only optional external vLLM fixture skipped).
    • TML-d24-varloop-research: pytest tests/recipes/test_inkling2_mini.py tests/components/test_inkling2_dspark_cuda.py -q -> 39 passed, 4 skipped.
  • Native SM120 export (--max-concurrency 8 --prefill-chunk-size 8192 --autotune-effort default --compile-workers 6) and flare run service qualification (tests/server/test_inkling2_mini.py, default sampling temperature=1.0, top_p=1.0):
    • inkling-2-mini (132 graphs, 11,838 kernels):
      • Fixed 7 drafts (--mtp-draft-tokens 7 --no-mtp-adaptive-verification): 6 passed (FLARE_INKLING2_MINI_TEST_DRAFTS=7), C=1 180.4 tok/s, C=4 489.2 tok/s aggregate (122.3 tok/s per request).
      • Plain (--mtp-draft-tokens 0): 6 passed (FLARE_INKLING2_MINI_TEST_DRAFTS=0), C=1 131.6 tok/s, C=4 385.7 tok/s aggregate (96.4 tok/s per request).
      • Adaptive 7 drafts (--mtp-draft-tokens 7): 5 passed, 1 skipped, C=1 213.2 tok/s (mean_acc=1.41), C=4 498.7 tok/s aggregate (124.7 tok/s per request).
    • tml-d24-varloop-research (132 graphs, 11,819 kernels, /v1/models advertises TML-d24-varloop-research):
      • Fixed 7 drafts (--mtp-draft-tokens 7 --no-mtp-adaptive-verification): 6 passed (FLARE_INKLING2_MINI_TEST_DRAFTS=7), C=1 171.6 tok/s, C=4 467.6 tok/s aggregate (116.9 tok/s per request).
      • Plain (--mtp-draft-tokens 0): 6 passed (FLARE_INKLING2_MINI_TEST_DRAFTS=0), C=1 152.7 tok/s, C=4 433.0 tok/s aggregate (108.3 tok/s per request).
      • Adaptive 7 drafts (--mtp-draft-tokens 7): 5 passed, 1 skipped, C=1 201.2 tok/s (mean_acc=0.91), C=4 516.8 tok/s aggregate (129.2 tok/s per request).

Related PRs: #433 (Inkling 2 Mini GB10 recipe), #304 (Inkling 2 Small), #162 (merged Helios reasoning close-delimiter fix), #457 (Helios untyped TML model header and content-header grammar alignment), #458 (Helios Responses SSE sequence monotonicity on error).

Discord: brandonmusic

…kling 2 Mini

Accept boolean loop_config.is_varloop values in Inkling 2 Mini config
validation while keeping LoopConfig's four geometry fields unchanged so
Inkling-2-Mini and Inkling-2-Small-NVFP4 preparation identities stay
identical. Register thinkingmachines/TML-d24-varloop-research
(657b53ba5da7baefe9ff15dca5cd25f5bd3dbaa2, served as
TML-d24-varloop-research) directly on MINI_RECIPE alongside
inkling-2-mini without duplicating the recipe or altering GB10 SM121
defaults.

Update CLI, config, and native server tests to cover both checkpoints
and record SM120 (RTX PRO 6000 Blackwell) qualification in
docs/model-preparation.md.

Design-Signed-Off-By: Brandon M. Music; design-review=1af4
Signed-off-by: Brandon M. Music <266531604+brandonmmusic-max@users.noreply.github.com>
@brandonmmusic-max

Copy link
Copy Markdown
Contributor Author

Closing this PR in NVIDIA/hyperflare-inference because all seven files it modifies (ignition/recipes/inkling2/config.py, ignition/recipes/inkling2/recipe.py, docs/model-preparation.md, tests/cli/test_inkling2.py, tests/cli/test_models.py, tests/recipes/test_inkling2_mini.py, and tests/server/test_inkling2_mini.py) moved to local-inference-lab/hyperflare-recipes in the two-repository split.

The change has been re-ported onto local-inference-lab/hyperflare-recipes as local-inference-lab/hyperflare-recipes#5 with zero changes required in NVIDIA/hyperflare-inference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant