Repository navigation
feat(cli): Inkling 2 effort flag, visit-count banner, 4-bit trace - #3381
Merged
Merged
Conversation
Three gaps left by #3367, grouped because they share one verification pass. `--reasoning-effort LEVEL` on `generate` and `run` (and the chat REPL both start). The one-shot render and the in-process chat body both go through the server's own request-to-kwargs resolution, plus an explicit typed `reasoning_effort` kwarg, because the server forwards a string and never forwards a disabled level such as `none`, while Inkling 2's template needs a JSON number for `0.5` and a level name for `none`. The template's own error text is shown unchanged. Without the flag every render is unchanged. The KV banner now prints after the model loads and counts the caches the model reports (`kv_cache_storage_modes()`), so Inkling 2 Mini says `48 of 48` instead of the 24 physical layers in `config.json`, and an int8 request is not claimed for caches that store FP16. The pipeline and OpenXLA paths load no model and keep the config count. `scripts/inkling2_mlx_community_remap.py` is the committed remap for the mlx-community 4-bit export, behind `--inkling2-mlx-community` on `mlx_lm_logit_trace.py` and `mlx_vlm_image_logit_trace.py`. On `models/inkling-2-mini-4bit` the text trace has 0/372 decided disagreements and the image trace on the #3367 image has identical prompt ids and 0/70 decided (docs/benchmark_results/inkling2-mini-4bit-image-trace-m3ultra-2026-11-24.md). Validated with the new unit tests, `commands::generate`, `commands::run`, `commands::cli_server`, `cli::` and `coverage_tests` selectors, clippy with -D warnings on lib, bins and tests, and real-checkpoint runs on both Mini checkpoints. Refs #3378
inureyes
marked this pull request as ready for review
November 24, 2026 03:06
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
--reasoning-effort LEVELonmlxcel generateandmlxcel run, for the one-shot render,run -pand both chat REPLs. It goes through the server's request-to-kwargs resolution plus an explicit typedreasoning_effortkwarg, because the server forwards a string and drops a disabled level such asnone, while Inkling 2 needs a JSON number for0.5. The template's own error text is shown unchanged, and a template that ignores the level renders the same bytes.48 of 48and an int8 request is not claimed for FP16 caches. The pipeline and OpenXLA paths load no model and keep the config count.scripts/inkling2_mlx_community_remap.pyis the committed remap for the mlx-community 4-bit export, behind--inkling2-mlx-communityon both logit-trace scripts.docs/benchmarks.mddocuments it.A disabled level (
none) also setsenable_thinking=falseon templates that read it, as the server does for the same request field. Only a template that reads neither key renders byte-identically for every level.Test plan
none,0.5, a named level and the default, an invalid level, a template that ignores the level, the 48-entry banner table against a 24-layer config, and the remap name and mode tables (tests/test_inkling2_mlx_community_remap.py).server::in_process,cli::,coverage_tests(lib) andcommands::generate,commands::run,commands::cli_server,commands::chat(bin) pass; clippy with-D warningson lib, bins and tests; fmt and the CI contract scripts pass.models/inkling-2-mini:nonerendersThinking effort level: 0,0.5renders0.5, no flag renders0.9, and the banner reads48 of 48.run -pand the REPL honour the flag.models/inkling-2-mini-4bitagainst mlx-vlm 466069f5: text trace 0/372 decided disagreements, image trace ontests/fixtures/sapiens2/person.jpgwith 600 identical prompt ids and 0/70 decided (docs/benchmark_results/inkling2-mini-4bit-image-trace-m3ultra-2026-11-24.md).make verifygate is left to the orchestrator.Closes #3378