StatelessExecutor
Namespace: LLama
This executor infer the input as one-time job. Previous inputs won't impact on the response to current input.
1 |
|
Inheritance Object → StatelessExecutor
Implements ILLamaExecutor
Attributes NullableContextAttribute, NullableAttribute
Properties
IsMultiModal
1 |
|
Property Value
ClipModel
1 |
|
Property Value
Images
1 |
|
Property Value
Context
The context used by the executor when running the inference.
1 |
|
Property Value
ApplyTemplate
If true, applies the default template to the prompt as defined in the rules for llama_chat_apply_template template.
1 |
|
Property Value
SystemMessage
The system message to use with the prompt. Only used when StatelessExecutor.ApplyTemplate is true.
1 |
|
Property Value
Constructors
StatelessExecutor(LLamaWeights, IContextParams, ILogger)
Create a new stateless executor which will use the given model
1 |
|
Parameters
weights
LLamaWeights
params
IContextParams
logger
ILogger
Methods
InferAsync(String, IInferenceParams, CancellationToken)
1 |
|
Parameters
prompt
String
inferenceParams
IInferenceParams
cancellationToken
CancellationToken