mirror of
https://github.com/rasbt/LLMs-from-scratch.git
synced 2024-11-25 16:22:50 +08:00
1f61aeb7c4
Some checks are pending
Code tests (Linux) / test (push) Waiting to run
Code tests (macOS) / test (push) Waiting to run
Test PyTorch 2.0 and 2.4 / test (2.0.1) (push) Waiting to run
Test PyTorch 2.0 and 2.4 / test (2.4.0) (push) Waiting to run
Code tests (Windows) / test (push) Waiting to run
Check hyperlinks / test (push) Waiting to run
Spell Check / spellcheck (push) Waiting to run
PEP8 Style checks / flake8 (push) Waiting to run
|
||
---|---|---|
.. | ||
01_main-chapter-code | ||
02_bonus_bytepair-encoder | ||
03_bonus_embedding-vs-matmul | ||
04_bonus_dataloader-intuition | ||
README.md |
Chapter 2: Working with Text Data
Main Chapter Code
- 01_main-chapter-code contains the main chapter code and exercise solutions
Bonus Materials
-
02_bonus_bytepair-encoder contains optional code to benchmark different byte pair encoder implementations
-
03_bonus_embedding-vs-matmul contains optional (bonus) code to explain that embedding layers and fully connected layers applied to one-hot encoded vectors are equivalent.
-
04_bonus_dataloader-intuition contains optional (bonus) code to explain the data loader more intuitively with simple numbers rather than text.