aimrun
A simple interface for integrating aim into MLOps frameworks.
Installation
pip install aimrun
Features
- Multiple runs. Simply initialize multiple aimruns using
aimrun.init(), and track to multiple repositories at once. - No need for a main-process wrapper. You do not need to make sure that only the main-process calls aimrun functions - we take care of that for you.
- Sync project-specific (local) repositories to larger (remote) repositories. See
python -m aimrun sync --helpfor guidance.
Usage (Recommended)
- Initialize one or more aimruns using
aimrun.init() - Use
aimrun.track()to track values. Parse a dictionary. - Use
aimrun.close()to finalize the experiments.
Example usage
import aimrun
# initalize
aimrun.init(repo='aim://172.3.66.145:53800', experiment='my_experiment', description='description of run', args={"arg": 1}) # args=vars(args) if you use argsparse
# track
aimrun.track({"value_0": A, "value_1": B})
# or
aimrun.track(A, name="value_0")
# close
aimrun.close()
Synchronizing on-going runs
aimrun.init(repo=".", sync_repo='aim://172.3.66.145:53800', sync_args={"repeat": 60}, experiment='my_experiment', description='description of run' args={"arg": 1})
This starts a thread that incrementally synchronizes the current on-going run to a remote repo while using the current directory as the local repository.
To profit from mass updates (faster synchronization), consider installing an improved aim version:
pip install git+https://github.com/schneiderkamplab/aim
Drop-in replacement Wandb (Experimental)
We experimentally offer aimrun as a drop-in replacement for wandb, making a seamless integration in your framework even easier.
- Replace
import wandbwithfrom aimrun import wandb - Set default repository before init (e.g. right after import)
wandb.set_default_repo('aim://172.3.66.145:53800') - Supported functions
.init(), .log(), .finish()
Metadata
Release files for aimrun 0.9.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aimrun-0.9.8.tar.gz | 10.2 kB | Without provenance | Details for aimrun-0.9.8.tar.gz |
Release files / aimrun-0.9.8.tar.gz
| Download URL | aimrun-0.9.8.tar.gz |
|---|---|
| Size | 10.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7dfdc873e9dec87edd8921f6418bbaaa5d243c6d0792222ecdc7368e054cfe2c
|
|
BLAKE2b-256 checksum How to use checksums |
f4c3d75e3e2e94009aab94a325e09663dbb688fe8aeb3498e9b95fb93d63cdf1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.11
|
Security for aimrun 0.9.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.