Skip to content

alessandroseni/picoBPE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

picoBPE

A minimalistic Byte Pair Encoding (BPE) tokenizer for simple text processing.

Overview

picoBPE is inspired by the simplicity of minBPE and picoGPT - aiming to provide a straightforward implementation of the BPE algorithm, focusing solely on text tokenization. This project is for educational purposes.

Features

  • Simple BPE text tokenization
  • Trainable on any text corpus
  • Encode and decode functionalities

Usage

The algorithm is implemented in picoBPE.py. You can run test.py to see an example of how picoBPE works. It is trained on a Dune excerpt stored in dune.txt.

python test.py

About

A minimalistic BPE tokenizer.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages