Release v0.5.0 - Batch decoding and benchmarks#5
Merged
Conversation
Add batch decoding methods (decode_batch and decode_batch_lossy) to both Rust core tokenizer and Python bindings for parallel processing of multiple token lists.
Add benchmark suites for cl100k_base, Llama 3, and o200k_base tokenizers. Each script compares splintr performance against reference implementations (tiktoken, HuggingFace) across single/batch encoding and decoding operations. - benchmark_cl100k.py: GPT-4/GPT-3.5-turbo tokenizer benchmarks - benchmark_llama3.py: Llama 3 family tokenizer benchmarks - benchmark_o200k.py: GPT-4o tokenizer benchmarks Benchmarks measure throughput (MB/s, tokens/s) and latency across various text types (short, medium, long, code, multilingual) with visualization support via matplotlib charts.
Add benchmark suites for cl100k_base, Llama 3, and o200k_base tokenizers. Each script compares splintr performance against reference implementations (tiktoken, HuggingFace) across single/batch encoding and decoding operations. - benchmark_cl100k.py: GPT-4/GPT-3.5-turbo tokenizer benchmarks - benchmark_llama3.py: Llama 3 family tokenizer benchmarks - benchmark_o200k.py: GPT-4o tokenizer benchmarks Benchmarks measure throughput (MB/s, tokens/s) and latency across various text types (short, medium, long, code, multilingual) with visualization support via matplotlib charts.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
decode_batch()anddecode_batch_lossy()methods for parallel decoding using RayonChanges
New Features
Fixes
.versionfile not being updated in previous release__version__in Python package