<!-- Canonical page: https://reversedwithai.com/p/apple-afm-model-format-teardown -->
Canonical page: https://reversedwithai.com/p/apple-afm-model-format-teardown

# Teased apart the on-device foundation model of Apple from its shipped files, with AI agents

> 9.86 billion recovered weights, one uncovered convention, method and paper published.

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.

## Key facts

- Target: Apple afmplus ifp on-device model (macOS)
- Category: Research and benchmarks
- Platform: macOS (Apple Neural Engine)
- Models: Claude
- Tools: Python
- Outcome: Research
- License: MIT
- Checks: Source available: not reported; Repro steps: not reported; Real hardware: not reported; Verified by others: not reported
- Author: [yu314-coder](https://github.com/yu314-coder)
- Added: 2026-10-19
- Updated: 2026-10-19
- Sources reviewed: 2026-10-19 (editor)

## What was done

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.

### How it was done
The 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.

### Results
All 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.

## What the commit history shows

192 of 192 commits in the public repository credit an AI, over 31 days between 2026-07-11 and 2026-11-15. Credited: Claude Opus 5 (80), Claude Opus 4.8 (78), Claude Opus 5.5 (20), Claude (version not given) (11).

Measured by this site from public git history.

## Questions about Apple afmplus ifp on-device model (macOS)

### What is the Apple afmplus ifp on-device model (macOS) project?

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. It is listed under Research and benchmarks for macOS (Apple Neural Engine).

### Which AI model was used on Apple afmplus ifp on-device model (macOS)?

The entry names Claude. The tools named alongside are Python.

### Did the AI reverse engineering of Apple afmplus ifp on-device model (macOS) work?

It is a research result, not a finished tool.

### Is the source code for Apple afmplus ifp on-device model (macOS) available?

The entry links a repository, https://github.com/yu314-coder/afm-ifp-teardown, but does not record whether the code is public. Licence: MIT.

## Sources

- [Repository](https://github.com/yu314-coder/afm-ifp-teardown)

Figures are reported by the author and not measured by this site, except the commit history. Entry drafted with AI from the linked sources and checked against them.

Cite as: yu314-coder (2026). Teased apart the on-device foundation model of Apple from its shipped files, with AI agents. Reversed with AI. https://reversedwithai.com/p/apple-afm-model-format-teardown
