diff --git a/changelog.d/flint-decode-fusions.md b/changelog.d/flint-decode-fusions.md new file mode 100644 index 0000000000..94301ef562 --- /dev/null +++ b/changelog.d/flint-decode-fusions.md @@ -0,0 +1,3 @@ +### Flint decode fusions + +- Pin the SDK with exact Flint decode fusions (fused q/k/v and gate/up projections, fused routed gate/up banks, a single MoE combine-and-residual kernel and compiled router steps): about 40% fewer GPU dispatches per decode token with byte-identical outputs. diff --git a/docs/architecture/inference.md b/docs/architecture/inference.md index 3627c6cfb8..7316640098 100644 --- a/docs/architecture/inference.md +++ b/docs/architecture/inference.md @@ -2510,6 +2510,14 @@ rebuilding the vocabulary-sized mask on the host. The catalog artifact legacy serving width (`ServingPerformanceProfiles.legacyMaximumConcurrency`) on M5 Pro, Max and Ultra without an operator override. +Decode also runs fewer, fused kernels: one quantized matmul for q/k/v on single +rows and for dense/shared gate+up on small batches, routed gate/up banks fused +at load (the checkpoint is still validated in split form), compiled router +steps, and one kernel for the MoE combine, shared-expert add and residual add. +The batch-1 decode graph drops from about 2,000 to about 1,200 GPU primitives +per token with byte-identical outputs. Larger row counts keep the separate +projections, because MLX's split-K choice depends on the output width. + The published tool protocol has no escape for a literal `` in a top-level raw string value. `FlintRequestPolicy` rejects such historical arguments; syntactically indistinguishable generated frames cannot be recovered diff --git a/libs/mlx-swift-lm b/libs/mlx-swift-lm index 993f706032..7bed821615 160000 --- a/libs/mlx-swift-lm +++ b/libs/mlx-swift-lm @@ -1 +1 @@ -Subproject commit 993f7060322844b217fbd9d134596f8f75394c3e +Subproject commit 7bed821615ad017a1f5c1f642d70e1d057c230ac