Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
A

autograph

> 编程语言
Open source

A machine learning library for Rust.

334 stars0 likes0 views
WebsiteGitHub

About

A machine learning library for Rust.

[![LicenseBadge]][License] [![DocsBadge]][Docs] [License]: https://github.com/charles-r-earp/autograph/blob/main/LICENSE-APACHE [LicenseBadge]: https://img.shields.io/badge/license-MIT/Apache_2.0-blue.svg [Docs]: https://docs.rs/autograph [DocsBadge]: https://docs.rs/autograph/badge.svg

autograph

A machine learning library for Rust.

GPGPU kernels implemented with krnl.

  • Host and device execution.
  • Tensors emulate ndarray
    • Host tensors can be borrowed as arrays.
  • Tensors, models, and optimizers can be serialized with serde.
    • Portable between platforms.
    • Save and resume training progress.
  • Fully extensible, in Rust.

Neural Networks

…

See the Neural Network MNIST example.

Benchmarks

NVIDIA GeForce GTX 1060 with Max-Q Design

LeNet5(training, batch_size = 100)

autograph tch candle
bf16_host 498.54 ms (✅ 1.00x) 75.26 ms ( 6.62x faster) N/A
f32_host 8.25 ms (✅ 1.00x) 3.14 ms ( 2.63x faster) 34.17 ms (❌ 4.14x slower)
bf16_device 1.76 ms (✅ 1.00x) 17.63 ms (❌ 10.02x slower) N/A
f32_device 1.73 ms (✅ 1.00x) 1.19 ms (✅ 1.45x faster) 9.76 ms (❌ 5.64x slower)

LeNet5(inference, batch_size = 1,000)

autograph tch candle
bf16_host 1.81 s (✅ 1.00x) 193.60 ms ( 9.37x faster) N/A
f32_host 15.56 ms (✅ 1.00x) 9.46 ms (✅ 1.64x faster) 94.23 ms (❌ 6.06x slower)
bf16_device 4.65 ms (✅ 1.00x) 48.63 ms (❌ 10.46x slower) N/A
f32_device 4.65 ms (✅ 1.00x) 1.84 ms ( 2.52x faster) 10.81 ms (❌ 2.33x slower)

See the Neural Network benchmark.

License

Dual-licensed to be compatible with the Rust project.

Licensed under the Apache License, Version 2.0 http://www.apache.org/licenses/LICENSE-2.0 or the MIT license http://opensource.org/licenses/MIT, at your option. This file may not be copied, modified, or distributed except according to those terms.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rustcudamachine-learningneural-networksrust

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言