SafeLlavaModelHandle
Namespace: LLama.Native
A reference to a set of llava model weights.
1 |
|
Inheritance Object → CriticalFinalizerObject → SafeHandle → SafeLLamaHandleBase → SafeLlavaModelHandle
Implements IDisposable
Properties
IsInvalid
1 |
|
Property Value
IsClosed
1 |
|
Property Value
Methods
ReleaseHandle()
1 |
|
Returns
LoadFromFile(String, Int32)
Load a model from the given file path into memory
1 |
|
Parameters
modelPath
String
MMP File (Multi-Modal Projections)
verbosity
Int32
Verbosity level
Returns
SafeLlavaModelHandle
SafeHandle of the Clip Model
Exceptions
CreateImageEmbeddings(LLamaContext, String)
Create the Image Embeddings.
1 |
|
Parameters
ctxLlama
LLamaContext
LLama Context
image
String
Image filename (it supports jpeg format only)
Returns
SafeLlavaImageEmbedHandle
return the SafeHandle of these embeddings
CreateImageEmbeddings(LLamaContext, Byte[])
Create the Image Embeddings.
1 |
|
Parameters
ctxLlama
LLamaContext
LLama Context
image
Byte[]
Image in binary format (it supports jpeg format only)
Returns
SafeLlavaImageEmbedHandle
return the SafeHandle of these embeddings
EvalImageEmbed(LLamaContext, SafeLlavaImageEmbedHandle, Int32&)
Evaluates the image embeddings.
1 |
|
Parameters
ctxLlama
LLamaContext
Llama Context
imageEmbed
SafeLlavaImageEmbedHandle
The current embeddings to evaluate
n_past
Int32&
Returns
Boolean
True on success