Skip to content

Commit c0840c2

Browse files
authored
add: ggml graph encoding format (WebAssembly#66)
This commit adds the `ggml` graph encoding format to the `graph_encoding` enum. The motivation for this is to allow the `wasi-nn` interface to support models that are encoded in the `ggml` format which is the model format used by llama.cpp. Signed-off-by: Daniel Bevenius <[email protected]>
1 parent 06c30c0 commit c0840c2

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

ml.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ backends that encode (i.e., serialize) their graph IR with different formats.</p
214214
<li><a name="graph_encoding.tensorflow"><code>tensorflow</code></a></li>
215215
<li><a name="graph_encoding.pytorch"><code>pytorch</code></a></li>
216216
<li><a name="graph_encoding.tensorflowlite"><code>tensorflowlite</code></a></li>
217+
<li><a name="graph_encoding.ggml"><code>ggml</code></a></li>
217218
<li><a name="graph_encoding.autodetect"><code>autodetect</code></a></li>
218219
</ul>
219220
<h4><a name="execution_target"><code>enum execution-target</code></a></h4>

wit/wasi-nn.wit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ interface graph {
7878
tensorflow,
7979
pytorch,
8080
tensorflowlite,
81+
ggml,
8182
autodetect,
8283
}
8384

0 commit comments

Comments
 (0)