Skip to content

< Back


ILLamaExecutor

Namespace: LLama.Abstractions

A high level interface for LLama models.

1
public interface ILLamaExecutor

Attributes NullableContextAttribute

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

Multi-Modal Projections / Clip Model weights

1
public abstract LLavaWeights ClipModel { get; }

Property Value

LLavaWeights

Images

List of images: List of images in byte array format.

1
public abstract List<Byte[]> Images { get; }

Property Value

List<Byte[]>

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>


< Back