After installing pytorch, please run the command:

pip install swyft


If you want the lastest version, it is also possible to install swyft from github. To do so, run the command:

pip install git+


If you’re interested in contributing to swyft there is another procedure. First clone the github repo, navigate to the repo in your terminal, from within that directory run the command:

pip install -e .[dev]

The -e flag will install swyft in development mode such that your version of the code is used when swyft is imported. The [dev] flag installs the extra tools necessary to format and test your contribution.


Compiling the docs requires an additional flag. Then the docs may be compiled by navigating to the docs folder.

pip install -e .[docs]
cd docs
make html