Medium

Implement nucleus (top-pp) sampling with correct renormalization and edge cases

Inference & Serving · Problem 3 of 5

Chapter 13Inference & Serving

Implement nucleus (top-pp) sampling with correct renormalization and edge cases

MediumProblem 3 / 5

Implement nucleus (top-pp) sampling with correct renormalization and edge cases.

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

Hints