Skip to content

ILLamaExecutor

Namespace: LLama.Abstractions

A high level interface for LLama models.

1
public interface ILLamaExecutor

Properties

Context

The loaded context for this executor.

1
public abstract LLamaContext Context { get; }

Property Value

LLamaContext

IsMultiModal

Identify if it's a multi-modal model and there is a image to process.

1
public abstract bool IsMultiModal { get; }

Property Value

Boolean

ClipModel

Muti-Modal Projections / Clip Model weights

1
public abstract LLavaWeights ClipModel { get; }

Property Value

LLavaWeights

ImagePaths

List of images: Image filename and path (jpeg images).

1
public abstract List<string> ImagePaths { get; set; }

Property Value

List<String>

Methods

InferAsync(String, IInferenceParams, CancellationToken)

Asynchronously infers a response from the model.

1
IAsyncEnumerable<string> InferAsync(string text, IInferenceParams inferenceParams, CancellationToken token)

Parameters

text String
Your prompt

inferenceParams IInferenceParams
Any additional parameters

token CancellationToken
A cancellation token.

Returns

IAsyncEnumerable<String>