Downloads · 30 days
75
85% of all-time downloads
mlboydaisuke/LLaDA-8B-dLLM-CoreAI
LLaDA-8B-dLLM-CoreAI is a machine learning model from mlboydaisuke. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for coreai. The card lists the license as other.
Core AI is Apple's on-device ML runtime in iOS 27 / macOS 27 and the successor to Core ML: PyTorch models are exported with Apple's coreai-torch (LLMs: coreai.llm.export) into .aimodel bundles that run on the GPU or t…
Downloads · 30 days
75
85% of all-time downloads
All-time downloads
88
Public
Repo size
15.8 GB
Likes
2
Public
Click a slice to open those files.
.mlirb5.3 GB · 100%
From the Hugging Face model README
Core AI is Apple's on-device ML runtime in iOS 27 / macOS 27 and the successor to Core ML: PyTorch models are exported with Apple's coreai-torch (LLMs: coreai.llm.export) into .aimodel bundles that run on the GPU or the Neural Engine, e.g. Qwen3-8B 4-bit decodes at 94 tok/s on an M4 Max GPU, MLX 90 under the same protocol (apple-silicon-llm-bench, macOS 27 beta 26A5353q, 2026-06-11).
This model has no row on DeviceMark, the on-device LLM leaderboard.
<!-- gen-cards:devicemark end -->The model zoo's first diffusion language model (dLLM) for Apple Core AI. Most on-device LLMs
are autoregressive — they write one token at a time, left to right. This one is a masked
diffusion model: it starts from a canvas of [MASK] tokens and fills them in in parallel,
committing the most-confident positions each step until the answer resolves. A different decoding
paradigm, running on-device on Apple Silicon.
GSAI-ML/LLaDA-8B-Instruct (LLaMA-dense 8B, bidirectional, no causal mask)d3LLM/d3LLM_LLaDA (hao-ai-lab / NVIDIA) — pseudo-trajectory distillation that cuts the number of denoising steps hard (≈8 tokens committed per forward here)coreai-core), GPUNew to Core AI? Start with CoreAIKit 0.7.3. Follow its requirements and first-run steps for qwen3-0.6b, then open the same release's ChatDemo. The README records the tested OS/SDK and download size; model and device coverage is stated per example.
▶️ Run it (source) — the DiffuseChat runner (GUI + CLI, one app for every diffusion LM in the catalog):
git clone --branch 0.7.3 --depth 1 https://github.com/john-rocky/coreai-kit
export DEVELOPER_DIR=/Applications/Xcode-27.0.0-RC.app/Contents/Developer
open -a /Applications/Xcode-27.0.0-RC.app coreai-kit/Examples/DiffuseChat/DiffuseChat.xcodeproj
# → Run, then pick "LLaDA-8B (diffusion)" in the model picker
# agents / headless (macOS):
cd coreai-kit/Examples/DiffuseChat
swift run -c release diffuse-cli --model llada-8b --prompt "What is the capital of France?"
Use Xcode build 27A266a from the release's .xcode-pin; adjust the app path if your installation is named differently.
💻 Build with it — complete; the glue is kit API, copy-paste runs:
import CoreAIKit
let dlm = try await KitDiffusionLM(catalog: "llada-8b")
let reply = try await dlm.reply(to: prompt)
// reply: the denoised answer — pass onStep: to watch the canvas fill in per forward
// (still-masked positions as ░), in parallel, not left-to-right
The take-home is Examples/DiffuseChat/Sources/QuickStart.swift
— this exact code as one typed function, no UI; the CLI is an argument shell over it, and
the GUI renders the same live canvas.
The canvas is fixed (S=256 ≈ 210 generated tokens) and the whole history must fit — no
KV cache. reply(messages:) takes role/content turns and drops the oldest first.
Pass onStep: nil if you only want the final text.
Integration checklist
https://github.com/john-rocky/coreai-kit (exact 0.7.3) → product CoreAIKitdownloadProgress callback)The answer doesn't stream left-to-right — the canvas denoises. Mid-generation you see tokens pop in out of order, e.g.:
48 + ░4 =░7░ clips░░░ → 48 + 24 = 72 clips altogether.
That parallel, out-of-order fill is the signature of a masked-diffusion LM.
Open it in CoreAIChatMac (the zoo's macOS chat app) — Download Models… → LLaDA-8B
(diffusion), or point the app at a folder containing the macos/ bundle. The host drives the
denoising loop over a single static, bidirectional forward (main(input_ids[1,S]) → logits[1,S,vocab],
no KV cache).
macos/ — Core AI .aimodel (GPU) + tokenizer/ + metadata.jsonmetadata.json exposes the diffusion knobs (no recompile to retune):
seq — canvas length (256 ⇒ answers up to ~210 tokens). No KV cache ⇒ the whole prompt+answer
lives in S; per-step cost is ~linear in S (a larger canvas = fuller answers but slower steps).block_size 32, threshold 1.0 — the entropy threshold trades steps for speed; lower = more gradual, higher = fewer forwards (faster), too high degrades quality| metric | value |
|---|---|
| throughput | ≈40 tok/s (threshold 1.0, S=256) |
| TTFT | ~0.3 s |
| forwards (NFE) | ~22 for a full 210-token answer |
| size | 4.9 GB (int4 + int8 head) |
The per-step cost is a full bidirectional forward over the whole canvas (no KV cache) — the distillation keeps the step count low. A delayed-KV-cache decode (process only the active region) is the next speed lever.
generate_multi_block_kv_cache lever) for higher throughputA community port. All credit to the upstream authors — LLaDA (GSAI-ML) and d3LLM (hao-ai-lab / NVIDIA). This bundle inherits and is bound by their licenses — please review them before use. Core AI conversion only; no retraining.
Part of the Core AI model zoo.
<!-- funnel:v1 -->More models in this format: Core AI Model Zoo — 75 models, each with the recipe that produced it.
Want a different model on-device? Open a request — free, open weights only; the export and its measured numbers get published publicly.
<!-- /funnel:v1 -->