hybridgroup/yzma
Go with your own intelligence - Write Go applications that directly integrate llama.cpp for local inference using hardware acceleration on Linux, macOS, Windows, & WebAssembly.
What it solves
yzma removes the complexity of integrating Large Language Models (LLMs) and Vision Language Models (VLMs) into Go applications. It allows developers to run models locally without needing external servers, containers, or complex CGo configurations, enabling high-performance AI features directly within standard Go code.
How it works
It acts as a bridge that directly integrates llama.cpp into Go. By using purego and ffi packages, it executes model inference within the same process as your application, avoiding the overhead of external API calls. It supports hardware acceleration (such as CUDA, Metal, Vulkan, and OpenVINO) and can even run in web browsers using WebAssembly and WebGPU.
Who it’s for
This project is for Go developers who want to embed local AI capabilities into their applications. It is ideal for those who need high-performance, private, and offline model execution across Linux, macOS, Windows, or web environments.
Highlights
- Direct integration with
llama.cppfor local inference without needing a C compiler. - Supports a wide range of hardware acceleration including CUDA, Metal, and Vulkan.
- Runs in the browser via WebAssembly and WebGPU for client-side AI.
- Includes a command-line tool for easy model downloading and library management.
- Compatible with over 200,000 GGUF-format models available on Hugging Face.
Related
- Project
- Project
- Project
- Project
- Dispatch