Prerequisites
Feature Description
I suggest porting self speculative decoding from mainline if possible:
ggml-org/llama.cpp#18471
"The algorithm is simple: search for a pattern of length draft-min in the token history and use the subsequent draft-max tokens for speculation"
From what I gather, whenever the model produces a sequence of tokens of length "draft min" that has been already been written in the past, speculate that the next "draft-max" number of tokens will be the same as its continuation.
Motivation
Basically high t/s speeds improvement for inference with lots of rewriting of the same stuff, such as code refactoring or debugging.
Possible Implementation
ggml-org/llama.cpp#18471
Prerequisites
Feature Description
I suggest porting self speculative decoding from mainline if possible:
ggml-org/llama.cpp#18471
"The algorithm is simple: search for a pattern of length draft-min in the token history and use the subsequent draft-max tokens for speculation"
From what I gather, whenever the model produces a sequence of tokens of length "draft min" that has been already been written in the past, speculate that the next "draft-max" number of tokens will be the same as its continuation.
Motivation
Basically high t/s speeds improvement for inference with lots of rewriting of the same stuff, such as code refactoring or debugging.
Possible Implementation
ggml-org/llama.cpp#18471