FlashKDA icon indicating copy to clipboard operation
FlashKDA copied to clipboard

Add random seed to bench_fwd.py for reproducible benchmarks

Open haix716 opened this issue 4 months ago • 0 comments

Problem

bench_fwd.py generates random inputs on every run with no seed control, making benchmarks non-reproducible across runs. This makes it difficult to compare performance across commits or verify optimization improvements.

Recommendation

Add at the top of the benchmark script:

torch.manual_seed(42)

Impact

Reproducibility. Ensures benchmark results are comparable across runs and commits.

haix716 avatar Jul 28 '26 06:07 haix716