{"id":13438321,"url":"https://github.com/autumnai/leaf","last_synced_at":"2025-05-13T21:06:01.999Z","repository":{"id":45701460,"uuid":"44954997","full_name":"autumnai/leaf","owner":"autumnai","description":"Open Machine Intelligence Framework for Hackers. (GPU/CPU)","archived":false,"fork":false,"pushed_at":"2024-03-20T09:51:14.000Z","size":3938,"stargazers_count":5557,"open_issues_count":33,"forks_count":268,"subscribers_count":184,"default_branch":"master","last_synced_at":"2025-04-28T13:58:49.383Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/autumnai.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-10-26T08:20:56.000Z","updated_at":"2025-04-26T04:57:46.000Z","dependencies_parsed_at":"2024-07-31T04:47:57.716Z","dependency_job_id":null,"html_url":"https://github.com/autumnai/leaf","commit_stats":{"total_commits":107,"total_committers":14,"mean_commits":7.642857142857143,"dds":0.4672897196261683,"last_synced_commit":"858527fa6e2a60cb669d6af1cf4f1eb2bb839860"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autumnai%2Fleaf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autumnai%2Fleaf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autumnai%2Fleaf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autumnai%2Fleaf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/autumnai","download_url":"https://codeload.github.com/autumnai/leaf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254028652,"owners_count":22002277,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T03:01:04.526Z","updated_at":"2025-05-13T21:05:56.981Z","avatar_url":"https://github.com/autumnai.png","language":"Rust","funding_links":[],"categories":["Libraries","Rust","库 Libraries","库","AI \u0026 Machine Learning Platforms","Frameworks"],"sub_categories":["Artificial Intelligence","Machine learning","人工智能 Artificial Intelligence","人工智能","General-Purpose Machine Learning"],"readme":"# Leaf • [![Join the chat at https://gitter.im/autumnai/leaf](https://img.shields.io/badge/gitter-join%20chat-brightgreen.svg)](https://gitter.im/autumnai/leaf?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge) [![Build Status](https://travis-ci.org/autumnai/leaf.svg?branch=master)](https://travis-ci.org/autumnai/leaf) [![Crates.io](http://meritbadge.herokuapp.com/leaf)](https://crates.io/crates/leaf) [![License](https://img.shields.io/crates/l/leaf.svg)](LICENSE)\n\n## Introduction\n\nLeaf is a open Machine Learning Framework for hackers to build classical, deep\nor hybrid machine learning applications. It was inspired by the brilliant people\nbehind TensorFlow, Torch, Caffe, Rust and numerous research papers and brings\nmodularity, performance and portability to deep learning.\n\nLeaf has one of the simplest APIs, is lean and tries to introduce minimal\ntechnical debt to your stack.\n\nSee the [Leaf - Machine Learning for Hackers][leaf-book] book for more.\n\nLeaf is a few months old, but thanks to its architecture and Rust, it is already\none of the fastest Machine Intelligence Frameworks available.\n\n\n\u003e See more Deep Neural Networks benchmarks on [Deep Learning Benchmarks][deep-learning-benchmarks-website].\n\nLeaf is portable. Run it on CPUs, GPUs, and FPGAs, on machines with an OS, or on\nmachines without one. Run it with OpenCL or CUDA. Credit goes to\n[Collenchyma][collenchyma] and Rust.\n\nLeaf is part of the [Autumn][autumn] Machine Intelligence Platform, which is\nworking on making AI algorithms 100x more computational efficient.\n\nWe see Leaf as the core of constructing high-performance machine intelligence\napplications. Leaf's design makes it easy to publish independent modules to make\ne.g. deep reinforcement learning, visualization and monitoring, network\ndistribution, [automated preprocessing][cuticula] or scaleable production\ndeployment easily accessible for everyone.\n\n[caffe]: https://github.com/BVLC/caffe\n[rust]: https://www.rust-lang.org/\n[tensorflow]: https://github.com/tensorflow/tensorflow\n[benchmarks]: #benchmarks\n[leaf-examples]: #examples\n[documentation]: http://autumnai.github.io/leaf\n\n\u003e Disclaimer: Leaf is currently in an early stage of development.\n\u003e If you are experiencing any bugs with features that have been\n\u003e implemented, feel free to create a issue.\n\n## Getting Started\n\n### Documentation\n\nTo learn how to build classical, deep or hybrid machine learning applications with Leaf, check out the [Leaf - Machine Learning for Hackers][leaf-book] book.\n\nFor additional information see the [Rust API Documentation][documentation] or the [Autumn Website][autumn].\n\nOr start by running the **Leaf examples**.\n\nWe are providing a [Leaf examples repository][leaf-examples], where we and\nothers publish executable machine learning models build with Leaf. It features\na CLI for easy usage and has a detailed guide in the [project\nREADME.md][leaf-examples].\n\nLeaf comes with an examples directory as well, which features popular neural\nnetworks (e.g. Alexnet, Overfeat, VGG). To run them on your machine, just follow\nthe install guide, clone this repoistory and then run\n\n```bash\n# The examples currently require CUDA support.\ncargo run --release --no-default-features --features cuda --example benchmarks alexnet\n```\n\n[leaf-examples]: https://github.com/autumnai/leaf-examples\n\n### Installation\n\n\u003e Leaf is build in [Rust][rust]. If you are new to Rust you can install Rust as detailed [here][rust_download].\nWe also recommend taking a look at the [official Rust - Getting Started Guide][rust_getting_started].\n\nTo start building a machine learning application (Rust only for now. Wrappers are welcome) and you are using Cargo, just add Leaf to your `Cargo.toml`:\n\n```toml\n[dependencies]\nleaf = \"0.2.1\"\n```\n\n[rust_download]: https://www.rust-lang.org/downloads.html\n[rust_getting_started]: https://doc.rust-lang.org/book/getting-started.html\n[cargo-edit]: https://github.com/killercup/cargo-edit\n\nIf you are on a machine that doesn't have support for CUDA or OpenCL you\ncan selectively enable them like this in your `Cargo.toml`:\n\n```toml\n[dependencies]\nleaf = { version = \"0.2.1\", default-features = false }\n\n[features]\ndefault = [\"native\"] # include only the ones you want to use, in this case \"native\"\nnative  = [\"leaf/native\"]\ncuda    = [\"leaf/cuda\"]\nopencl  = [\"leaf/opencl\"]\n```\n\n\u003e More information on the use of feature flags in Leaf can be found in [FEATURE-FLAGS.md](./FEATURE-FLAGS.md)\n\n### Contributing\n\nIf you want to start hacking on Leaf (e.g.\n  [adding a new `Layer`](http://autumnai.com/leaf/book/create-new-layer.html))\nyou should start with forking and cloning the repository.\n\nWe have more instructions to help you get started in the [CONTRIBUTING.md][contributing].\n\nWe also has a near real-time collaboration culture, which happens\nhere on Github and on the [Leaf Gitter Channel][gitter-leaf].\n\n\u003e 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 below, without any additional terms or conditions.\n\n[contributing]: CONTRIBUTING.md\n[gitter-leaf]: https://gitter.im/autumnai/leaf\n[mj]: https://twitter.com/mjhirn\n[hobofan]: https://twitter.com/hobofan\n[irc]: https://chat.mibbit.com/?server=irc.mozilla.org\u0026channel=%23rust-machine-learning\n\n## Ecosystem / Extensions\n\nWe designed Leaf and the other crates of the [Autumn Platform][autumn] to be as modular\nand extensible as possible. More helpful crates you can use with Leaf:\n\n- [**Cuticula**][cuticula]: Preprocessing Framework for Machine Learning\n- [**Collenchyma**][collenchyma]: Portable, HPC-Framework on any hardware with CUDA, OpenCL, Rust\n\n[cuticula]: https://github.com/autumnai/cuticula\n[collenchyma]: https://github.com/autumnai/collenchyma\n\n## Support / Contact\n\n- With a bit of luck, you can find us online on the #rust-machine-learning IRC at irc.mozilla.org,\n- but we are always approachable on [Gitter/Leaf][gitter-leaf]\n- For bugs and feature request, you can create a [Github issue][leaf-issue]\n- For more private matters, send us email straight to our inbox: developers@autumnai.com\n- Refer to [Autumn][autumn] for more information\n\n[leaf-issue]: https://github.com/autumnai/leaf/issues\n\n## Changelog\n\nYou can find the release history at the [CHANGELOG.md][changelog]. We are using [Clog][clog], the Rust tool for auto-generating CHANGELOG files.\n\n[changelog]: CHANGELOG.md\n[Clog]: https://github.com/clog-tool/clog-cli\n\n## License\n\nLicensed under either of\n\n * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n\nat your option.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fautumnai%2Fleaf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fautumnai%2Fleaf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fautumnai%2Fleaf/lists"}