Back to directory

DDTree-MLX

A tree-based speculative decoding method for Apple Silicon that extends the DFlash draft model with a draft tree, verifying several candidate continuations in one pass.

DDTree-MLX

DDTree-MLX extends DFlash speculative decoding for Apple's MLX framework by building a draft tree from per-position token probabilities rather than betting on one draft sequence, then verifying every node of the tree against the target model in a single forward pass using tree attention masks and per-token RoPE positions. Because every token is still checked against the target model, the output stays lossless.

The README reports, on a Mac Studio M3 Ultra running a 27B model in 4-bit, roughly 10 to 15 percent faster generation than DFlash alone on code and structured content, where the draft model's predictions are accepted often enough for the extra branches to pay off; on creative prose, where acceptance is low, the tree adds little.

It is implemented in Python with custom Metal kernels and is based on a paper on block-diffusion draft trees.

More in Inference

See all 770
  • OpenDecision

    deepanwadhwa.github.io

    An open-source Python package that answers typed questions about application state or documents using a local natural-language-inference model, returning structured choice, score, yes/no or evidence-relation values instead of free text.

  • Lifeboat

    iterate.ai

    A local inference server that puts an OpenAI- and Anthropic-compatible API in front of open-weight language models running on hardware you control, from a laptop to a GPU cluster.

  • Claude S40

    github.com

    An unofficial Claude chat client for 2007-era Nokia Series 40 phones, built as a Java ME app plus a small Go relay server, with web search, reading mode and saved chats.