Chapter 264 / 8
Correctness, Debugging, and Performance Experiments
Write a cached-vs-full-forward equivalence test for incremental decoding
Medium
Target interface
test_cache_equals_full(model, input_ids, rtol=0.0001, atol=1e-05)Complete the starter code in the editor. Any correct approach is accepted.
Hints0 / 2
Reference solution
Your own code stays in the editor.