Repository navigation
perf(inkling2): faster real-world inference (+62% decode, +119% prefill at 3.6k) - #456
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
…, top_k=0 sampler, Q4 draft head, and thinkingBudget=0
… m16 MoE/router/CB-budget, SSD v7, and Round 1 scheduler fixes
…eanup, metallib sync, and Codex Round 2-3 fixes
…e in-vocab Case 3 prefixes
692206a to
57e1e3f
Compare
Follow-up to #456. The squash merge missed one line: the test-only `SuppressedOpenPagedBackend::finalize_turn` in `paged_turn.rs` builds a `ChatResult` without the `prompt_parts` field added by #451, so `cargo test --lib -p mlx-core` fails to compile on `main`. One line: `prompt_parts: None`. Checked with `cargo clippy --all-targets -D warnings` (clean).
…e with D1 count (#461) Live at https://portato.void.app (deployed from this tree). ## Site | Where | Before | After | |---|---|---| | Landing hero | Python code chat | PDF card-statement chat + mesh backdrop | | Landing chat card | `merge_intervals` code block | letter-photo turn (app's chat thread) | | /portato hero | Python code chat | Qwen3.8-27B reads a photo of a made-up Japanese tax letter | | Photo tile | static picture | the app's `ImageTiles`: hover card, viewer, Copy (small island) | | Work example + Session tab | old mock | real woff-build PR #91 session, speeds scaled per #456 | | Control Panel | screenshot gallery | 7-view tour of the app's components with generated mock data (`/panel-frame`) | | /portato header | mlx-node mark | Portato icon | - Removed: the Python conversation, `CodeBlock`, the code-highlighting build, `@shikijs/*`, the screenshot gallery and its shots. - Default `SITE_URL` is now `https://portato.void.app` (`vite.config.ts`, `void.config.ts`, `check-site.mjs`). - README line 42 and `ChatWork.tsx`: "A file edit is shown as a diff, and each command shows its output." ## `/download` ``` GET /download ─► OS: Sec-CH-UA-Platform, else User-Agent; arch: Sec-CH-UA-Arch / Linux UA ├─ mac → Portato-<v>-arm64.dmg ├─ windows → Portato-<v>-win32-arm64-setup.exe ├─ linux arm64 → Portato-<v>-linux-arm64.deb └─ x86 / phone / bot / failure → releases/latest release list: GitHub API (optional GITHUB_TOKEN secret, cached 10 min) └─ API fails → tag from the releases/latest redirect, names as release-version.ts builds them each GET → one D1 row in `downloads` (at, os, tag, target); no IP, no user agent ``` - Every "Download" button points at `/download`; on Windows/Linux the label reads "Download for Windows/Linux". - The site is now a hybrid Void deploy: every request goes through the Worker (pages are the same prerendered files). - Read the count: `cd website && CI=1 void db execute --remote --yes "select os, tag, count(*) from downloads where target = 'file' group by os, tag"`. ## Also in this PR - **One lockfile:** `website` is a root workspace; `website/yarn.lock` is gone (`installConfig.hoistingLimits: "workspaces"` keeps the site's packages in `website/node_modules`). All 1,014 existing root lock entries resolve the same; 278 packages added. The root install now runs 6 build scripts (esbuild ×3, workerd, better-sqlite3, `void prepare`). - **main build fix:** #458 + #460 left two test initializers without a new field (`turn_history_pin` in `paged_turn.rs`, `prefix_breakpoint_hints` in `qwen35_cuda_prefill_bench.rs`), so Clippy, cargo build/test and e2e fail on `main`. Both now use the value every other test uses. ## Checks `tsc`, `vp run build`, `check-portato-mock`, `check-numbers`, `check-site`, `check-samples`, `vp fmt --check` on changed files: pass. Route tested in `vp preview` and live (API blocked → fallback still gives the file; HEAD not counted). 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
Summary
Speeds up Inkling-2-Mini (
Q4_K_XL+inkling-2-mini-dflash2) on real workloads. Numbers are M5 Max, full-LTO release, vsfbbd1ae9b.What changed
top_k=0GPU sampler, Q4 spanned draftlm_head.r21NAX prefill, deviceint8Q (no TGq_tile), loop fission, wave-aligned split plan.m16NAX (NVFP4 + Sym-Q8_0) for M=9..32, faster router, command-buffer split fix._v2kernels).thinkingBudget=0no longer loops on<|content_thinking|>.v7(includes GPU core count). Old SSD entries are not reused.bridge_metallib_names.rs, andmetallib-select.ts. No hardcoded GPU/NAX unit counts.Notes
M=9..32NAX vsM=1..8SIMD differ by 1-2 ULP. Max RMSE 3e-4 at M=32. This can flip a near-tie greedy token under concurrent waves.MLX_INKLING2_MOE_COL_CUTOFF=999999restores bit-exact SIMD.MLX_INKLING2_DFLASH2_ADAPTIVE_DEPTH=0turns adaptive depth off.qwen3_5::dflash2::tests::draft_context_kv_bits_follow_append_width_not_slot_or_paddingfails on M5 Max onmain.Test plan (full-LTO
--release)cargo fmt,git diff --check,cargo clippy -D warnings(mlx-paged-attn, mlx-core, mlx-sys)mlx-paged-attn369,bridge_metallib_names10/10,vp testmetallib-select + payload 104/104mlx-coreInkling2 / scheduler / DFlash2 suites 629/629paged_vs_flat(31/31, 48/48 across SWA 1024),dspark_greedy,concurrent_batched(4/4),cold_tier(RAM + SSD + restart),concurrent_wavewithCOL_CUTOFF=999999(4/4 bit-exact)inkling2_roofline_profileandinkling2_realworld_bench