Repository navigation
Release 0.63.3: Moonshine streaming external decoder hook - #522
Merged
Merged
Conversation
A prefill path of the form ext:<library.so>|<model dir> replaces the prefill and step graphs with a library that exports moonshine_ext_decoder() (ABI 1: create, cross, reset, step, destroy). The streaming loop, greedy choice, budgets and guards stay in the runtime; the library decodes one token per step from the embedded previous token. Partials keep their locked prefix: cross() refreshes the memory without touching the token state. With an external encoder too, no parameter archive is needed. The IREE step moves into iree_step(); its behaviour is unchanged. moonshine_stream_check takes MOONSHINE_DEC like MOONSHINE_ENC.
…both ABIs) Built with native/build-moonshine-stream.sh <abi> --vulkan from the previous commit.
… against engine 0.62.0
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.
Against engine 0.62.0, transformers-only and additive. The Android runtime (
runtime-iree-android) gains an external-decoder hook for streaming Moonshine, next to 0.63.2's external encoder.Added
moonshine_stream_jni.c,libskainet_moonshine_stream.soboth ABIs).ext:<library.so>|<model dir>replaces the prefill and step graphs with adlopened library exportingmoonshine_ext_decoder().create,cross,reset,step,destroy.moonshine_stream_check:MOONSHINE_DECreplaces the prefill path.IreeMoonshineStreamfor the external decoder form.Checked on an arm32 device, 444 German commands:
Release steps:
0.63.3on develop.