Chat with language models and generate images on your own hardware.
Built with Kotlin Multiplatform for Android, iOS, and desktop.
Documentation · Get started · Watch the demo · Contribute
- Chat locally. Stream answers, render reasoning and markdown, and stop a response at any time.
- Find your model. Search Hugging Face with paged results, matching-model counts, and author avatars styled like model monograms; download supported models and manage your library.
- Create images. Run supported diffusion models with model-specific settings on your device.
- Build with shared Kotlin. Explore Compose Multiplatform UI and native inference across three platforms.
| Engine | What you can run |
|---|---|
| llama.cpp | Local chat with GGUF language models |
| ONNX Runtime | Text generation with supported ONNX bundles |
| stable-diffusion.cpp | Image generation with supported diffusion models |
Model discovery and downloads need a connection; inference runs locally once the model is downloaded. Formats and compatibility →
Watch the 32-second walkthrough → Local chat and image generation on a Pixel 9, with captions and a transcript.
About these screenshots
Store-style layouts around actual Pixel 9 and iPhone 13 captures. Select a card for its full-size PNG. The iPhone capture shows the initial chat screen; capture notes and original screenshots provide the details. The app retains its current appearance in these captures.
The video is edited for readability; measured performance lives in the benchmark reports.
CaraML is currently distributed as source. Set up JDK 21, the Android SDK, CMake, and a C/C++ compiler using the platform setup guide, then:
git clone https://github.com/Debanshu777/CaraML.git
cd CaraML
git submodule update --init
# Run on macOS or Linux; native engines build automatically
./gradlew :app:desktopApp:runFor Android, start with a CPU build:
./gradlew :app:androidApp:assembleDebug -PcaramlAndroidBackend=cpuOpen Models, download a supported instruct model, and select it in Chat. The build guide covers Android Vulkan, iOS signing, and the first conversation.
| Platform | Available today |
|---|---|
| Android 9+ | arm64 and x86_64 · Vulkan / CPU GGUF |
| iOS 17.2+ | arm64 devices and Apple Silicon simulators · Metal GGUF |
| Desktop JVM | macOS Metal · Linux CPU · Windows packaging awaits release validation |
Supported ONNX text bundles currently use CPU in the app. See model compatibility for export requirements and device benchmarks for measured workloads.
Start with the architecture guide, contributing guide, or troubleshooting. The SDK is experimental; standalone Maven artifacts and binary app releases are not published yet.
./gradlew verifyProject # Full local/CI JVM gate
./gradlew -PsdkOnly=true verifySdk # Portable SDK checksExplore the modules and SDK boundaries
| Area | Modules |
|---|---|
| App and shared UI | App · Compose app |
| SDK contracts and lifecycle | core-api · core · storage |
| Models and native engines | discovery · llama · ONNX · diffusion · native builds |
First-party packages use com.debanshu777.caraml; reusable libraries live under sdk.*. Full conventions.
Hosts own UI, persistence, permissions, and scheduling. The SDK separates contracts, admission, storage, discovery, and engine adapters. Ownership guide.
The SDK does not promise stable APIs. Durable recovery, full app migration, standalone packaging, and release conformance remain in progress. Detailed limits.
The JVM gate does not replace Android, iOS, packaging, or real-device checks. See CI and the testing guide for scope.
Performance overview · ONNX / GGUF · Diffusion. Each report records its workload, hardware, and limitations.
Source-available under PolyForm Noncommercial 1.0.0. Noncommercial use is permitted under its terms; commercial use requires separate written permission. License details and permission requests.
Dependencies and model weights keep their own licenses. See third-party notices.
-
Windows native builds use compatible mutex initialization when the host JVM loads an older Microsoft C++ runtime. The installed-image CI check reports each engine phase and retains JVM crash diagnostics in the job log; see Windows troubleshooting.
-
Fixed download startup ordering on iOS, refreshed installation status when reopening retained details, and unified model-card front-matter parsing for article and excerpt. Removed obsolete DAO operations and test-only Model Hub layout plumbing; see regression coverage.
-
Hardened ONNX output validation and tensor cleanup, made cancellation cleanup durable, restored broken-installation removal and active queue visibility, and fixed SDK revision discovery/client ownership. Recent history now stores compact display fields without blocking details. Removed obsolete Model Hub UI and consolidated duplicated Android/JVM bridge/download code. Desktop tests use the selected native profile; packaged runtime and durable download migrations retain their earlier fixes. See verification and scope.
-
Model monograms and author avatars accept a caller-provided square size, defaulting to 36 dp. See the component sizing guidance.
-
Model details adds a full Model card tab with images, wrapping tables, and revision-aware relative links. Three swipeable text tabs retain the complete overview and pin below the top bar while scrolling. Switching pinned tabs opens the selected section at its beginning. The header shares search’s frosting and reveals the model name when the expanded title scrolls out of view. Technical facts remain grouped. Screen recreation reuses active requests and loaded data, and tab/scroll state survives changes between compact, rail, and sidebar navigation; the ViewModel prepares Markdown once per fetched document for reuse across tab changes. README retry remains independent of downloads. See the model details guide.
-
Dark mode now uses progressively lighter raised surfaces, subtle shared borders, dark button shadows, and a quieter background wash across the app. Light-mode colours are unchanged.
-
Models now separates subdued Recently viewed cards from an explicit Explore models or Search results heading, with tighter search spacing and consistent, lightly raised icon buttons. Icon buttons retain a thin 1dp contour and 2dp depth while sharing text buttons’ ink shadow. Both sizes use the shared subtle rim in dark mode.
-
Redesigned Model Hub with full-width search, applied filter counts, a four-model recent grid, and verified local-variant counts. Downloads has its own page for transfers and installed models. See the Model Hub guide.
-
Unified Model search and Downloads rendering in
ModelRow, with pure presentation-state mappers and shared selection, repair, recommendation and avatar behavior. -
Centered model-row avatars and selection icons vertically beside the row content.
-
Model row dividers start at the title column, after the avatar, and extend through the list’s trailing gutter to the content-pane edge.
-
Model rows show compatibility as a tinted icon-and-text tag alongside metrics, wrapping as needed. Details share the same green/amber/red/neutral verdict styling.
-
Model rows use accessible status icons and task tags; details retain matching icons with explanatory text.
-
Added offline
ModelHubCardpreviews for light/dark themes and narrow screens at 200% text size, including metrics, repair and selection states. -
Model search and Downloads share one compact row layout with icon metrics, secondary author/filename text and subtle dividers. Tap a supported row to open it; Downloads retains selection, readiness and “Finish setup” actions without a redundant “Use model” button.
-
Migrated language-model search and browse to Hugging Face
/models-json, with page-based continuation, server match counts and monogram-styled author avatars; recommendations retain independent metadata acquisition. -
Added Compose UI Tooling to
composeAppandroidMaindependencies to resolve Android Studio Compose Preview rendering issues (ComposeViewAdaptermissing class exception). -
Fixed chat model switching and cancelled media writes, stale Model Hub details and file-list retries, overlapping settings edits, interrupted download commands, and native teardown. See the state and ownership map.
-
Required docs, root README, and affected module README updates alongside every code change through the shared agent and contributor workflow.
-
Fixed the ONNX resident-session test storage layout on Linux CI and enabled complete JVM test failure diagnostics.
-
Published the documentation and demo on GitHub Pages, with source links pinned to each deployed revision.
-
Simplified the README and docs around a compact blue-flower masthead, project details, and direct setup links.
-
Fixed nested diffusion-model installs and kept image/video models visible alongside frequently used chat models.
-
Added searchable docs, a real-device demo, contribution guides, and noncommercial licensing.
-
Added ONNX text support and Android Vulkan diffusion; results and limits.
Built by Debanshu Datta with Kotlin & Compose Multiplatform.




