Fix BPE bonus materials (#561)

* Fix BPE bonus materials

* fix bpe implementation

* update

* Add 'Hello, world. Is this-- a test?' test case

* update link to test file

* update path handling

* update path handling

* fix pytest paths
This commit is contained in:
Sebastian Raschka
2025-03-08 17:21:30 -06:00
committed by GitHub
parent 96ca2fcb2f
commit f63f04d8d5
5 changed files with 307 additions and 87 deletions

View File

@@ -60,3 +60,9 @@ jobs:
pytest --ruff --nbval ch02/01_main-chapter-code/dataloader.ipynb
pytest --ruff --nbval ch03/01_main-chapter-code/multihead-attention.ipynb
pytest --ruff --nbval ch02/04_bonus_dataloader-intuition/dataloader-intuition.ipynb
- name: Test Selected Bonus Materials
shell: bash
run: |
source .venv/bin/activate
pytest ch02/05_bpe-from-scratch/tests/tests.py