cai4cai/torchsparsegradutils

A collection of utility functions to work with PyTorch sparse tensors

52
/ 100
Established

This collection of tools helps machine learning practitioners efficiently work with sparse data in PyTorch. It provides a more memory-efficient way to perform complex operations like matrix multiplication and solving linear systems, especially when dealing with very large datasets where most values are zero. Data scientists and researchers working on deep learning models with sparse inputs will find this useful for training models faster and with less memory.

Available on PyPI.

Use this if you are a machine learning researcher or data scientist building deep learning models in PyTorch that utilize sparse tensors, and you need to improve memory efficiency and computation speed during training, especially when dealing with gradient calculations.

Not ideal if your workflow primarily involves dense tensors or if you are not working with PyTorch's automatic differentiation system for gradient computations.

deep-learning sparse-data numerical-optimization machine-learning-research computational-efficiency
Maintenance 10 / 25
Adoption 7 / 25
Maturity 25 / 25
Community 10 / 25

How are scores calculated?

Stars

37

Forks

4

Language

Python

License

Apache-2.0

Last pushed

Mar 11, 2026

Commits (30d)

0

Dependencies

2

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/ml-frameworks/cai4cai/torchsparsegradutils"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.