Skip to content

Install

ezexey edited this page Nov 19, 2026 · 1 revision

Install

phi-prune installs from the folder lbiza/ of ezexe/phi, which holds pyproject.toml and the packages phi_prune, phi_store, phi_rank and phi_model:

pip install "git+https://github.com/ezexe/phi#subdirectory=lbiza"

To work on the code, clone the repository and install lbiza/ in editable mode with the dev extra, then run the tests from that folder:

pip install -e ".[dev]"
python -m pytest

Contributing gives the whole setup, with torch's CPU wheels and the export extra.

Each release also pushes an image with the wheel installed on torch's CPU-only wheels, whose entry point is the phi-prune command:

docker run --rm ghcr.io/ezexe/phi --help

The quick start goes on from here: prune a model, check it and encode it.

Clone this wiki locally