Skip to content

Commit 264e176

Browse files
committed
Test only one method, no release embeddings
1 parent 2f38c37 commit 264e176

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

LLama.Unittest/LLavaWeightsTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public void EmbedImageAsFileName()
103103
Assert.True( _lLavaWeights.EmbedImage( _context, Constants.LLavaImage, out n_past ) );
104104
}
105105

106-
[Fact]
106+
[Fact(Skip = "Just to test Linux problems")]
107107
public void EmbedImageAsBinary()
108108
{
109109
int n_past = 0;

LLama/Native/SafeLlavaModelHandle.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public bool EmbedImage(LLamaContext ctxLlama, string image, out int n_past)
6666
{
6767
var ptrImageEmbed = NativeApi.llava_image_embed_make_with_filename(this.handle, (int) ctxLlama.BatchThreads, image);
6868
bool result = NativeApi.llava_eval_image_embed(ctxLlama.NativeHandle, ptrImageEmbed, (int)ctxLlama.Params.BatchSize, out n_past );
69-
NativeApi.llava_image_embed_free(ptrImageEmbed);
69+
//NativeApi.llava_image_embed_free(ptrImageEmbed);
7070
return result;
7171
}
7272
}
@@ -84,7 +84,7 @@ public bool EmbedImage(LLamaContext ctxLlama, Byte[] image, out int n_past )
8484
{
8585
var ptrImageEmbed = NativeApi.llava_image_embed_make_with_bytes(this.handle, (int) ctxLlama.BatchThreads, image.ToArray(), image.Length);
8686
bool result = NativeApi.llava_eval_image_embed(ctxLlama.NativeHandle, ptrImageEmbed, (int)ctxLlama.Params.BatchSize, out n_past );
87-
NativeApi.llava_image_embed_free(ptrImageEmbed);
87+
//NativeApi.llava_image_embed_free(ptrImageEmbed);
8888
return result;
8989
}
9090
}

0 commit comments

Comments
 (0)