Skip to main content

ml

A collection of machine learning utilities.

Installation

pip install ml

A collection of utilities for ML/NLP research.

Utilities

ml.snapshot

Isolate experiment code on shared / networked filesystems (e.g. Slurm) by copying the current directory into a per-experiment snapshot and running a command inside the copy. Editing your source afterwards won't affect queued or in-flight jobs.

As a library (standard library only):

from ml.snapshot import snapshot

snapshot_dir = snapshot(
    "python train.py",
    exclude=["*.log", "wandb"],
    experiment_id="42",
)

As a CLI (requires the cli extra: pip install 'ml[cli]'):

ml-snapshot --experiment-id 42 --exclude '*.log' 'python train.py'

The base directory defaults to $SNAPSHOT_DIR (or snapshotted_experiments), and exclude patterns fall back to the comma-separated $SNAPSHOT_EXCLUDE.

Development

This project uses uv for dependency management.

# Install dependencies (including dev tools)
uv sync

# Run the test suite
uv run pytest

# Lint and format
uv run ruff check .
uv run ruff format .

License

Apache License 2.0

Metadata

Release files for ml 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ml 0.1.0
File Size Uploaded Provenance Actions
ml-0.1.0.tar.gz 9.3 kB Without provenance Details for ml-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ml 0.1.0
File Interpreter ABI Platform Actions
ml-0.1.0-py3-none-any.whl Python 3 none any Details for ml-0.1.0-py3-none-any.whl

Total release size: 18.1 kB

Release files / ml-0.1.0.tar.gz

Download URL ml-0.1.0.tar.gz
Size 9.3 kB
Tags Source
SHA-256 checksum
How to use checksums
4a8303c8f270490dd11b00599eb6e6bc1ef35f73bcea347672c2223a0276c6d8
BLAKE2b-256 checksum
How to use checksums
2da4b2f10f1fc6daef1a98fef8283c6654964048ec5d0dc96a0dd31003893292
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.15

Release files / ml-0.1.0-py3-none-any.whl

Download URL ml-0.1.0-py3-none-any.whl
Size 8.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
72308a272f0679f1b289edb3746692dbaabfd16b76873ceddb8761f91418fa49
BLAKE2b-256 checksum
How to use checksums
5a09eb5a4e3e6ffa652159574a3258eff33ee4a655712d1aabec586903137ed0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.15

Security for ml 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

0.0.0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page