Files
leleka/crates/sampler-ref/tests/fixtures
Pavlo RatushnyiandClaude Sonnet 5.5 4d1594f71c fix(sampler): audit the Original-literal host sampler port against the C++ oracle
- SamplerParams moves to original_sampler_params.rs (pure) and is checked byte for
  byte against the Original struct (size, alignment, offsets, padding) and defaults.
- validate() no longer rejects top_p == 0 (the Original accepts it).
- Draft cell -1 (draft_first at position 0, counter 0) is accepted by
  coupled_draft_counter and OriginalSampler::sample_coupled.
- set_subset keeps the first index and ignores out-of-range ids like setup_coupled.
- Runtime penalty_rows / coupled helpers are compared with the Original header fixture;
  run_port_host_tests.sh runs these pure tests on macOS.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-14 14:55:55 +02:00
..