Skip to content

XiaoConstantine/rbe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mini bpe in Rust

Rust

Port minbpe to rust as learning process

Benchmark

Build binary

cargo build --release

Run tokenizer

./target/release/rbpe --tokenizer {basic, regex}

Results

On my m1 book, I got:

Mode Time (rust) Time (python)
Basic 0.4s 5.65s
Regex 1.23s 9.01s

About

Simple rust port of bpe

Topics

Resources

Stars

Watchers

Forks

Languages