← Back

ofxGgmlCore

github.com/Jonathhhan/ofxGgmlCore · @Jonathhhan
OF 0.12 Computer Vision Machine Learning Artificial Intelligence

ofxGgmlCore is an openFrameworks addon that provides backend-neutral setup, runtime discovery, and shared primitives for the ofxGgml family of addons.

1 0 Last commit 2mo ago Created 5mo ago

Branches ahead of main

These branches have commits not yet on main — could be unmerged fixes or work in progress worth a look.

codex/branch-cleanup-readiness-gate 1 commit ahead · last commit 5mo ago
codex/branch-cleanup-ignore-empty-commits 1 commit ahead · last commit 5mo ago
codex/branch-cleanup-content-equivalent 1 commit ahead · last commit 5mo ago
codex/branch-cleanup-unintegrated-review 1 commit ahead · last commit 5mo ago
codex/branch-cleanup-safety-summary 1 commit ahead · last commit 5mo ago
codex/backend-runtime-build-gap-summary 1 commit ahead · last commit 5mo ago
codex/coding-agent-smoke-ci-validation 1 commit ahead · last commit 5mo ago
codex/coding-agent-queue-coverage 1 commit ahead · last commit 5mo ago
codex/auto-release-gate-refs 1 commit ahead · last commit 5mo ago
codex/assert-release-readiness-gate 1 commit ahead · last commit 5mo ago

README

ofxGgmlCore



ofxGgmlCore is the backend-neutral openFrameworks base addon for the ofxGgml family. It owns ggml setup, runtime discovery, shared C++ primitives, and a smoke-test example. Model-specific workflows live in companion addons.

Features



Addon Family



AddonLane
ofxGgmlLlamallama.cpp server/CLI, text, chat, embeddings
ofxGgmlSamSAM/SAM2/SAM3 segmentation
ofxGgmlStableDiffusionstable-diffusion.cpp image generation
ofxGgmlAudioWhisper, transcription, audio
ofxGgmlMusicmusic analysis and generation
ofxGgmlVisionCLIP, image embeddings, captions
ofxGgmlRagretrieval, citations, search
ofxGgmlAgentstool-using local agents
ofxGgmlVideovideo understanding and generation
ofxGgmlDiffusion is paused outside managed automation while ofxGgmlStableDiffusion owns the active stable-diffusion.cpp lane.

Quick Start



.\scripts\first-run.bat
.\scripts\run-simple-example.bat -Build


first-run sets up ggml and runs the Core doctor. The Core example verifies that openFrameworks can include the addon, see the ggml runtime, and render a small ofxImGui UI.

For agent planning, tool loops, and orchestration UX, use ofxGgmlAgentsPlannerExample.

For text, chat, and embedding examples, use ofxGgmlLlama:

cd ..\ofxGgmlLlama
.\scripts\build-llama-server.bat
.\scripts\run-example.bat text -Build -Model C:\path\to\model.gguf


Scripts



Core scripts are PowerShell (.ps1) with Windows batch wrappers (.bat). On macOS/Linux, run via pwsh -File scripts\<name>.ps1.

ScriptPurpose
scripts\setup-ggml.ps1Fetch and build ggml for the selected backend
scripts\first-run.ps1Setup ggml, then run doctor
scripts\doctor.ps1Check local Core readiness
scripts\build-simple-example.ps1Build the Core smoke example
scripts\run-simple-example.ps1Launch the Core smoke example
scripts\runtime-provider-manifest.ps1Report Core ggml include/lib/backend readiness for companions
scripts\compare-runtime-provider-manifest.ps1Compare saved runtime provider manifests after setup or machine changes
scripts\validate-local.ps1Run the local validation suite
scripts\release-candidate.ps1Pre-release validation gate
scripts\list-models.ps1List nearby GGUF files
scripts\test-artifact-hygiene.ps1 -Json -SummaryOnlyReport generated artifact hygiene for CI and companions
scripts\plan-ecosystem.ps1Ecosystem planning handoff
scripts\status-family.ps1Local addon-family status
scripts\audit-ecosystem.ps1Ecosystem readiness audit
Backend flags: -Auto (default), -CpuOnly, -Cuda, -Vulkan, -Metal, -AllBackends.

Threading



Core Contract



Core stays small and boring:

Core keeps shared request/result types, runtime profile checks, and domain-neutral primitives. Concrete model adapters belong in companion addons.

See docs/CORE_CONTRACT.md for the full contract. See docs/RUNTIME_PROVIDER.md for the script-level ggml provider manifest used by companion addon setup and doctor scripts.

Validation



.\scripts\validate-local.bat


Before tagging a release:

.\scripts\release-candidate.bat

Get this addon

HTTPS
SSH