Skip to content

Kggml v0.1.0

Choose a tag to compare

@github-actions github-actions released this 28 Nov 22:34
· 483 commits to main since this release

Initial pre-1.0 release of Kggml (com.donfuldauer), a modular on-device AI SDK for Kotlin Multiplatform wrapping ggml (whisper.cpp, llama.cpp + libmtmd, and stable-diffusion.cpp) across Android, iOS, macOS, and JVM Desktop.

Status: pre-1.0. Public APIs may still change between 0.x minor releases. Stability criteria for 1.0.0 are tracked in #104.

Maven Central (com.donfuldauer:kggml-bom:0.1.0)

Import the BOM once and add only the modules your app uses—unused engines add no native code:

dependencies {
    implementation(platform("com.donfuldauer:kggml-bom:0.1.0"))

    implementation("com.donfuldauer:kggml-whisper")        // speech-to-text (whisper.cpp)
    implementation("com.donfuldauer:kggml-llama")          // text generation, embeddings, vision (llama.cpp + libmtmd)
    implementation("com.donfuldauer:kggml-diffusion")      // text-to-image (stable-diffusion.cpp)
    implementation("com.donfuldauer:kggml-model-manager")  // optional: resumable SHA-256 downloads, RAM estimator, cache
    implementation("com.donfuldauer:kggml-runtime-vulkan") // optional: GPU via Vulkan (Android API 28+, desktop Linux x86_64)
    implementation("com.donfuldauer:kggml-runtime-opencl") // optional: Android GPU via OpenCL (Adreno, API 28+)
}

Published coordinates

Coordinate Targets / Native artifacts
com.donfuldauer:kggml-bom BOM (pom) aligning all 8 library coordinates below
com.donfuldauer:kggml-core-api Pure Kotlin: Android, JVM, iosArm64, iosSimulatorArm64, macosArm64
com.donfuldauer:kggml-runtime Shared ggml runtime (CPU everywhere, Metal on Apple). Android AAR (arm64-v8a, x86_64), JVM jar (linux-x86_64, linux-aarch64, windows-x86_64, windows-aarch64, macos-aarch64), iOS & macosArm64
com.donfuldauer:kggml-runtime-vulkan Optional Vulkan GPU add-on: Android AAR (arm64-v8a, x86_64), JVM jar (linux-x86_64); no-op on other platforms
com.donfuldauer:kggml-runtime-opencl Optional OpenCL GPU add-on: Android AAR (arm64-v8a, x86_64); no-op on other platforms
com.donfuldauer:kggml-whisper WhisperEngine (one-shot + live streaming with native resampler & VAD, iOS Core ML encoder & CPU-only background safety)
com.donfuldauer:kggml-llama LlamaEngine (streaming generation, GBNF / JSON Schema grammars, KV-cache sessions, embeddings, in-memory VLM via libmtmd)
com.donfuldauer:kggml-diffusion DiffusionEngine (SD 1.x / 2.x / XL / Flux / SD 3.5 image generation with step progress and cancellation)
com.donfuldauer:kggml-model-manager Pure Kotlin: resumable HTTP Range downloads, SHA-256 verification, GGUF/Whisper header RAM estimator, memory-pressure cache eviction

iOS & macOS XCFrameworks

Prebuilt dynamic XCFrameworks are attached to this release along with SHA256SUMS:

  • GgmlRuntime.xcframework.zip (ios-arm64, ios-arm64-simulator, macos-arm64)
  • KggmlWhisper.xcframework.zip (ios-arm64, ios-arm64-simulator)
  • KggmlLlama.xcframework.zip (ios-arm64, ios-arm64-simulator)
  • KggmlDiffusion.xcframework.zip (ios-arm64, ios-arm64-simulator)

Verify downloads before embedding in your Xcode target:

shasum -a 256 -c SHA256SUMS

Pinned upstream libraries

  • ggml: v1.1.1 (bb877c0)
  • whisper.cpp: v1.9.6-181-g79b11911 (79b1191)
  • llama.cpp + libmtmd: b12816 (7b74cb9)
  • stable-diffusion.cpp: 3b4d26f (master-612-d7ecbe1-2-g3b4d26f)
  • Vulkan-Headers v1.4.369, SPIRV-Headers f6f78c7, OpenCL-Headers 82f6031

See NOTICE for complete attribution and licenses.

Known limitations in 0.1.0

  • PowerVR Vulkan exclusion: Imagination PowerVR GPUs (e.g., Pixel 10/11 Tensor) are excluded from Vulkan by default and fall back to CPU (KGGML_VULKAN_ALLOW_POWERVR=1 overrides).
  • Desktop Vulkan: kggml-runtime-vulkan currently ships a desktop module for linux-x86_64 only; Windows desktop Vulkan is tracked in #92.
  • Kotlin/Native macOS: macosArm64 is published for kggml-core-api and kggml-runtime; engine targets follow in #93.