{
  "api_version": "1.0.0",
  "slug": "apple-afm-model-format-teardown",
  "url": "https://reversedwithai.com/p/apple-afm-model-format-teardown",
  "markdown_url": "https://reversedwithai.com/p/apple-afm-model-format-teardown.md",
  "json_url": "https://reversedwithai.com/p/apple-afm-model-format-teardown.json",
  "title": "Teased apart the on-device foundation model of Apple from its shipped files, with AI agents",
  "tagline": "9.86 billion recovered weights, one uncovered convention, method and paper published.",
  "summary": "yu314-coder reverse engineered the afmplus ifp container, weight codec and de-swizzle for the sparse mixture-of-experts model Apple ships with macOS. A controlled negative result documents where reconstruction still fails. No weights are distributed.",
  "target": {
    "name": "Apple afmplus ifp on-device model (macOS)",
    "type": "research",
    "type_label": "Research and benchmarks"
  },
  "platform": "macOS (Apple Neural Engine)",
  "models": [
    "Claude"
  ],
  "tools": [
    "Python"
  ],
  "outcome": "research",
  "outcome_label": "Research",
  "human_effort": null,
  "time_spent": null,
  "cost": null,
  "license": "MIT",
  "checks": {
    "source_available": null,
    "repro_steps": null,
    "real_hardware": null,
    "independently_verified": null
  },
  "author": {
    "name": "yu314-coder",
    "url": "https://github.com/yu314-coder"
  },
  "sources": {
    "repository": "https://github.com/yu314-coder/afm-ifp-teardown",
    "writeup": null,
    "discussions": [],
    "all": [
      "https://github.com/yu314-coder/afm-ifp-teardown"
    ]
  },
  "image": {
    "url": "https://covers.reversedwithai.com/apple-afm-model-format-teardown.webp",
    "credit": "Image: GitHub (yu314-coder/afm-ifp-teardown)"
  },
  "commit_history": {
    "commits": 192,
    "ai_commits": 192,
    "ai_days": 31,
    "first_ai_commit": "2026-07-11",
    "last_ai_commit": "2026-11-15",
    "credited_models": [
      {
        "name": "Claude Opus 5",
        "commits": 80
      },
      {
        "name": "Claude Opus 4.8",
        "commits": 78
      },
      {
        "name": "Claude Opus 5.5",
        "commits": 20
      },
      {
        "name": "Claude (version not given)",
        "commits": 11
      }
    ]
  },
  "added_at": "2026-10-19T07:53:35.239449+00:00",
  "updated_at": "2026-10-19T07:53:35.239449+00:00",
  "sources_reviewed_at": "2026-10-19T07:53:35.239449+00:00",
  "reviewed_by": "editor",
  "human_notes": null,
  "reproduce": null,
  "body_md": "yu314-coder statically reverse engineered the on-device afmplus language model, the sparse mixture-of-experts backbone Apple ships with macOS. The repository publishes a teardown paper, decode and forward-pass code and a reproduction guide, and none of the Apple weights or tokenizer data. Twenty commits carry a Co-Authored-By: Claude trailer, with recovery, decode, validation and documentation all credited to the agents involved.\n\n### How it was done\nThe recovery pipeline copies the model asset that already exists on an Apple device you own, unpacks the container, reads its weight raster and program containers and rebuilds them as a single state dict, checked tensor by tensor against the shipped files. Every instrument used gets calibrated on a reference model before use, and several early positive claims were retracted in place once a statistic proved to carry no information, with the retractions kept as a record. A reproduce folder regenerates the decode from your own device without publishing Apple data.\n\n### Results\nAll 9.86 billion stored weights are recovered and validated, including the four-bit weight codec, the Apple Neural Engine de-swizzle and a 262,144 token byte-BPE tokenizer, and the expert router map is proven mathematically irrelevant to the ungated expert sum the runtime computes. A 44-layer forward pass runs but does not produce coherent text: a controlled negative result, published with the paper, localises the remaining gap to one shared convention invisible to every static statistic. Running the real model stays with the framework Apple ships.",
  "ai_use_excerpts": null
}
