Practical overview
When it fits
Use it when an application already runs a supported generation framework and needs configurable controls over token selection during response generation.
Who it is for
- Developers building LLM applications with Transformers, vLLM or TensorRT-LLM.
- Teams that need generation-time controls such as required phrases, response-length tuning or multiple-choice output.
Documented uses
- Influence whether the model reuses tokens found in its prompt.
- Encourage shorter or longer responses by adjusting end-of-sequence likelihood.
- Require a phrase before a response is finalized.
- Constrain multiple-choice generation to listed choices.
- Trigger a phrase after a specified token sequence or apply a fallback below a confidence threshold.
Requirements & limits
The public repository identifies the project as open source under the Apache-2.0 license. The README documents installation with pip.
- Framework support is documented for Transformers, vLLM and TensorRT-LLM; TensorRT-LLM is listed as version 0.20.0 or later.
- The vLLM HTTP API path requires explicit allowlisting when a tokenizer is supplied as a string, and the tokenizer must be available as local files.
- Processors change token-generation behavior; they do not provide the underlying model.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Add logits processors to a vLLM generation call
Configure documented processors in a Python vLLM generation workflow.
Before you start
- Python and vLLM.
- A model name and its tokenizer, available through the vLLM setup.
Steps
Import vLLM and the desired processors from logits_processor_zoo.vllm.
Load the model and retrieve its tokenizer.
Instantiate processors with the tokenizer and any required settings.
Pass the processors in vLLM SamplingParams when calling model.generate.
Expected outcome
The generation call uses configured processors to influence token selection, such as prompt-token likelihood, response length or a required final phrase.
Guide limitations
- The example documents the integration pattern, not a guarantee of a particular output.
- Processor choices and settings depend on the generation task.
Configure processors for vLLM HTTP serving
Set up the documented vLLM server path for logits processors with string tokenizers.
Before you start
- vLLM serving environment.
- Tokenizer files available locally on the server.
- Any tokenizer name passed as a string must be included in the processor allowlist.
Steps
Set LOGITS_PROCESSOR_ZOO_VLLM_ALLOWED_TOKENIZERS to the trusted tokenizer name or names.
Start vLLM serve with the documented logits-processor-pattern configuration.
Configure processor kwargs in the HTTP request body.
Expected outcome
The vLLM HTTP serving workflow is configured to load the specified allowlisted local tokenizer for processor use.
Guide limitations
- String tokenizer names are loaded only when explicitly allowlisted.
- Tokenizer files must already exist in the server environment.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 16 November 2026
- Original website title
- NVIDIA/logits-processor-zoo · Official homepage title · retained in its source language

