-
Go to location using
cmdorterminalpython -m venv myvenv
# On Windows .\myvenv\Scripts\activate --OR-- source myvenv/bin/activate # On Linux or Mac
pip install -r requirements.txt
-
Go to location using
cmdorterminalcd env_dockerdocker compose -f docker-compose.yml up
- Press
Ctrl+Cto stop and then run the following
docker-compose -f docker-compose.yml down --volumes --rmi all
- Press
-
Put the desired notebook in the
notebookdirectory along with the data in thedatafolder.
-
Open your favourite
terminalorcmdto download the dependencies listed inenvALL.ymlconda env create -f envALL.yml
-
For Linux and macOS
curl -LsSf <https://astral.sh/uv/install.sh> | sh
-
For Windows, use PowerShell:
powershell -ExecutionPolicy ByPass -c "irm <https://astral.sh/uv/install.ps1> | iex" -
If
curlis not installed, usewgetinstead:wget -qO- <https://astral.sh/uv/install.sh> | sh
-
install it globally using
pip install uv
-
Initialize a new Python project by running:
uv init llms
-
To add a new package to
pyproject.tomluv add numpy
-
To remove a new package
uv remove numpy
-
Add all dependencies from
requirements.txtuv add -r requirements.txt
-
Sync Dependencies
uv pip compile .pyproject.toml -o requirements.in
-
Run main.py
uv run main.py