Skip to content

Commit 1d9142e

Browse files
committed
WIP: working on byte-pair tokenizer;
basic overview done, decoding/encoding in progress; 44:00 @ yt video
1 parent bd30c96 commit 1d9142e

5 files changed

Lines changed: 634 additions & 1 deletion

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,5 @@ Repo for learning tools and ideas of ML/AI
4646
* [pytorch profiler](./tools/pytorch_profiler/)
4747
* [kernels](./theory/kernels/)
4848
* [model context protocol](./tools/model_context_protocol/)
49-
* [grammar constrained decoding](./ideas/grammar_constrained_decoding/)
49+
* [grammar constrained decoding](./ideas/grammar_constrained_decoding/)
50+
* [byte-pair endcoding tokenier](./theory/bpe_tokenizer/)

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ dependencies = [
88
"guidance>=0.2.3",
99
"ipykernel>=6.29.5",
1010
"llama-cpp-python>=0.3.9",
11+
"sentencepiece>=0.2.1",
12+
"tiktoken>=0.12.0",
1113
"torch>=2.7.1",
1214
]
1315

0 commit comments

Comments
 (0)