Skip to content

feat: MTP support #642

Description

@JoshuaWise

Feature Description

node-llama-cpp supports its own hand-rolled version of speculative token prediction via DraftSequenceTokenPredictor, but llama.cpp now supports this natively, without requiring a second model GGUF to be loaded.

The Solution

Add bindings for using the native MTP provided by llama.cpp: ggml-org/llama.cpp#22673

Considered Alternatives

I considered DraftSequenceTokenPredictor, but the native implementation is expected to perform better, and has a more convenient API (single GGUF) compared to DraftSequenceTokenPredictor.

Are you willing to resolve this issue by submitting a Pull Request?

No, I don’t have the time and I’m okay to wait for the community / maintainers to resolve this issue.

Metadata

Metadata

Assignees

Labels

new featureNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions