diff --git a/pyproject.toml b/pyproject.toml index 19e593d..8ce8cc8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,6 +40,21 @@ dev = [ "tokenizers>=0.22.0", "safetensors>=0.6.2", ] +bonus = [ + "blobfile>=3.0.0", + "chainlit>=1.2.0", + "huggingface_hub>=0.34.4", + "ipywidgets>=8.1.2", + "llms_from_scratch>=1.0.18", + "openai>=1.30.3", + "requests", + "safetensors>=0.6.2", + "scikit-learn>=1.3.1", + "sentencepiece>=0.1.99", + "tokenizers>=0.21.1", + "transformers>=4.33.2", + "tqdm>=4.65.0", +] [tool.ruff] line-length = 140 diff --git a/setup/01_optional-python-setup-preferences/README.md b/setup/01_optional-python-setup-preferences/README.md index 705da40..b71937c 100644 --- a/setup/01_optional-python-setup-preferences/README.md +++ b/setup/01_optional-python-setup-preferences/README.md @@ -6,7 +6,7 @@ There are several ways to install Python and set up your computing environment.
-> **Note:** +> **Note:** > If you are running any of the notebooks on Google Colab and want to install the dependencies, simply run the following code in a new cell at the top of the notebook and skip the rest of this tutorial: > `pip install uv && uv pip install --system -r https://raw.githubusercontent.com/rasbt/LLMs-from-scratch/refs/heads/main/requirements.txt` @@ -151,6 +151,7 @@ To install all required packages from a `requirements.txt` file (such as the one uv pip install -r requirements.txt ``` + Alternatively, install the latest dependencies directly from the repository: ```bash @@ -168,6 +169,13 @@ uv pip install -r https://raw.githubusercontent.com/rasbt/LLMs-from-scratch/refs > or > `pip install -U -r https://raw.githubusercontent.com/rasbt/LLMs-from-scratch/refs/heads/main/requirements.txt` +  + +> **Optional dependencies for bonus materials:** +> To include the optional dependencies used throughout the bonus materials, install the `bonus` dependency group from the project root: +> `uv pip install --group bonus --editable .` +> This is useful if you don't want to install them separately as you check out the optional bonus materials later on. +
**Finalizing the setup** diff --git a/setup/README.md b/setup/README.md index 78b9940..20d6303 100644 --- a/setup/README.md +++ b/setup/README.md @@ -17,6 +17,7 @@ pip install -r requirements.txt > **Note:** If you are running any of the notebooks on Google Colab and want to install the dependencies, simply run the following code in a new cell at the top of the notebook: > `pip install uv && uv pip install --system -r https://raw.githubusercontent.com/rasbt/LLMs-from-scratch/refs/heads/main/requirements.txt` +> Optionally, after cloning the repository, you install the dependencies for all bonus materials with `uv pip install --group bonus --editable .` from the project root. This is useful if you don't want to install them separately as you check out the optional bonus materials later on.