Comparison
jaxtyping vs torchtyping
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Type annotations and runtime checking for shape and dtype of JAX/NumPy/PyTorch/etc. arrays.
Maintained. Last release 6 months ago, commits in 4 of the last 26 weeks. Weaker on commit activity.
$
pip install jaxtypingRuntime type annotations for the shape, dtype etc. of PyTorch Tensors.
Slowing down. Last release over 2 years ago, little activity since. Fine for existing code; think twice for a new project.
$
pip install torchtypingIn short
- torchtyping is slowing down (last release over 2 years ago): fine for existing code, risky for a new project.
- jaxtyping is the most used: 6.2M downloads a month, 110× more than torchtyping.
- jaxtyping also has the best Pythie’s Index (62).
- jaxtyping is growing fastest: downloads +11% over the last month.
- Safe default for a new project: jaxtyping.
Side by side
| Metric | jaxtyping | torchtyping |
|---|---|---|
| Pythie’s Index | Pythie’s Index: 62 | 19 |