Implement beam-search-over-reasoning-steps that expands/prunes partial CoTs using a PRM sc

Reasoning & Test-Time Compute3 / 4

Chapter 143 / 4

Reasoning & Test-Time Compute

Implement beam-search-over-reasoning-steps that expands/prunes partial CoTs using a PRM sc

Hard

Implement beam-search-over-reasoning-steps that expands/prunes partial CoTs using a PRM score.

Target interface
class Beam

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

Hints0 / 2
Reference solution
Your own code stays in the editor.