and as such may be created with one of:
TextModelBuilder
LoraModelBuilder
XLoraModelBuilder
GgufModelBuilder
GgufLoraModelBuilder
GgufXLoraModelBuilder
VisionModelBuilder
AnyMoeModelBuilder
Generate with the model.
Generate with the model.
Generate with the model, returning raw logits of the first token generated.
Returns the chunks of the logits (1 or more, determined by prompt batchsize) and the tokens.
Activate certain adapters on the model, they will be used for requests which do not specify unique adapters.
Reapply ISQ to the model. This will be done on whatever device the model is already on.
Tokenize some text or messages.
tools
is only used if messages are provided.Detokenize some tokens.
Retrieve some information about this model.
Any
.Any
.self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreself
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more