Skip to content

NVlabs/SOLAR

Repository files navigation

SOLAR SOLAR icon

PyTorch Model Analysis Toolkit — graph extraction, einsum conversion, and hardware-aware SOL performance analysis.

Docs License: Apache-2.0 Python GitHub stars

SOLAR = Speed of Light Analysis for Runtime

SOLAR is a toolkit for analyzing PyTorch model graphs, converting them to einsum representations, and performing SOL performance analysis.

It is used by SOL-ExecBench for deriving SOL performance metrics that serve as ground-truth references for evaluating LLM-generated GPU kernels.

Quick links: Quickstart · Documentation · License

Related: SOL-ExecBench GitHub · Dataset (HuggingFace) · Website


Quickstart

# From repo root (installs SOLAR + patched torchview)
bash install.sh  # or: bash install_uv.sh && source .venv/bin/activate

cd examples/Attention
bash run_solar.sh

Note: SOLAR depends on a patched torchview for parameter-tensor support. The install scripts apply patches/torchview-parameter-tensors.patch by default.

For PDF graph rendering, install Graphviz (dot).

Documentation

Contributing

See CONTRIBUTING.

License

Apache 2.0 License

About

Speed of Light Analysis for ML Model Runtime

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors