A Python machine learning toolkit. Requires Python ≥ 3.12.
Docs: pymlkit.zerodtree.com
uv add git+https://github.com/zeroDtree/my_pkg_pyWith optional dependencies:
uv add "git+https://github.com/zeroDtree/my_pkg_py[hard]"hard: deepspeed, flash-attn, bitsandbytes (CUDA / quantization)
Other install options
Editable (local clone):
git clone git@github.com:zeroDtree/my_pkg_py.git
uv add --editable my_pkg_pypip:
pip install "mlkit @ git+https://github.com/zeroDtree/my_pkg_py.git"
# with optional deps:
pip install "mlkit[hard] @ git+https://github.com/zeroDtree/my_pkg_py.git"git clone https://github.com/zeroDtree/my_pkg_py.git
cd my_pkg_pySee the example/ directory for usage by task.
Each example is driven by Hydra. Run from within the example directory:
cd example/butterfly_edm
uv run python main.py # default config
uv run python main.py train.lr=1e-3 # override a single value
uv run python main.py --multirun gm.n_discretization_steps=100,200 # sweepConfig defaults live in the config.yaml (or config_<variant>.yaml) next to each script.
uv sync
# optional extras for CUDA tooling:
uv sync --extra hard
uv run nbstripout --install --attributes .gitattributesuv sync installs package dependencies plus the dev group (lint, docs, notebooks).
nbstripout strips notebook cell outputs on commit. Run --install once per clone.
Verify with uv run nbstripout --status.
uv run mkdocs serve
# or on a custom address:
uv run mkdocs serve --dev-addr 127.0.0.1:8080