You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat: wire MTP speculative decoding into the offline mlxcel generate path #166
Wire the MTP speculative-decoding round loop into the offline mlxcel generate path. Today MTP speculative decode only runs in the server burst path; the offline CLI returns a deferred error for every target.
Current state
src/commands/generate.rs (~lines 899-926): when --draft-kind mtp is passed to offline mlxcel generate, it errors:
"--draft-kind mtp is plumbed end-to-end but the offline `mlxcel generate` path
does not yet construct the kind-specific MtpGenerator round loop on this target model..."
So a one-shot CLI user cannot get the MTP speedup (~1.2-1.87x, measured) without standing up a server. The server burst path already drives MtpGenerator via Gemma4MtpTargetAdapter / Gemma4UnifiedMtpTargetAdapter; the offline path just never builds that loop.
Goal
Construct and drive the MtpGenerator round loop in the offline generate path for MTP-capable targets, reusing the same per-target MtpTarget adapters the server uses (src/models/gemma4_mtp_target.rs), so mlxcel generate --draft-kind mtp performs speculative decode.
Touchpoints
src/commands/generate.rs — the --draft-kind mtp branch (replace the error with the real loop).
Activity
fix(generate): strip terminal EOS from offline MTP output for temp-0 …
docs: fix --lang-bias comment, add offline MTP parity note
feat(generate): wire MTP speculative decode into offline generate (#385)
feat(generate): wire MTP speculative decode into offline generate (la…