-
Notifications
You must be signed in to change notification settings - Fork 5
/
Cargo.toml
44 lines (37 loc) · 912 Bytes
/
Cargo.toml
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
[package]
name = "minbpe"
version = "0.1.0"
description = "Port of Andrej Karpathy's minbpe to Rust"
authors = ["Gregor Purdy <gregor@abcelo.com>"]
license = "MIT OR Apache-2.0"
edition = "2021"
keywords = ["language-model", "codec", "gpt", "ai"]
readme = "README.md"
repository = "https://github.com/gnp/minbpe-rs.git"
include = ["assets/**/*", "examples/**/*", "src/**/*", "tests/**/*"]
[features]
default = ["basic", "regex"]
basic = []
regex = []
gpt4 = ["regex"]
tiktoken_tests = ["gpt4", "tiktoken-rs"]
[lib]
path = "src/lib.rs"
[dependencies]
regex = "1.10"
fancy-regex = "0.13"
indexmap = "2.2"
lazy_static = "1.4.0"
base64 = "0.21.5"
tiktoken-rs = { version = "0.5.8", optional = true }
[dev-dependencies]
tempfile = "3.10"
proptest = "1.4.0"
[profile.release]
debug = true
[[example]]
name = "gpt4_encode"
required-features = ["gpt4"]
[[example]]
name = "test_gpt4"
required-features = ["gpt4"]