Documentation ¶
Index ¶
Constants ¶
View Source
const StopToken = "<|im_end|>"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BestOfSequence ¶
type GenerateParameters ¶
type GenerateParameters struct { BestOf *int `json:"best_of,omitempty"` DecoderInputDetails bool `json:"decoder_input_details,omitempty"` Details bool `json:"details,omitempty"` DoSample bool `json:"do_sample,omitempty"` MaxNewTokens int `json:"max_new_tokens,omitempty"` RepetitionPenalty *float32 `json:"repetition_penalty,omitempty"` ReturnFullText *bool `json:"return_full_text,omitempty"` Seed *int64 `json:"seed,omitempty"` Stop []string `json:"stop,omitempty"` Temperature *float32 `json:"temperature,omitempty"` TopK *int `json:"top_k,omitempty"` TopP *float32 `json:"top_p,omitempty"` Truncate *int `json:"truncate,omitempty"` TypicalP *float32 `json:"typical_p,omitempty"` Watermark bool `json:"watermark,omitempty"` }
type GenerateRequest ¶
type GenerateRequest struct { Inputs string `json:"inputs"` Parameters GenerateParameters `json:"parameters"` Stream bool `json:"stream"` }
type GenerateResponse ¶
type GenerateStreamResponse ¶
Click to show internal directories.
Click to hide internal directories.