Skip to main content

Module vllm

Module vllm 

Source
Expand description

vLLM contract: OpenAI reuse, shared engine operations, and vLLM overrides.

Source: vLLM v0.28.0 sampling checks and model limits. This pin does not establish later revisions or HTTP conformance. Tiny-temperature flooring and greedy rewrites are not implemented.

Re-exports§

pub use super::openai::MAX_FREQUENCY_PENALTY;
pub use super::openai::MAX_PRESENCE_PENALTY;
pub use super::openai::MAX_TEMPERATURE;
pub use super::openai::MAX_TOP_P;
pub use super::openai::MIN_FREQUENCY_PENALTY;
pub use super::openai::MIN_LOGPROBS;
pub use super::openai::MIN_PRESENCE_PENALTY;
pub use super::openai::MIN_TEMPERATURE;
pub use super::openai::validate_frequency_penalty;
pub use super::openai::validate_presence_penalty;
pub use super::openai::validate_temperature;

Constants§

MAX_LOGPROBS
Fixed library upper bound for completion logprobs.
MAX_MIN_P
Inclusive upper bound for min_p.
MIN_MIN_P
Inclusive lower bound for min_p.
MIN_TOP_P_EXCLUSIVE
Exclusive lower bound for top_p; 0 itself is rejected. OpenAI’s baseline super::openai::MIN_TOP_P is inclusive instead.

Traits§

VllmValidation
Covered vLLM request checks.

Functions§

validate_completion_logprobs
Accepts None or the integer /v1/completions logprobs in 0..=20.
validate_min_p
Accepts None or min_p in [0, 1].
validate_top_p
Accepts None or top_p in (0, 1].