Skip to content

A straightforward method for training your LLM, from downloading data to generating text.

fix(deps): add jaxtyping and regex to the requirements files

FareedKhan-dev260584649366
diff --git a/requirements-post.txt b/requirements-post.txt
index b149d7d..fff140b 100644
--- a/requirements-post.txt
+++ b/requirements-post.txt
@@ -2,7 +2,7 @@
# Targets H100 + CUDA 12.x (the base requirements.txt pins cu118 for the original
# pretraining path; this file does NOT overwrite it). Install into a fresh venv:
#
-# python3 -m venv /ephemeral/venv && source /ephemeral/venv/bin/activate
+# python3 -m venv .venv && source .venv/bin/activate
# pip install -r requirements-post.txt
#
# torchrun (multi-GPU) ships with torch.
@@ -15,5 +15,7 @@ h5py
tqdm
tiktoken
zstandard
+jaxtyping # tensor shape annotations
+regex # the BPE tokenizer's split pattern
datasets # HuggingFace dataset downloads (Alpaca, HH-RLHF, GSM8K, ...)
wandb # optional experiment logging (every script also writes JSONL)
diff --git a/requirements.txt b/requirements.txt
index 2e54bbe..51b9614 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,3 +1,5 @@
+# `pip install -e .` (pyproject.toml) is the recommended install; this file is kept for
+# `pip install -r requirements.txt`. The extra index serves CUDA 11.8 builds of torch.
--extra-index-url https://download.pytorch.org/whl/cu118
torch
torchvision
@@ -7,4 +9,6 @@ h5py
requests
tqdm
zstandard
-tiktoken
\ No newline at end of file
+tiktoken
+jaxtyping
+regex