Skip navigation
We ran Thinking Machines' Inkling 2 Mini on an engine we wrote ourselves in Zig + Metal.
0:00 / 0:47

We ran Thinking Machines' Inkling 2 Mini on an engine we wrote ourselves in Zig + Metal.

Rach

@rachpradhan3.6K followers

Visit on X
759 likesDownloadOriginal post

36,380 views

We ran Thinking Machines' Inkling 2 Mini on an engine we wrote ourselves in Zig + Metal. No MLX. No Python in the model. On the same Mac it decodes faster than MLX and exo on our megakernel!

25 Comments

Comments from the original post on X (Twitter)

  • Rach's profile picture

    @rachpradhan

    We have significantly faster speeds than existing frameworks! But we also capped it at 32k, so that our poor device wouldn't overheat.

    12 likes

  • Rach's profile picture

    @rachpradhan

    Someone recently asked me what does its attention look like? So, I added a tap to the engine that records the real softmax weights. As the model writes its fix, you can see how much of each word's attention lands back on the file it read one step earlier(in the vid!)

    6 likes

  • Rach's profile picture

    @rachpradhan

    Try the app out over at The inference engine is MIT licensed and free for all to use at

    11 likes

  • Rach's profile picture

    @rachpradhan

    Thanks to @thinkymachines for releasing such a great model too! Paired up with the graff harness, it actually does a really good job! Also, the app was made with nanoui: Join its discord here:

    8 likes

  • Ran Aroussi's profile picture

    @aroussi

    Open source?

    2 likes

  • Rach's profile picture

    @rachpradhan

    always

    2 likes

  • Alexey Moiseenkov's profile picture

    @Darkolorin

    @CaryPalmerr Try other engines. I mean I run inkling on m3 ultra around 70-80 t/s.

    2 likes

  • Techmore's profile picture

    @techmore_edu

    Im a simple man, I see MLX and faster and tag the man @JoshuaSWarren

    2 likes

  • Sunrit (e/acc)'s profile picture

    @JanaSunrise

    so cool! would love to work on such ideas together.

    1 like

  • K.Nazran()'s profile picture

    @khairulnazran

    wut how

    1 like

  • Rach's profile picture

    @rachpradhan

    @ivanleomk's neon magic

    3 likes

  • Ricky Raihan Azhari's profile picture

    @rickyraz_

    vllm -> nanoattention skills when? 😆 your repo is such a refreshing air to learn llm 🔥🔥🔥

    1 like

  • Rach's profile picture

    @rachpradhan

    thanks ricky!! i wanna do more data viz things too coz its so fun to see how the calcs work

    1 like

  • ⛩️42's profile picture

    @forti_two

    will this run on an 18gb m3 mbp? unsloth was slow

    1 like

  • Min💙's profile picture

    @mint0themax

    smooth animation lol

    1 like

  • Rach's profile picture

    @rachpradhan

    thanks min!!!

  • Vasanth's profile picture

    @vasanth_sreeram

    I’m running the optimisation myself too managed to get decent speed for decode but prefill is the biggest bottleneck

    1 like

  • joseph's profile picture

    @proximalcoast

    any prefill numbers at 32k? my browser agent spends a lot of time reading pages before it ever gets to write anything.

  • orex's profile picture

    @orex_haarness

    how does prefill compare to MLX at long context? decode numbers on macs usually look great, it's the first 50k tokens of a repo that hurt

  • Hao Jün's profile picture

    @haojun222

    How much ram? Is 32G M2 Max enough?