theapemachine/sparse-transformer-experiments
0
Sparse Transformer: Experiment Suite + Triton Kernels
Comprehensive experiment infrastructure for the Chunked Sparse Backward Pass paper.
Files
Quick Start
pip install torch triton tiktoken matplotlib numpy
# Correctness test + microbenchmark
python triton_sparse.py
# End-to-end training (needs ≥24GB GPU for d=2048)
python e2e_full.py
# Full ablation suite (7 experiments, ~4-6 hours on A10G)
python full_experiments.py --experiment all --device cuda --steps 2000 --seeds "42,123,456"
# Single experiment
python full_experiments.py --experiment baselines --device cudaResults
See RESULTS.md for collected tables.
