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.
Feature Description
node-llama-cppsupports its own hand-rolled version of speculative token prediction viaDraftSequenceTokenPredictor, butllama.cppnow 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#22673Considered Alternatives
I considered
DraftSequenceTokenPredictor, but the native implementation is expected to perform better, and has a more convenient API (single GGUF) compared toDraftSequenceTokenPredictor.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.