Skip to content

Add Inkling line with speed and quality baselines - #14

Open
mbilokonsky wants to merge 1 commit into
mainfrom
inkling-baseline
Open

mbilokonsky wants to merge 1 commit into
mainfrom
inkling-baseline

Conversation

@mbilokonsky

Copy link
Copy Markdown
Contributor

What this adds

A new research line, inkling, on Inkling 2 Mini running locally on Apple silicon, with a baseline measured before any edit to the model.

  • research/inkling/ — README (provisional line question, written by the agent and flagged as such), claims.yaml, docs/EXPERIMENTS.md, results
  • scripts/inkling/ — common.py, speed.py, quality.py, smoke.py
  • .gitignore — ignores .venv-mlx/

No shared code is touched; nothing under src/lsx changes.

Model and runtime

  • Weights: mlx-community/Inkling-2-Mini-4bit @ 9c0e2960609ba7cb40daf92c6f7bf8ed56e1dd62
  • Runtime: mlx 0.32.5 with mlx-lm from unmerged PR Add Inkling 2 Mini model ml-explore/mlx-lm#2086, commit e2b5bbd3bd9d186dea895e60802aa765e70b9d93
  • Machine: M1 Max, 32 GB

Results

Speed (greedy): 18.2 ± 0.57 tok/s decode at the trained 3 passes (n=5); prefill 333–378 tok/s from 537 to 32,793 prompt tokens; decode time rises about 17 ms per loop pass across 1–5 passes.

Quality (n=100 per dataset, fixed sample, greedy, 2,048-token cap; capped items score wrong):

arm correct Wilson 95% no answer within cap
GSM8K, minimum effort 95 0.888–0.978 2
GSM8K, default effort 95 0.888–0.978 2
MMLU, minimum effort 81 0.722–0.875 8
MMLU, default effort 74 0.646–0.816 19

Greedy re-runs of the first five items were identical in all four arms.

Limits

  • The port has not been compared with the reference implementation (claim port-faithful, open). These are numbers for this port.
  • The MMLU accuracy gap between efforts is not established at n=100 (exact sign test on 11 discordant items, p = 0.065). The difference in cap hits is the measured part.
  • Only one capped item per arm was read; the share that is true repetition is not counted, and a larger cap was not tried.
  • These are baselines only. No battery with treatment, random and no-patch arms exists yet because no edit has been made.

Checks

python scripts/check_claims.py → OK; inkling 2/6 terminal, 4 open.

🤖 Generated with Claude Code

New research line on Inkling 2 Mini (mlx-community/Inkling-2-Mini-4bit @ 9c0e2960)
run locally through the unmerged mlx-lm port (PR 2086 @ e2b5bbd3) on an M1 Max.

Speed: 18.2 tok/s decode at the trained 3 passes; about 17 ms per loop pass.
Quality (n=100 each, greedy, 2,048-token cap): GSM8K 95/100 at minimum and default
reasoning effort; MMLU 81/100 at minimum, 74/100 at default, with 8 and 19 items
giving no answer within the cap.

The port has not been checked against the reference implementation.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant