Skip to content

n-gram hashing for speculative decoding #851

Description

@nightscape

Hi, I hope I didn't miss an existing issue.
Does MLX already have a generic n-gram hasher for speculative decoding like ggml-org/llama.cpp#19164 ?
I saw #433 and #833, but they seem to be LongCat specific.
IIUC, the llama.cpp n-gram hashing works for arbitrary models and seems to bring quite a speed up in cases where parts of the response are verbatim copies of previous responses (which can happen quite a lot when iteratively refining code).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions