Ou

Our command line tool to transpile AI Inference from Python to C++

Hacker News

Our command line tool to transpile AI Inference from Python to C++

Hey all! We're a small (semi-stealth) team that's been working on a tool to rewrite AI inference code from Python to C++ (similar to llama.cpp, whisper.cpp, and so on). Today, we're launching `muna transpile`. It takes a Python function and generates a self-contained, header-only C++ library and a corresponding CMakeLists.txt file. It pulls in required libraries automatically (e.g. llama.cpp, onnxruntime, mlx, and so on). You can then use it to build and ship an application or library. Try it yourself on Kokoro TTS: ``` $ pip install muna $ muna transpile https://github.com/muna-ai/muna-predictors/blob/main/text-to... --trust-remote-code --install-deps $ cd cpp && cmake -B build && cmake --build build $ ./kokoro_tts --text "Hello Hacker News!" --voice af ``` The command above will transpile our Kokoro sample from Python to C++, compile it, and run the example (which uses the generated header-only lib). Taking a step back: on-device AI is becoming a hot topic, but we think the dominant thought of cloud vs. on-device is misguided. If you look deeper, you'll realize that the key is portability. ggerganov proved this by building llama.cpp, which developers have deployed on everything from Blackwell GPUs to raspberry pi. The first step is always creating a bare-metal, hardware-optimized C/C++ implementation. `muna transpile` automates this for anything you can fit into a Python function. Note that this is free and freely-usable: your Python source code goes in, it's still your source code when it comes out (just converted to C++). We're working on building more stuff on top of this (e.g. choosing where inference runs in one line of code; and agent skills that run AI models locally), so we're using this as an opportunity to expand support for different kinds of AI models / Python functions. Try it out and lmk what you think.

Share card

Actual performance

4points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntOn track for Day 1 leaderboard · Strong signals: agent, model, new · Missing: mac, agents, macos
88%88% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Indie HackersFits the IH revenue-focused audience · Missing: supports, reddit linkedin, podcasting
79%79% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
Hacker NewsStrong engagement from HN community · Strong signals: llama, hacker news, ide · Missing: https docs, excited, just released
77%77% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
TrustMRRLess likely to generate early MRR · Strong signals: way · Missing: mobile apps, ios, personal
42%42% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
34%34% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
21%21% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Incorrect prediction on native model

Similar products

Py
Pycheat – Python Cheatsheet Command Line56%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Pycheat – Python Cheatsheet Command Line

Hacker News1
Ff
Ffmpy – Python wrapper for FFmpeg command line50%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Ffmpy – Python wrapper for FFmpeg command line

Hacker News2
Cu
Curly bracket-indented Python for command line oneliners56%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Curly bracket-indented Python for command line oneliners

Hacker News2
Cr
Create a pptx from command line with python and yaml53%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Create a pptx from command line with python and yaml

Hacker News10
La
Lack.py – Pipe data between Python functions in the command line60%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Lack.py – Pipe data between Python functions in the command line

Hacker News3
Je
Jenkins-fire-CLI A Jenkins command line tool built with Python-fire49%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Jenkins-fire-CLI A Jenkins command line tool built with Python-fire

Hacker News2
OC
OCaml Bindings to Brotli and Command Line Tool41%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

OCaml Bindings to Brotli and Command Line Tool

Hacker News2
Hy
Hyperfine – a command-line benchmarking tool56%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Hyperfine – a command-line benchmarking tool

Hacker News126
Hy
Hyperfine – a command-line benchmarking tool56%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Hyperfine – a command-line benchmarking tool

Hacker News96
Sl
Slap - A command line tool for pasting49%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Slap - A command line tool for pasting

Hacker News3