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:
lbiza/
pyproject.toml
phi_prune
phi_store
phi_rank
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:
dev
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:
phi-prune
docker run --rm ghcr.io/ezexe/phi --help
The quick start goes on from here: prune a model, check it and encode it.
There was an error while loading. Please reload this page.