decision model on the neural engine (measured) :3 - #56
Merged
Merged
Conversation
…edding was on the cpu T_T so the decision model is now minilm as a core ml program on the neural engine (<1ms, 1.8W ane, 30/31 held out). apple intelligence is the next opinion (27/31, 0.7s, also ane) >//< Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017ryuzz9EtCjeeR8ofVxhGW
…st-open-a-page so the turn stopped after x.com loaded T_T now only a bare destination ends it, "continue" keeps the task's thinking, and the window keeps following the chat past 5 msgs instead of hiding each answer under the fold :3 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017ryuzz9EtCjeeR8ofVxhGW
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #55.
Measured with macmon, which reads the power rails without sudo. Each phase repeats one operation for 6 s.
.accurate, pinned to the ANE.fast(CPU-only control)decideApple's contextual embedding runs on the CPU, not the Neural Engine. The decision model now uses all-MiniLM-L6-v2, converted to an fp16 Core ML program: 0.76 ms per sentence, against 8 ms for the old embedding.
symbio_ane/build_text_encoder.pybuilds it into<home>/cache/text-encoderfrom a separate coremltools venv. Its output matches the torch model at cosine 0.99997.Decision order, with think/no-think accuracy on 31 held-out messages:
In live turns on the 14B, the decision came from
minilm-anein 2 ms.