Repository navigation
Mei 0.18.0
Mei 0.18.0
Start Inkling 2 Mini vocabulary Q4 with mei --model inkling-2-mini-mei-q4. On an M1 Max with at least 32 GiB and a context cap up to 26,624, Mei selects the fused attention mask automatically. In a 2,048-token counting test on the 32 GiB M1 Max, the mask improved median generation speed from 20.43 to 22.68 tokens/s. Time to receive all 128 output tokens fell from 13.96 to 13.21 seconds. Both pairs of runs produced the same answers.
The same profile converts the dense attention projections to eight-bit weights when it loads the model. On top of the mask this raised 2,048-token decode from 22.66 to 25.01 tokens/s in two process pairs. It reduced active model memory by 555 MiB. Quantization changes token probabilities. Set VMLX_INKLING_ATTENTION_BITS=0 when starting Mei to keep the checkpoint precision.
Greedy raw Q4 completions at the automatic 256-token prefill step share normalization across depth queries during generation. Chat and sampled requests use the original reduction. With eight-bit attention already active, this raised median generation from 25.00 to 27.12 tokens/s at 2,048 input tokens. The complete request fell from 12.80 to 12.39 seconds. Set VMLX_INKLING_DEPTH_MIX=0 to use the original reduction.
Greedy raw Q4 completions on the qualified M1 Max profile use indexed KV writes when the prompt contains at least 7,936 tokens and the available output budget is at least 2,048 tokens. On the 7,936-input, 2,048-output test, the full response fell from 114.18 to 108.03 seconds. Both process pairs returned identical choices. Set VMLX_INKLING_INDEXED_KV=0 to disable this selection.
For the original publisher bundle, start mei --model inkling-2-mini. The fused mask raised 2,048-token generation by 8.72% at the named context cap. Both settings scored 22/25, retained the same individual task grades and gave identical maximum-context answers.
For repeated chat or tool requests, use mei --model inkling-2-mini-mei-q4 --cache-mode memory. Mei keeps one reusable 1,024-token prefix in memory. On repeated prompts with a matching prefix, chat prefill fell from 12.02–12.04 seconds to 6.30 seconds. The response reports the number of reused tokens in usage.prompt_tokens_details.cached_tokens.
M1 Max release measurements
With the 32 GB M1 Max and the named Q4 model, median generation rose from 24.49 to 30.67 tokens/s on the 16-token prompt and from 20.43 to 27.09 tokens/s on the 2,048-token prompt. Time to receive 128 output tokens on the longer prompt fell from 13.94 to 12.39 seconds. Each version served ten timed requests at each length across two fresh processes.
The package passed 22/25 tool, household and automation cases and retained all 20 cases passed by 0.17.0. Both executable coding cases passed. The named Q4 model retrieved the marker at 26,368 input tokens and served the exact 26,623-input-plus-one-output boundary. With memory caching enabled, median prefill for repeated chats fell from 11.70 to 6.06 seconds. All 17 cached and uncached choices matched.
On the shipping binary, the indexed cache served identical 2,048-token continuations at 7,936 input tokens. Median complete request time was 113.72 seconds with indexed writes disabled and 108.05 seconds with the automatic profile. Both process pairs improved.