Core AI model zoo

FastContext-1.0-4B-SFT — Core AI

Deprecated 2026-07-21 — Microsoft removed the upstream weights from Hugging Face (2026-06-30, no explanation); the shipped 0.4.0-era artifact cannot be rebuilt without them. The HF repo is kept for reference.

🤗 mlboydaisuke/FastContext-1.0-4B-CoreAI · MIT · base microsoft/FastContext-1.0-4B-SFT

Microsoft’s long-context repository-exploration agent — a Qwen3-4B-Instruct backbone SFT’d on exploration traces (broad first-turn search, multi-turn evidence gathering, precise file:line citation), converted to Apple Core AI and running fully on-device on iPhone. The zoo’s first stock-architecture LLM (byte-identical Qwen3-4B → no re-authored decoder) and first 4B-class iPhone text model.

On-device (iPhone 17 Pro, A19 Pro — CoreAIChat pipelined GPU engine, greedy)

bundle decode prefill quality size load
gpu/ (ship, AOT h18p) 20.4 tok/s 22.1 tok/s parity 23/24 argmax, ppl 1.41 vs HF fp16 2.1 GB 8 s cold / 1 s warm

Resident footprint ~0.3–0.6 GB (weights memory-mapped). The single parity flip is a near-tie quant-noise position; greedy continuation is token-identical to HF on the probe prompt.

Conversion

Run

In the zoo’s CoreAIChat app (Model → “FastContext 4B”), or via Foundation Models:

import FoundationModels
import CoreAILanguageModels
let model = try await CoreAILanguageModel(resourcesAt: gpuBundleURL)
let session = LanguageModelSession(model: model)
print(try await session.respond(to:
    "Find where JWT token expiration is validated in an unfamiliar Python service — list the exact ripgrep queries to run first."))

It plays to its training: instead of a generic answer, it hands you a numbered set of ripgrep queries + filename patterns to locate the code — the on-device repo-exploration agent.