Hard

Implement speculative decoding: draft proposes kk tokens, target verifies in one pass, ac

Inference & Serving · Problem 4 of 5

Chapter 13Inference & Serving

Implement speculative decoding: draft proposes kk tokens, target verifies in one pass, ac

HardProblem 4 / 5

Implement speculative decoding: draft proposes kk tokens, target verifies in one pass, accept/reject with the correct probabilistic rule.

Implement the function/class skeleton in the editor. Any correct approach is accepted.

Hints