Skip to content

Commit 981d28f

Browse files
committed
Update blog
1 parent fd603b7 commit 981d28f

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
title: "Post from Nov 07, 2025"
3+
date: 2025-11-07T11:21:47
4+
slug: "1762514507"
5+
tags:
6+
- ml
7+
- compiler
8+
- onnx
9+
- ggml
10+
- sdkit
11+
- worklog
12+
---
13+
14+
Wrote a simple script to convert ONNX to GGML. It auto-generates C++ code that calls the corresponding ggml functions (for each ONNX operator). This file can then be compiled and run like a normal C++ ggml program, and will produce the same results as the original model in PyTorch.
15+
16+
The generated file can work on multiple backends: CPU, CUDA, ROCm, Vulkan, Metal etc, by providing the correct compiler flags during `cmake -B`, e.g. `-D GGML_CUDA=1` for CUDA.
17+
18+
Repo: [https://github.com/cmdr2/graph-compiler](https://github.com/cmdr2/graph-compiler)
19+
20+
I've currently got it to work for a TinyCNN model, and will add more operators as I make it convert larger models.

0 commit comments

Comments
 (0)