Skip to content

feat(ios): Implement Native Classifier with Accelerate & BNNS - #4

Merged
StoyanD merged 4 commits into
mainfrom
ios
Apr 29, 2026
Merged

feat(ios): Implement Native Classifier with Accelerate & BNNS#4
StoyanD merged 4 commits into
mainfrom
ios

Conversation

@StoyanD

@StoyanD StoyanD commented Apr 29, 2026

Copy link
Copy Markdown
Contributor

Rationale

To support high-performance on-device content classification in the Alete iOS app without the overhead of a JS runtime.

Changes

  • New AleteClassifier Swift Package.
  • Native BertTokenizer implementation.
  • BNNS-accelerated MLP head.
  • vDSP-accelerated embedding pooling and normalization.
  • Int4 Dequantization support.
  • New Conductor track for native implementation tracking.

Testing Performed

  • Full unit test coverage for tokenization and model loading.
  • Verified parity against JS implementation with 100+ diverse samples using parity_data.json.
  • Performance benchmarks conducted on iPhone 15 Pro showing significant latency improvements.

@StoyanD

StoyanD commented Apr 29, 2026

Copy link
Copy Markdown
Contributor Author

@copilot resolve the merge conflicts in this pull request

# Conflicts:
#	PROGRESS_REPORT.md

Co-authored-by: StoyanD <746098+StoyanD@users.noreply.github.com>

Copilot AI commented Apr 29, 2026

Copy link
Copy Markdown

@copilot resolve the merge conflicts in this pull request

Resolved. The only conflict was in PROGRESS_REPORT.md where both branches had a "Section 9" entry. I kept the npm Package Split as section 9 (since it was merged to main first) and renumbered the iOS Native Classifier as section 10. Merge commit: 0dea00e.

@StoyanD
StoyanD merged commit c2ae02c into main Apr 29, 2026
1 check passed
@StoyanD
StoyanD deleted the ios branch April 29, 2026 22:07
@StoyanD
StoyanD restored the ios branch April 29, 2026 22:08
@StoyanD
StoyanD deleted the ios branch April 29, 2026 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants