Skip to content
zeroDtreePublic

About

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

mlkit

A Python machine learning toolkit. Requires Python ≥ 3.12.

Docs: pymlkit.zerodtree.com

Installation

uv (recommended)

uv add git+https://github.com/zeroDtree/my_pkg_py

With 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_py

pip:

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"

Examples

git clone https://github.com/zeroDtree/my_pkg_py.git
cd my_pkg_py

See 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  # sweep

Config defaults live in the config.yaml (or config_<variant>.yaml) next to each script.

Development

uv sync
# optional extras for CUDA tooling:
uv sync --extra hard
uv run nbstripout --install --attributes .gitattributes

uv 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.

Docs

uv run mkdocs serve
# or on a custom address:
uv run mkdocs serve --dev-addr 127.0.0.1:8080

About

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages