Run Tests and Benchmarks
mainTo verify the installation and run performance comparisons:
Run Unit Tests:
python -m pytest tests/test_gdr_unit.py -vRun Profiling:
Note: Requires flash_linear_attention==0.5.0 for comparison.
pip install flash_linear_attention==0.5.0
python profile/profile_gdr.py --set develop
python profile/profile_gdr.py --set develop --skip-bwdRun Benchmarks:
Note: Requires flash_linear_attention==0.5.0 and flashinfer-python==0.6.13 for comparison.
pip install flash_linear_attention==0.5.0 flashinfer-python==0.6.13
python benchmark/bench_gated_delta_rule.py