mirror of
https://github.com/rasbt/LLMs-from-scratch.git
synced 2026-04-10 12:33:42 +00:00
Add bonus dependencies to pyproject (#897)
* Add bonus dependencies to pyproject * update
This commit is contained in:
committed by
GitHub
parent
0adb5b8c65
commit
760f4c9ecc
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
<br>
|
||||
|
||||
**Finalizing the setup**
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user