Skip to content

Commit 760f4c9

Browse files
authored
Add bonus dependencies to pyproject (#897)
* Add bonus dependencies to pyproject * update
1 parent 0adb5b8 commit 760f4c9

File tree

3 files changed

+25
-1
lines changed

3 files changed

+25
-1
lines changed

pyproject.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,21 @@ dev = [
4040
"tokenizers>=0.22.0",
4141
"safetensors>=0.6.2",
4242
]
43+
bonus = [
44+
"blobfile>=3.0.0",
45+
"chainlit>=1.2.0",
46+
"huggingface_hub>=0.34.4",
47+
"ipywidgets>=8.1.2",
48+
"llms_from_scratch>=1.0.18",
49+
"openai>=1.30.3",
50+
"requests",
51+
"safetensors>=0.6.2",
52+
"scikit-learn>=1.3.1",
53+
"sentencepiece>=0.1.99",
54+
"tokenizers>=0.21.1",
55+
"transformers>=4.33.2",
56+
"tqdm>=4.65.0",
57+
]
4358

4459
[tool.ruff]
4560
line-length = 140

setup/01_optional-python-setup-preferences/README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ There are several ways to install Python and set up your computing environment.
66

77
<br>
88

9-
> **Note:**
9+
> **Note:**
1010
> 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:
1111
> `pip install uv && uv pip install --system -r https://raw.githubusercontent.com/rasbt/LLMs-from-scratch/refs/heads/main/requirements.txt`
1212
@@ -151,6 +151,7 @@ To install all required packages from a `requirements.txt` file (such as the one
151151
uv pip install -r requirements.txt
152152
```
153153

154+
154155
Alternatively, install the latest dependencies directly from the repository:
155156

156157
```bash
@@ -168,6 +169,13 @@ uv pip install -r https://raw.githubusercontent.com/rasbt/LLMs-from-scratch/refs
168169
> or
169170
> `pip install -U -r https://raw.githubusercontent.com/rasbt/LLMs-from-scratch/refs/heads/main/requirements.txt`
170171
172+
&nbsp;
173+
174+
> **Optional dependencies for bonus materials:**
175+
> To include the optional dependencies used throughout the bonus materials, install the `bonus` dependency group from the project root:
176+
> `uv pip install --group bonus --editable .`
177+
> This is useful if you don't want to install them separately as you check out the optional bonus materials later on.
178+
171179
<br>
172180

173181
**Finalizing the setup**

setup/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ pip install -r requirements.txt
1717

1818
> **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:
1919
> `pip install uv && uv pip install --system -r https://raw.githubusercontent.com/rasbt/LLMs-from-scratch/refs/heads/main/requirements.txt`
20+
> 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.
2021
2122

2223

0 commit comments

Comments
 (0)