Skip to content

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

chore: reduce model depth

Tianyi (Alex) Qiu55949c9238e6
diff --git a/config/config.py b/config/config.py
index bbc1e46..035396e 100644
--- a/config/config.py
+++ b/config/config.py
@@ -1,11 +1,11 @@
# --- Configuration ---
-# Define vocabulary size and transformer configuration (3 Billion)
+# Define vocabulary size and transformer configuration (0.8 Billion)
VOCAB_SIZE = 50304 # Number of unique tokens in the vocabulary
CONTEXT_LENGTH = 512 # Maximum sequence length for the model
N_EMBED = 2048 # Dimension of the embedding space
N_HEAD = 16 # Number of attention heads in each transformer block
-N_BLOCKS = 64 # Number of transformer blocks in the model
+N_BLOCKS = 16 # Number of transformer blocks in the model
# CONTEXT_LENGTH = 16 # Maximum sequence length for the model
# N_EMBED = 32 # Dimension of the embedding space
# N_HEAD = 8 # Number of attention heads in each transformer block