- Linux or macOS or Windows
- Python >= 3.8
- PyTorch >= 1.7.0
- torchvision that matches the PyTorch installation. You can install them together as explained at pytorch.org to make sure of this.
- gcc & g++ ≥ 9 for CUDA extensions
For developing on top of torch-firewood
or contributing, need to run the linter and tests.
# Tests/Linting
pip install -r requirements-dev.txt
git submodule -q update --init --recursive
pre-commit install
After installing the above dependencies, run one of the following commands:
pip install torch-firewood
git clone https://github.com/kynk94/torch-firewood.git
cd torch-firewood && python setup.py install
git clone https://github.com/kynk94/torch-firewood.git
cd torch-firewood
chmod +x ./install.sh && sh ./install.sh