LLavaWeights
Namespace: LLama
A set of llava model weights (mmproj), loaded into memory.
1 |
|
Inheritance Object → LLavaWeights
Implements IDisposable
Properties
NativeHandle
The native handle, which is used in the native APIs
1 |
|
Property Value
Remarks:
Be careful how you use this!
Methods
LoadFromFile(String)
Load weights into memory
1 |
|
Parameters
mmProject
String
path to the "mmproj" model file
Returns
CreateImageEmbeddings(LLamaContext, Byte[])
Create the Image Embeddings from the bytes of an image.
1 |
|
Parameters
ctxLlama
LLamaContext
image
Byte[]
Image bytes. Supported formats:
JPGPNGBMPTGA
Returns
CreateImageEmbeddings(LLamaContext, String)
Create the Image Embeddings from the bytes of an image.
1 |
|
Parameters
ctxLlama
LLamaContext
image
String
Path to the image file. Supported formats:
JPGPNGBMPTGA
Returns
Exceptions
EvalImageEmbed(LLamaContext, SafeLlavaImageEmbedHandle, Int32&)
Eval the image embeddings
1 |
|
Parameters
ctxLlama
LLamaContext
imageEmbed
SafeLlavaImageEmbedHandle
n_past
Int32&
Returns
Dispose()
1 |
|