Repository navigation
Add TML-d24-varloop-research checkpoint and SM120 qualification to Inkling 2 Mini - #468
Closed
brandonmmusic-max wants to merge 1 commit into
Closed
brandonmmusic-max wants to merge 1 commit into
brandonmmusic-max wants to merge 1 commit into
Conversation
…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>
Contributor
Author
|
Closing this PR in The change has been re-ported onto |
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.
Why
PR #433 added
MINI_RECIPEinsideignition/recipes/inkling2/forthinkingmachines/Inkling-2-Minion GB10 (SM121), leaving SM120 untested and rejecting checkpoints withloop_config.is_varloop: true. The companion public checkpointthinkingmachines/TML-d24-varloop-research(657b53ba5da7baefe9ff15dca5cd25f5bd3dbaa2) has the exact same 24-layer / 48-visit looped architecture, 1,244 tensor keys (19,525,870,752stored bytes),hf_quant_config.json, vision tower, and DSpark drafter asInkling-2-Mini, differing inconfig.jsononly by omitting top-leveldtype(already defaulted tobfloat16) and settingloop_config.is_varloop: true(training-time variable-loop metadata;transformersexecutesnum_passes=3identically 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
ignition/recipes/inkling2/config.py): Accept booleanloop_config.is_varloopvalues (TrueorFalse) while keepingLoopConfig's four fields (core_start,core_end,num_passes,gate_rank) unchanged soInkling-2-MiniandInkling-2-Small-NVFP4preparation identities stay bit-identical.ignition/recipes/inkling2/recipe.py): RegisterCheckpoint(alias="tml-d24-varloop-research", repository="thinkingmachines/TML-d24-varloop-research", revision="657b53ba5da7baefe9ff15dca5cd25f5bd3dbaa2", architecture="Inkling2LoopForConditionalGeneration", served_model_name="TML-d24-varloop-research", ...)directly onMINI_RECIPE.checkpointswithout 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/recipes/test_inkling2_mini.py,tests/cli/test_inkling2.py,tests/cli/test_models.py,tests/server/test_inkling2_mini.py):test_varloop_release_configurationand reject non-booleanis_varloop("true").test_varloop_alias_and_repository_share_mini_recipeverifying both checkpoints resolve toMINI_RECIPEwith distinctserved_namevalues (inkling-2-minivsTML-d24-varloop-research), and updatealiases()intest_models.py.tests/server/test_inkling2_mini.pyover the servedmodel["id"](inkling-2-miniorTML-d24-varloop-research) and replace the single-word"calibration "repetition intest_images_and_cached_image_prefixeswith numbered calibration notes (matchingtest_chunked_prefix_restore_and_branching), avoiding single-token continuation before the TML content-kind header under defaulttemperature=1.0, top_p=1.0sampling.docs/model-preparation.md): Document thetml-d24-varloop-researchalias 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_RECIPEexports and serves boththinkingmachines/Inkling-2-Mini(inkling-2-mini) andthinkingmachines/TML-d24-varloop-research(TML-d24-varloop-research) natively on one SM120 GPU (NVIDIA RTX PRO 6000 Blackwell Workstation Edition) against pinned FlashInfer994df9c4, passing all CPU tests, GPU CUDA checkpoint tests, and nativeflare runservice tests across plain (0drafts), fixed (7drafts), and adaptive (7drafts) 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) againstNVIDIA/hyperflare-inferencemain(b9cac839) and locked FlashInfer994df9c4: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(includingtest_small_preparation_identityexact SHA-256 match).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.--max-concurrency 8 --prefill-chunk-size 8192 --autotune-effort default --compile-workers 6) andflare runservice qualification (tests/server/test_inkling2_mini.py, default samplingtemperature=1.0, top_p=1.0):inkling-2-mini(132graphs,11,838kernels):--mtp-draft-tokens 7 --no-mtp-adaptive-verification):6 passed(FLARE_INKLING2_MINI_TEST_DRAFTS=7),C=1180.4 tok/s,C=4489.2 tok/saggregate (122.3 tok/sper request).--mtp-draft-tokens 0):6 passed(FLARE_INKLING2_MINI_TEST_DRAFTS=0),C=1131.6 tok/s,C=4385.7 tok/saggregate (96.4 tok/sper request).--mtp-draft-tokens 7):5 passed, 1 skipped,C=1213.2 tok/s(mean_acc=1.41),C=4498.7 tok/saggregate (124.7 tok/sper request).tml-d24-varloop-research(132graphs,11,819kernels,/v1/modelsadvertisesTML-d24-varloop-research):--mtp-draft-tokens 7 --no-mtp-adaptive-verification):6 passed(FLARE_INKLING2_MINI_TEST_DRAFTS=7),C=1171.6 tok/s,C=4467.6 tok/saggregate (116.9 tok/sper request).--mtp-draft-tokens 0):6 passed(FLARE_INKLING2_MINI_TEST_DRAFTS=0),C=1152.7 tok/s,C=4433.0 tok/saggregate (108.3 tok/sper request).--mtp-draft-tokens 7):5 passed, 1 skipped,C=1201.2 tok/s(mean_acc=0.91),C=4516.8 tok/saggregate (129.2 tok/sper 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