LaurentMazare/tch-rs

Rust bindings for the C++ api of PyTorch.

58
/ 100
Established

This project helps Rust developers integrate advanced machine learning capabilities into their applications. It takes PyTorch's C++ API (libtorch) and makes it accessible within Rust, allowing for direct use of PyTorch's tensor operations, automatic differentiation, and neural network modules. The end-user is a Rust developer building high-performance machine learning systems.

5,316 stars. Actively maintained with 5 commits in the last 30 days.

Use this if you are a Rust developer who needs to build or integrate machine learning models, leverage GPU acceleration, and utilize the full power of PyTorch directly within your Rust applications.

Not ideal if you are looking for a high-level, opinionated machine learning framework in Rust, or if you prefer a solution that abstracts away the complexities of tensor operations and model architecture.

Machine Learning Development Deep Learning Engineering Scientific Computing High-Performance Computing Artificial Intelligence
No Package No Dependents
Maintenance 13 / 25
Adoption 10 / 25
Maturity 16 / 25
Community 19 / 25

How are scores calculated?

Stars

5,316

Forks

416

Language

Rust

License

Apache-2.0

Last pushed

Jan 22, 2026

Commits (30d)

5

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/ml-frameworks/LaurentMazare/tch-rs"

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