token-sampling 0.1.0

Composable token sampling over f32 logits with caller-supplied randomness
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[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"