Namespace: LLama.Abstractions
A high level interface for LLama models.
public interface ILLamaExecutor
The loaded model for this executor.
public abstract LLamaModel Model { get; }
Infers a response from the model.
IEnumerable<string> Infer(string text, InferenceParams inferenceParams, CancellationToken token)
text String
Your prompt
inferenceParams InferenceParams
Any additional parameters
token CancellationToken
A cancellation token.
IAsyncEnumerable<string> InferAsync(string text, InferenceParams inferenceParams, CancellationToken token)
text String
inferenceParams InferenceParams
token CancellationToken