LLamaSharp/docs/xmldocs/llama.abstractions.illamaex...

1.8 KiB

ILLamaExecutor

Namespace: LLama.Abstractions

A high level interface for LLama models.

public interface ILLamaExecutor

Properties

Context

The loaded context for this executor.

public abstract LLamaContext Context { get; }

Property Value

LLamaContext

IsMultiModal

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

public abstract bool IsMultiModal { get; }

Property Value

Boolean

ClipModel

Muti-Modal Projections / Clip Model weights

public abstract LLavaWeights ClipModel { get; }

Property Value

LLavaWeights

ImagePaths

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

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

Property Value

List<String>

Methods

InferAsync(String, IInferenceParams, CancellationToken)

Asynchronously infers a response from the model.

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>