To install the T2L environment, ensure you have uv installed. The installation process involves cloning the repository, setting up a Python 3.10 virtual environment, syncing dependencies, and installing specific wheels for flash-attention and the fishfarm package.
Note: You may need to modify the flash-attention wheel URL to match your specific hardware/CUDA configuration.
git clone https://github.com/SakanaAI/text-to-lora.git
cd text-to-lora
# make sure you have `uv` installed
# (see https://docs.astral.sh/uv/getting-started/installation/)
uv self update
uv venv --python 3.10 --seed
uv sync
# we use the following wheel for installation
# you might have to change the wheel to be compatible with your hardware
uv pip install https://github.com/Dao-AILab/flash-attention/releases/download/v2.6.3/flash_attn-2.6.3+cu123torch2.3cxx11abiFALSE-cp310-cp310-linux_x86_64.whl
uv pip install src/fishfarm