Easy

Implement temperature + top-kk + top-pp sampling from a logits vector in numpy

Inference & Serving · Problem 1 of 5

Chapter 13Inference & Serving

Implement temperature + top-kk + top-pp sampling from a logits vector in numpy

EasyProblem 1 / 5

Implement temperature + top-kk + top-pp sampling from a logits vector in numpy.

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

Hints