This note explains the Kimi Delta Attention algorithm and maps it to the merged
implementation in vllm-project/vllm#27654.
The analysis is based on the PR's final head commit
f48a1cd,
the Kimi Linear paper, and the reference
Flash Linear Attention implementation.
This gist shows a working local Pi provider setup for Apple's fm serve
Chat Completions endpoint.
It supports both Apple Foundation Models exposed by the fm CLI:
fm/system: on-device Apple Foundation Model, configured as 4K contextfm/pcc: Private Cloud Compute model, configured as 32K context
This gist shows a working local Pi provider setup for Apple's fm serve
Chat Completions endpoint.
It supports both Apple Foundation Models exposed by the fm CLI:
fm/system: on-device Apple Foundation Model, configured as 4K contextfm/pcc: Private Cloud Compute model, configured as 32K context
Demonstrates that Apple Neural Engine (ANE) achieves significantly higher throughput with INT8 W8A8 quantization vs FP16, consistent with native INT8 datapath support.
| Method | FP16 | INT8 W8A8 | Ratio |
|---|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import FoundationModels | |
| import Playgrounds | |
| import Foundation | |
| let session = LanguageModelSession() | |
| let start = Date() | |
| let response = try await session.respond(to: "What is Apple Neural Engine and how to use it?") | |
| let responseText = response.content // Replace 'value' with the actual property name from LanguageModelSession.Response<String> that holds the string payload. | |
| print(responseText) | |
| let end = Date() |