-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
45 lines (38 loc) · 938 Bytes
/
Copy pathCargo.toml
File metadata and controls
45 lines (38 loc) · 938 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
[package]
name = "runtoken"
version = "0.1.2"
edition = "2021"
description = "A blazing-fast BPE tokenizer for LLMs. Drop-in tiktoken replacement, 20-80x faster."
license = "MIT"
readme = "README.md"
repository = "https://github.com/Thibault00/runtoken"
keywords = ["tokenizer", "bpe", "llm", "gpt", "tiktoken"]
categories = ["text-processing", "algorithms"]
authors = ["Thibault Jaigu"]
[lib]
name = "runtoken"
crate-type = ["cdylib", "rlib"]
[[bin]]
name = "runtoken-cli"
path = "src/main.rs"
[dependencies]
base64 = "0.22"
fancy-regex = "0.14"
rustc-hash = "2"
lru = "0.12"
rayon = "1.10"
regex = "1.12"
smallvec = "1.15"
pyo3 = { version = "0.23", features = ["extension-module"], optional = true }
[features]
default = []
python = ["pyo3"]
[dev-dependencies]
criterion = { version = "0.5", features = ["html_reports"] }
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
[[bench]]
name = "benchmark"
harness = false