A sequence for beam search.
It keeps track of the tokens and the log probability of the sequence. The text field is optional and will only be filled when the sequence is about to be returned to the user.
Summary
Functions
Initialize self. See help(type(self)) for accurate signature.
Types
Functions
@spec cum_logprob(SnakeBridge.Ref.t()) :: {:ok, term()} | {:error, Snakepit.Error.t()}
@spec finish_reason(SnakeBridge.Ref.t()) :: {:ok, term()} | {:error, Snakepit.Error.t()}
@spec lora_request(SnakeBridge.Ref.t()) :: {:ok, term()} | {:error, Snakepit.Error.t()}
@spec mm_processor_kwargs(SnakeBridge.Ref.t()) :: {:ok, term()} | {:error, Snakepit.Error.t()}
@spec multi_modal_data(SnakeBridge.Ref.t()) :: {:ok, term()} | {:error, Snakepit.Error.t()}
@spec new( [integer()], [%{optional(integer()) => Vllm.Logprobs.Logprob.t()}], [term()], keyword() ) :: {:ok, SnakeBridge.Ref.t()} | {:error, Snakepit.Error.t()}
Initialize self. See help(type(self)) for accurate signature.
Parameters
tokens(list(integer()))logprobs(list(%{optional(integer()) => Vllm.Logprobs.Logprob.t()}))lora_request(term() default: None)cum_logprob(float() default: 0.0)text(term() default: None)finish_reason(term() default: None)stop_reason(term() default: None)multi_modal_data(term() | nil default: None)mm_processor_kwargs(term() default: None)
@spec stop_reason(SnakeBridge.Ref.t()) :: {:ok, term()} | {:error, Snakepit.Error.t()}
@spec text(SnakeBridge.Ref.t()) :: {:ok, term()} | {:error, Snakepit.Error.t()}