- Launch a terminal in the Jupyter Lab
- Install poetry by
curl -sSL https://install.python-poetry.org | python3 - - Set PATH by
echo "export PATH=$HOME/.local/bin:$PATH" >> ~/.bash_profile - Verify installation by
poetry --version - Clone the repository
- Navigate the terminal to the repository root (e.g.
cd LoraImpl) - Install the dependencies by
poetry install - Log into Weights&Biases by
poetry run wandb login(Paste W&B API key - use Ctrl+Shift+V - might not be visible in prompt) - Run any python script in the environment by
poetry run python <script.py>
https://towardsdatascience.com/implementing-lora-from-scratch-20f838b046f1