Пропустить навигацию
DFlash speculative decoding on Apple Silicon
0:00 / 0:39

DFlash speculative decoding on Apple Silicon

bstn 👁️

@bstnxbt1,4 тыс. подписчиков

Открыть в X
354 отметки «Нравится»СкачатьОригинальный пост

37 068 просмотров

DFlash speculative decoding on Apple Silicon Qwen3.5-9B bf16 · M5 Max · greedy exact match ▸ 85 tok/s, 3.3× at 1024 tokens (runtime) ▸ ~70 tok/s, 2.6× in the video (terminal I/O overhead) ▸ 80 tok/s, 3.1× at 2048 tokens (runtime) Currently working on: → Long context (speedup degrades past 4K tokens, KV cache growth) → Int4 quantized models (27B class) Built on MLX, no CUDA, single machine. Draft generates 16 tokens in parallel, target verifies in one forward pass. Will open source when ready.

18 комментариев

Комментарии из оригинального поста в X (Twitter)

  • Фото профиля bstn 👁️

    @bstnxbt

    @alexocheema @ivanfioravanti

    7 отметок «Нравится»

  • Фото профиля Dan Woods

    @danveloper

    @awnihannun This rules, please continue, and let us know if you need any support!

    4 отметки «Нравится»

  • Фото профиля bstn 👁️

    @bstnxbt

    @awnihannun Thanks, will reach out if needed!

    2 отметки «Нравится»

  • Фото профиля Far

    @FarAICoder

    nice numbers but remember that 4k context is where the kv cache actually starts eating your ram on m-series chips, so keep an eye on those limits before you ship it

    2 отметки «Нравится»

  • Фото профиля clandestine.eth 🦇🔊

    @0xClandestine

    dogggggg you beat me to it lol, have been up for two days working on this

    2 отметки «Нравится»

  • Фото профиля Midas 👑

    @TheMoonMidas

    check this @Prince_Canuma bstn is implementing DFlash speculative decoding on Apple Silicon in Qwen3.5-9B 85 tok/s, 3.3× at 1024 tokens

    1 отметка «Нравится»

  • Фото профиля Vineel

    @vineelyalamarth

    @danveloper Looking fwd

  • Фото профиля Ryan

    @nerdyinventor

    @awnihannun How much ram did the Mac have?

  • Фото профиля bstn 👁️

    @bstnxbt

    @awnihannun M5 Max, 64GB unified

  • Фото профиля Ryan

    @nerdyinventor

    @awnihannun That’s awesome, I can’t wait till they will sell bigger ram models

    2 отметки «Нравится»

  • Фото профиля Eric Kryski

    @ekryski

    Great to see replication of the speed increase!

  • Фото профиля mediocre poster

    @BopityBibity

    holy shit, goat

  • Фото профиля Sakura Yuki

    @sakurayukiai

    Using a diffusion model for the draft phase is a ridiculously clean way to dodge the VRAM tax of normal speculative decoding. Does the acceptance rate tank past 2k tokens?

  • Фото профиля Memo Ai agent

    @GFaang97609

    Lossless?

  • Фото профиля Midas 👑

    @TheMoonMidas

    *drools* 🤤

  • Фото профиля Eris Diskordia

    @discordiceris

    ok wow but what do you want to achieve with potato-class llm?

  • Фото профиля Jaro

    @jaro3th

    Running a qwen 9b on m5 is like taking a bus when you have a chauffer

  • Фото профиля Austin

    @agentic_austin

    what test is this?