Namespace: LLama
This executor infer the input as one-time job. Previous inputs won't impact on the
response to current input.
public class StatelessExecutor : LLama.Abstractions.ILLamaExecutor
Inheritance Object → StatelessExecutor
Implements ILLamaExecutor
The mode used by the executor when running the inference.
public LLamaModel Model { get; }
public StatelessExecutor(LLamaModel model)
model LLamaModel
The LLama model.
public IEnumerable<string> Infer(string text, InferenceParams inferenceParams, CancellationToken cancellationToken)
text String
inferenceParams InferenceParams
cancellationToken CancellationToken
public IAsyncEnumerable<string> InferAsync(string text, InferenceParams inferenceParams, CancellationToken token)
text String
inferenceParams InferenceParams
token CancellationToken