Files
OpenLLM/openllm-python/src/openllm/_generation.pyi
2023-11-21 04:39:48 -05:00

9 lines
349 B
Python

from transformers import LogitsProcessorList, PretrainedConfig
from openllm_core import LLMConfig
def prepare_logits_processor(config: LLMConfig) -> LogitsProcessorList: ...
def get_context_length(config: PretrainedConfig) -> int: ...
def is_sentence_complete(output: str) -> bool: ...
def is_partial_stop(output: str, stop_str: str) -> bool: ...