Registry / utility / llm-samplers

llm-samplers

JSON →
library0.0.7rscratesunverified

Token samplers for large language models, providing strategies like top-k, top-p, and temperature sampling.

# Cargo.toml [dependencies] llm-samplers = "0.0.7"
INSTALL
IMPORT
SIG · LLM-SAMPLERS
L
llm-samplers
utilityrustv0.0.7
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Sample
use llm_samplers::Sample;

Creates a top-k token sampler with k=40.

use llm_samplers::Sample; fn main() { let sampler = llm_samplers::TopK::new(40); println!("Sampler created: {:?}", sampler); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.7latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
llm-samplers — cargo add llm-samplers · libregistry