Metadata-Version: 2.1
Name: exex-ml
Version: 0.5.0
Summary: Explicit experiment execution on local machines and Slurm clusters
Keywords: machine-learning,hpc,packaging,singularity
Author-Email: Yicheng Luo <ethanluoyc@gmail.com>
License: MIT
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: Implementation :: CPython
Project-URL: homepage, https://github.com/youngsm/exex
Project-URL: documentation, https://github.com/youngsm/exex/tree/main/docs
Project-URL: repository, https://github.com/youngsm/exex
Requires-Python: !=3.11.0,!=3.11.1,!=3.11.2,!=3.11.3,<3.13,>=3.10.12
Requires-Dist: absl-py
Requires-Dist: attrs
Requires-Dist: ml_collections
Requires-Dist: tomlkit
Requires-Dist: paramiko
Requires-Dist: fabric
Requires-Dist: appdirs
Requires-Dist: fsspec
Requires-Dist: async_generator
Requires-Dist: immutabledict
Requires-Dist: rich
Requires-Dist: vcsinfo
Requires-Dist: docker
Requires-Dist: pip
Requires-Dist: shelved-cache>=0.3.1
Requires-Dist: cachetools>=5.3.2
Provides-Extra: wandb
Requires-Dist: wandb>=0.28.0; extra == "wandb"
Provides-Extra: shell
Requires-Dist: IPython; extra == "shell"
Provides-Extra: pex
Requires-Dist: pex>2.1.139; extra == "pex"
Description-Content-Type: text/markdown

# exex

Run experiments locally or on Slurm, using explicit execution targets and
reusable environments. Package the code you have—including uncommitted changes—
then inspect jobs, retain outputs, and pass checkpoints to subsequent jobs.

Exex launches processes. It does not depend on PyTorch, TensorFlow, JAX, or a
particular training loop, and it does not choose a cluster for you.

## Get started

Requires Python 3.10–3.12 on the authoring host. Install it from PyPI as
`exex-ml`; the package is imported as `exex`:

```bash
python -m pip install exex-ml
git clone https://github.com/youngsm/exex.git && cd exex  # for the examples
exex launch examples/quickstart/launch.py
exex experiments
```

The example runs a standard-library Python worker locally, retains its output,
and prints the experiment ID. Local execution needs no cluster configuration.
Use a prepared Python environment or a prebuilt container for your own workload;
packaging source does not install application dependencies on compute nodes.

For Slurm, configure a named site once, then use the same example:

```bash
exex launch examples/quickstart/launch.py -- \
  --cluster=mycluster --resource=account=my-account --walltime=300
```

See [getting started](docs/getting-started.md) for the complete Python example
and [cluster configuration](docs/configuration.md) for SSH and storage setup.

## Guides

- [Source and containers](docs/packaging.md): dirty checkouts, existing SIF and Shifter images.
- [Job inspection](docs/inspection.md): status, logs, cancellation, and reopening experiments.
- [Artifacts](docs/artifacts.md): retained outputs, input bindings, and cross-site transfer.
- [Continuation](docs/continuation.md): checkpoint-aware batch requeue and attached `salloc` chains.
- [Weights & Biases](docs/wandb.md): native runs, history policy, and task links.
- [API reference](docs/api.rst).

Local and Slurm are the maintained execution paths. Slurm uses your system
OpenSSH configuration; Singularity/Apptainer and Shifter use existing runtimes.
Cloud execution, automatic placement, and background recovery
services are not implemented. See each guide for its supported scope.

## Contributing

Read the [contributor guide](CONTRIBUTING.md) for tests and the source layout.
Exex is derived from [LXM3](https://github.com/ethanluoyc/lxm3) and includes
vendored XManager components; see [attribution](NOTICE.md).
