package sax.server.lm

Mouse Melon logoGet desktop application:
View/edit binary Protocol Buffers messages

service LMService

lm.proto:138

message DecodedText

lm.proto:59

Used in: GenerateResponse

message GenerateRequest

lm.proto:52

Used as request type in: LMService.Generate, LMService.GenerateStream

message GenerateStreamItem

lm.proto:82

Usage example: results = [""] * num_of_samples scores = [0.0] * num_of_samples for response in range(get_streaming_responses()): for i, item in enumerate(response.items): results[i] = results[i][:item.prefix_len] + item.text scores[i] = item.score[0] results[i] and scores[i] will contain the fully decoded text and score for the ith item.

Used in: GenerateStreamResponse

message GenerateStreamResponse

lm.proto:103

Each response message represents one incremental decoding result in a streaming of results.

Used as response type in: LMService.GenerateStream, vertex.PredictionService.PredictStreamed

message GradientResponse.Gradient

lm.proto:130

Used in: GradientResponse