|
1 | | -using System; |
2 | | -using System.Collections.Generic; |
3 | 1 | using System.Runtime.InteropServices; |
4 | 2 | using LLama.Native; |
5 | | -using Xunit; |
6 | 3 |
|
7 | 4 | namespace LLama.Unittest |
8 | 5 | { |
@@ -79,27 +76,6 @@ public void ContextParamsSizeMatchesNative() |
79 | 76 | Assert.Equal(expectedSize, Marshal.SizeOf<LLamaContextParams>()); |
80 | 77 | } |
81 | 78 |
|
82 | | - [Fact] |
83 | | - public void MtmdContextParamsSizeMatchesNative() |
84 | | - { |
85 | | - var pointerSize = IntPtr.Size; |
86 | | - var fields = new List<(int size, int align)> |
87 | | - { |
88 | | - (sizeof(sbyte), 1), // use_gpu |
89 | | - (sizeof(sbyte), 1), // print_timings |
90 | | - (sizeof(int), 4), // n_threads |
91 | | - (pointerSize, pointerSize), // image_marker |
92 | | - (pointerSize, pointerSize), // media_marker |
93 | | - (sizeof(int), 4), // flash_attn_type |
94 | | - (sizeof(sbyte), 1), // warmup |
95 | | - (sizeof(int), 4), // image_min_tokens |
96 | | - (sizeof(int), 4), // image_max_tokens |
97 | | - }; |
98 | | - |
99 | | - var expectedSize = ComputeSize(fields); |
100 | | - Assert.Equal(expectedSize, Marshal.SizeOf<NativeApi.mtmd_context_params>()); |
101 | | - } |
102 | | - |
103 | 79 | [Fact] |
104 | 80 | public void ModelParamsBoolBlockMatchesNative() |
105 | 81 | { |
|
0 commit comments