[package]
edition = "2021"
rust-version = "1.63"
name = "token-sampling"
version = "0.1.0"
authors = ["Justin Jones <hey.jones@icloud.com>"]
build = false
include = [
"src/**",
"tests/**",
"Cargo.toml",
"Cargo.lock",
"README.md",
"CHANGELOG.md",
"LICENSE",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Composable token sampling over f32 logits with caller-supplied randomness"
documentation = "https://docs.rs/token-sampling"
readme = "README.md"
keywords = [
"sampling",
"logits",
"decoding",
"probability",
"language-model",
]
categories = [
"algorithms",
"science",
]
license = "MIT"
repository = "https://github.com/hey-jj/token-sampling"
[features]
default = []
rand_core = ["dep:rand_core"]
[lib]
name = "token_sampling"
path = "src/lib.rs"
[[test]]
name = "adversarial"
path = "tests/adversarial.rs"
[[test]]
name = "allocation"
path = "tests/allocation.rs"
[[test]]
name = "defect_regressions"
path = "tests/defect_regressions.rs"
[[test]]
name = "performance"
path = "tests/performance.rs"
[dependencies.rand_core]
version = "0.6.4"
optional = true
[dev-dependencies.serde_json]
version = "1.0.151"
[dev-dependencies.stats_alloc]
version = "0.1.10"