A super-easy way to record, search and compare AI experiments.
Project description
Drop a star to support Aim ⭐ | Join Aim discord community |
An easy-to-use & supercharged open-source experiment tracker
Aim logs your training runs and any AI Metadata, enables a beautiful UI to compare, observe them and an API to query them programmatically.AimStack offers enterprise support that's beyond core Aim. Contact via hello@aimstack.io e-mail.
About • Demos • Ecosystem • Quick Start • Examples • Documentation • Community • Blog
ℹ️ About
Aim is an open-source, self-hosted ML experiment tracking tool designed to handle 10,000s of training runs.
Aim provides a performant and beautiful UI for exploring and comparing training runs. Additionally, its SDK enables programmatic access to tracked metadata — perfect for automations and Jupyter Notebook analysis.
Aim's mission is to democratize AI dev tools 🎯
Log Metadata Across Your ML Pipeline 💾 | Visualize & Compare Metadata via UI 📊 |
---|---|
|
|
Run ML Trainings Effectively ⚡ | Organize Your Experiments 🗂️ |
|
|
🎬 Demos
Check out live Aim demos NOW to see it in action.
Machine translation experiments | lightweight-GAN experiments |
---|---|
Training logs of a neural translation model(from WMT'19 competition). | Training logs of 'lightweight' GAN, proposed in ICLR 2021. |
FastSpeech 2 experiments | Simple MNIST |
---|---|
Training logs of Microsoft's "FastSpeech 2: Fast and High-Quality End-to-End Text to Speech". | Simple MNIST training logs. |
🌍 Ecosystem
Aim is not just an experiment tracker. It's a groundwork for an ecosystem. Check out the two most famous Aim-based tools.
aimlflow | Aim-spaCy |
---|---|
Exploring MLflow experiments with a powerful UI | an Aim-based spaCy experiment tracker |
🏁 Quick start
Follow the steps below to get started with Aim.
1. Install Aim on your training environment
pip3 install aim
2. Integrate Aim with your code
from aim import Run
# Initialize a new run
run = Run()
# Log run parameters
run["hparams"] = {
"learning_rate": 0.001,
"batch_size": 32,
}
# Log metrics
for i in range(10):
run.track(i, name='loss', step=i, context={ "subset":"train" })
run.track(i, name='acc', step=i, context={ "subset":"train" })
See the full list of supported trackable objects(e.g. images, text, etc) here.
3. Run the training as usual and start Aim UI
aim up
Learn more
Migrate from other tools
Aim has built-in converters to easily migrate logs from other tools. These migrations cover the most common usage scenarios. In case of custom and complex scenarios you can use Aim SDK to implement your own conversion script.
Integrate Aim into an existing project
Aim easily integrates with a wide range of ML frameworks, providing built-in callbacks for most of them.
- Integration with Pytorch Ignite
- Integration with Pytorch Lightning
- Integration with Hugging Face
- Integration with Keras & tf.Keras
- Integration with Keras Tuner
- Integration with XGboost
- Integration with CatBoost
- Integration with LightGBM
- Integration with fastai
- Integration with MXNet
- Integration with Optuna
- Integration with PaddlePaddle
- Integration with Stable-Baselines3
- Integration with Acme
- Integration with Prophet
Query runs programmatically via SDK
Aim Python SDK empowers you to query and access any piece of tracked metadata with ease.
from aim import Repo
my_repo = Repo('/path/to/aim/repo')
query = "metric.name == 'loss'" # Example query
# Get collection of metrics
for run_metrics_collection in my_repo.query_metrics(query).iter_runs():
for metric in run_metrics_collection:
# Get run params
params = metric.run[...]
# Get metric values
steps, metric_values = metric.values.sparse_numpy()
Set up a centralized tracking server
Aim remote tracking server allows running experiments in a multi-host environment and collect tracked data in a centralized location.
See the docs on how to set up the remote server.
Deploy Aim on kubernetes
- The official Aim docker image: https://hub.docker.com/r/aimstack/aim
- A guide on how to deploy Aim on kubernetes: https://aimstack.readthedocs.io/en/latest/using/k8s_deployment.html
Read the full documentation on aimstack.readthedocs.io 📖
🆚 Comparisons to familiar tools
TensorBoard vs Aim
Training run comparison
Order of magnitude faster training run comparison with Aim
- The tracked params are first class citizens at Aim. You can search, group, aggregate via params - deeply explore all the tracked data (metrics, params, images) on the UI.
- With tensorboard the users are forced to record those parameters in the training run name to be able to search and compare. This causes a super-tedius comparison experience and usability issues on the UI when there are many experiments and params. TensorBoard doesn't have features to group, aggregate the metrics
Scalability
- Aim is built to handle 1000s of training runs - both on the backend and on the UI.
- TensorBoard becomes really slow and hard to use when a few hundred training runs are queried / compared.
Beloved TB visualizations to be added on Aim
- Embedding projector.
- Neural network visualization.
MLflow vs Aim
MLFlow is an end-to-end ML Lifecycle tool. Aim is focused on training tracking. The main differences of Aim and MLflow are around the UI scalability and run comparison features.
Aim and MLflow are a perfect match - check out the aimlflow - the tool that enables Aim superpowers on Mlflow.
Run comparison
- Aim treats tracked parameters as first-class citizens. Users can query runs, metrics, images and filter using the params.
- MLFlow does have a search by tracked config, but there are no grouping, aggregation, subplotting by hyparparams and other comparison features available.
UI Scalability
- Aim UI can handle several thousands of metrics at the same time smoothly with 1000s of steps. It may get shaky when you explore 1000s of metrics with 10000s of steps each. But we are constantly optimizing!
- MLflow UI becomes slow to use when there are a few hundreds of runs.
Weights and Biases vs Aim
Hosted vs self-hosted
- Weights and Biases is a hosted closed-source MLOps platform.
- Aim is self-hosted, free and open-source experiment tracking tool.
🛣️ Roadmap
Detailed milestones
The Aim product roadmap :sparkle:
- The
Backlog
contains the issues we are going to choose from and prioritize weekly - The issues are mainly prioritized by the highly-requested features
High-level roadmap
The high-level features we are going to work on the next few months:
In progress
- Aim SDK low-level interface
- Dashboards – customizable layouts with embedded explorers
- Ergonomic UI kit
- Text Explorer
Next-up
Aim UI
- Runs management
- Runs explorer – query and visualize runs data(images, audio, distributions, ...) in a central dashboard
- Explorers
- Distributions Explorer
SDK and Storage
- Scalability
- Smooth UI and SDK experience with over 10.000 runs
- Runs management
- CLI commands
- Reporting - runs summary and run details in a CLI compatible format
- Manipulations – copy, move, delete runs, params and sequences
- CLI commands
- Cloud storage support – store runs blob(e.g. images) data on the cloud
- Artifact storage – store files, model checkpoints, and beyond
Integrations
- ML Frameworks:
- Shortlist: scikit-learn
- Resource management tools
- Shortlist: Kubeflow, Slurm
- Workflow orchestration tools
Done
- Live updates (Shipped: Oct 18 2021)
- Images tracking and visualization (Start: Oct 18 2021, Shipped: Nov 19 2021)
- Distributions tracking and visualization (Start: Nov 10 2021, Shipped: Dec 3 2021)
- Jupyter integration (Start: Nov 18 2021, Shipped: Dec 3 2021)
- Audio tracking and visualization (Start: Dec 6 2021, Shipped: Dec 17 2021)
- Transcripts tracking and visualization (Start: Dec 6 2021, Shipped: Dec 17 2021)
- Plotly integration (Start: Dec 1 2021, Shipped: Dec 17 2021)
- Colab integration (Start: Nov 18 2021, Shipped: Dec 17 2021)
- Centralized tracking server (Start: Oct 18 2021, Shipped: Jan 22 2022)
- Tensorboard adaptor - visualize TensorBoard logs with Aim (Start: Dec 17 2021, Shipped: Feb 3 2022)
- Track git info, env vars, CLI arguments, dependencies (Start: Jan 17 2022, Shipped: Feb 3 2022)
- MLFlow adaptor (visualize MLflow logs with Aim) (Start: Feb 14 2022, Shipped: Feb 22 2022)
- Activeloop Hub integration (Start: Feb 14 2022, Shipped: Feb 22 2022)
- PyTorch-Ignite integration (Start: Feb 14 2022, Shipped: Feb 22 2022)
- Run summary and overview info(system params, CLI args, git info, ...) (Start: Feb 14 2022, Shipped: Mar 9 2022)
- Add DVC related metadata into aim run (Start: Mar 7 2022, Shipped: Mar 26 2022)
- Ability to attach notes to Run from UI (Start: Mar 7 2022, Shipped: Apr 29 2022)
- Fairseq integration (Start: Mar 27 2022, Shipped: Mar 29 2022)
- LightGBM integration (Start: Apr 14 2022, Shipped: May 17 2022)
- CatBoost integration (Start: Apr 20 2022, Shipped: May 17 2022)
- Run execution details(display stdout/stderr logs) (Start: Apr 25 2022, Shipped: May 17 2022)
- Long sequences(up to 5M of steps) support (Start: Apr 25 2022, Shipped: Jun 22 2022)
- Figures Explorer (Start: Mar 1 2022, Shipped: Aug 21 2022)
- Notify on stuck runs (Start: Jul 22 2022, Shipped: Aug 21 2022)
- Integration with KerasTuner (Start: Aug 10 2022, Shipped: Aug 21 2022)
- Integration with WandB (Start: Aug 15 2022, Shipped: Aug 21 2022)
- Stable remote tracking server (Start: Jun 15 2022, Shipped: Aug 21 2022)
- Integration with fast.ai (Start: Aug 22 2022, Shipped: Oct 6 2022)
- Integration with MXNet (Start: Sep 20 2022, Shipped: Oct 6 2022)
- Project overview page (Start: Sep 1 2022, Shipped: Oct 6 2022)
- Remote tracking server scaling (Start: Sep 11 2022, Shipped: Nov 26 2022)
- Integration with PaddlePaddle (Start: Oct 2 2022, Shipped: Nov 26 2022)
- Integration with Optuna (Start: Oct 2 2022, Shipped: Nov 26 2022)
- Audios Explorer (Start: Oct 30 2022, Shipped: Nov 26 2022)
- Experiment page (Start: Nov 9 2022, Shipped: Nov 26 2022)
- HuggingFace datasets (Start: Dec 29 2022, Feb 3 2023)
👥 Community
Aim README badge
Add Aim badge to your README, if you've enjoyed using Aim in your work:
[![Aim](https://img.shields.io/badge/powered%20by-Aim-%231473E6)](https://github.com/aimhubio/aim)
Cite Aim in your papers
In case you've found Aim helpful in your research journey, we'd be thrilled if you could acknowledge Aim's contribution:
@software{Arakelyan_Aim_2020,
author = {Arakelyan, Gor and Soghomonyan, Gevorg and {The Aim team}},
doi = {10.5281/zenodo.6536395},
license = {Apache-2.0},
month = {6},
title = {{Aim}},
url = {https://github.com/aimhubio/aim},
version = {3.9.3},
year = {2020}
}
Contributing to Aim
Considering contibuting to Aim? To get started, please take a moment to read the CONTRIBUTING.md guide.
Join Aim contributors by submitting your first pull request. Happy coding! 😊
Made with contrib.rocks.
More questions?
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for aim-3.25.0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40f92250c5db175ef997a8f8d2d60ab5eda138a77ba871248cc049b6fac02bb3 |
|
MD5 | 5d09f07d2af92c8b0b5bc0e283935960 |
|
BLAKE2b-256 | bc43c4718daebdd2ab41c2f31f41db4894265fe92b3a7e0e27f1b799b0fe77c3 |
Hashes for aim-3.25.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28f5efedc082dca4702558c0022f2577da3134a0dd1a52bd9720dabb2a6ca7e1 |
|
MD5 | 30a4927c49def10a9fd27c0e2895f033 |
|
BLAKE2b-256 | 20ba671b20c94dc1797d53093364169e09de784fd9091517d0dca8652468905e |
Hashes for aim-3.25.0-cp312-cp312-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a2ca2a25bd194c4041ea1615d1a33b7d28080279f7058a394968e9f085a4fd3 |
|
MD5 | af77a1d64ee6c5dcb3ddd1d16c8cee88 |
|
BLAKE2b-256 | 18582f0f61b9d885f67990770b1b3f8e755c9afb8474756525b7348cae26f23f |
Hashes for aim-3.25.0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8df3764c58d7cfc15e41f9050b2bf446e58f6b298d6c870ff1abadc2520af197 |
|
MD5 | f7c339805cc468a6cdd921ad2ea5d814 |
|
BLAKE2b-256 | a55a4ec9b90dfb06b5d4bf672543389e85685098cdf379f2ecc1aa3d8ded8e50 |
Hashes for aim-3.25.0-cp311-cp311-manylinux_2_24_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eeaee20f46055a756ba125a5a6d490f7109b7b230153708e2cdf42c9f033ccba |
|
MD5 | ba57b61622e231807f3ceeadc08b48dd |
|
BLAKE2b-256 | bc7056a9e5f90c826e5d315fb05d9344632552d910a576bfedf5a4bb78c8df24 |
Hashes for aim-3.25.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72d6043686f2cfc0e22bf13e88650a641b9f3f16c8c4d47cdb0464fd2516d0e7 |
|
MD5 | 868758001fdab739c8c539c00a72b384 |
|
BLAKE2b-256 | 7408888c525fb258afe97e99317cce28502e01c81e3e8888cdbdf3630386154d |
Hashes for aim-3.25.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11cb699b89cad25401ce351f9d5d6aaf6c85b79cf8f1b4cabd1fc7379661198c |
|
MD5 | 893ecac392a46cade8bd8a94fe42978b |
|
BLAKE2b-256 | 16742b8e630ff1fa9d2f3c0e04457b6bdd1d994bc5ca653fe270e1455b196d90 |
Hashes for aim-3.25.0-cp311-cp311-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6174073c178981694ce8011510636c9c8f361bddf6244fc73697f6d008ccf3ad |
|
MD5 | 8c41f3be58c605e02e07af9ac8e331b0 |
|
BLAKE2b-256 | 8f11255066832889c37669b544af730fd1c37233c5f9a74c2505654de9901cad |
Hashes for aim-3.25.0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37ec7ea628875b52b7b83d917416f39241c16ccee852cdd9f8f5caef81927a6c |
|
MD5 | fe5f7ac235d234cd51364d980fa2cb08 |
|
BLAKE2b-256 | e44deb5d6d8f9416a74467766c8fe1bf46304c4ef3d3ef83a098658344e27f5a |
Hashes for aim-3.25.0-cp310-cp310-manylinux_2_24_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b639dc2ab36b9cdc7fc5dea3a405b7a0a00a09a6700e490b1f77eed92aef8afe |
|
MD5 | c9615aa3895c3c1e500688dfe2b9b488 |
|
BLAKE2b-256 | a7cded6c6a5ee709c662d8ef2baeaf1b2acf34a5127d8a3ec2aedba1aa341bd7 |
Hashes for aim-3.25.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7e1d3fdf38ec6b2bea049b0bacd5a30e3605bb5562a81e630a7901dbcd0958d |
|
MD5 | 4bc852693ca98055a2330b3e0f0a07ac |
|
BLAKE2b-256 | 64914f2b1bb3ec29e250708d34bd85ab86cced7c7a6f6660e31f4d5fdd2424b8 |
Hashes for aim-3.25.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4137380fbea03ab6c1cb7bacb7e7689f07dc0efdbfcc81e7afd50b32caa9061 |
|
MD5 | 0b76ead9dbcda6efc8d8c028c5b34545 |
|
BLAKE2b-256 | 2f52cc1345f523956a465c2418d44711163b2244a0cecd9d7b8476fc1adb33f7 |
Hashes for aim-3.25.0-cp310-cp310-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 540dca08ab4e87c33be6457b9fc8436ac777a9bd9cc01997b89d3a60dc73d67b |
|
MD5 | f8e8eefb0ff8ad726ec1d4edae912910 |
|
BLAKE2b-256 | 44b1d7589721b81fa2c0184067badfbd578ae1e5dbe779fba34d82ba57daf4b2 |
Hashes for aim-3.25.0-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8912c8b78ba15a8e516fe2d0a9e91972cbd734108628b6ecdc61a31b633425a |
|
MD5 | 4f6eb9a27ccffae12f92a4a12210241d |
|
BLAKE2b-256 | ea8c7b7f47d6ccb1943d9e9dfb1cfa1042cb990f564b29fa320422022bcbdfab |
Hashes for aim-3.25.0-cp39-cp39-manylinux_2_24_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 916003cc22f29d6fffcd162358767197d959d2c0b2a68976974ae5eb514622e8 |
|
MD5 | e56a81be63de40ff1fa096c812a200df |
|
BLAKE2b-256 | 2fcdbf1407d1c952eb1388596c57722e0f921ffb5a24e7d94009a8f88ed6f043 |
Hashes for aim-3.25.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ae05e61c369b7f23e0a19305f78559dacfe160d0aa9122314224315b8216240 |
|
MD5 | d12f3470bac808868fabc175b69268cf |
|
BLAKE2b-256 | de699d1f7191b344f555eaca2df6bf0a32bb96a007defdf6eb92337e74550480 |
Hashes for aim-3.25.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a15c9b2f9ef9d150703633f62c0b5444931bdbbd8bf85b964563835fdab3e017 |
|
MD5 | 9cf4f5d8331e5410fd79dc81af4c7444 |
|
BLAKE2b-256 | cefdff551a896eb8bdbb1a21d4ee60c19ce21a2a189fbfed33daa818d17602af |
Hashes for aim-3.25.0-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed4510fd3026cf6e0aaa49cb56aacfcdc03a800e7a90d6a2832bae799f7b87b2 |
|
MD5 | f01e89caaa30ae165af8e43b847f181b |
|
BLAKE2b-256 | 61a4751ef6a90f89ff276a3725d76b9df4cdcf2ec55b912080326ad9277ad9b4 |
Hashes for aim-3.25.0-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87eec470050247ce1366f02ccf37c211a559d6e4760b432167776ac560fdb934 |
|
MD5 | 9f4d8dc15b62d34cc4a620fa99ec53e1 |
|
BLAKE2b-256 | d5782b7ef2692dee43ee92e583e8127e435a710a5e0d0029e8e4de1bc805a6bf |
Hashes for aim-3.25.0-cp38-cp38-manylinux_2_24_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1df03cf91142e202f4a2b528ef2f88947208ba62ad49627cfe162b1b44f36403 |
|
MD5 | 07156b3db394f8488e806209b931e408 |
|
BLAKE2b-256 | c6061f2185465cd5fdde7396ddde375f1f831da1c8bee7c20b312d910fa2c051 |
Hashes for aim-3.25.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 615f5106b9e896b462569d9a2ce3ba05ec02cbcddd0e1874e67c05592551776b |
|
MD5 | c530c1546b6f519997fff98497c7d158 |
|
BLAKE2b-256 | 97fc05e119e0cc5d2ac0acc4b0c0b0c6fae34e9511ec90f5c1970d6031e94cd0 |
Hashes for aim-3.25.0-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d29966822e39a12d67e419a827f87785ff20435d60f258321127a85b41acbdc7 |
|
MD5 | d8b86b9b7762e2a41c74689c8d62edff |
|
BLAKE2b-256 | b040236457127c547921a3bd20ded8572ed712c406c407a3e6c726cdcda3f9df |
Hashes for aim-3.25.0-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57d003083143682a298c0d39b259d53abee554406e02d66ac84c12daefb4f661 |
|
MD5 | 58c9bafc17fb438dd1bb9e7f4e5e7dfb |
|
BLAKE2b-256 | f91764e9dd2d09cef919db9a8e89f076775128a2a9bedec48fa3108b54225dbf |
Hashes for aim-3.25.0-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0bb65c532055023c8ccf5399062e6fdbb1ffaa6a150ae45988a0dca710140c8 |
|
MD5 | 5ecc367e25fb4d37a8cb987eb7c64337 |
|
BLAKE2b-256 | e65c93edc94bd937b8859830a166a1494ac92676d2926f73906274c8de32bc6b |
Hashes for aim-3.25.0-cp37-cp37m-manylinux_2_24_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5afc854029fe58e7313510d857cb70ec6d45d8541fedbe7e2a2e5f903b9ac7db |
|
MD5 | c49f2c75d871060e65758d0bb00ab2d4 |
|
BLAKE2b-256 | 20d154dd16e07a3339d07648be296206992be27b9048465aeca19a262287a72c |
Hashes for aim-3.25.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ecd74547efcaed4056b4e6c16a294a6a46fb5405288e6e2a1793761031094840 |
|
MD5 | 893e481459843f4b1c28d2a280f630f0 |
|
BLAKE2b-256 | 61f6a577350c0c855b9d4f49313da2822d48e6307b1ffa1d10f101ad261f0f58 |
Hashes for aim-3.25.0-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14fc9d0f6e529824a0a630785fd0d920072ec3be21162e4723c85fe89ae5072b |
|
MD5 | 873c8087a4ab2890b33510f6ae9805cd |
|
BLAKE2b-256 | 612354041ea127ecd25eded3227069beaae30a428681d8e4b2c5221618976c6a |