You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unify RKNN and NEON component execution plans - #922
Replace separate RKNN/NEON selectors with one <family>.exec_plan session option for Piper, Kokoro, Qwen3 TTS, and sanoTTS.
Key plans by component, with impl, backend, artifacts, and typed params. Keep generic structural validation in the framework and component semantics local to each model.
Preserve existing execution defaults when the plan or component is omitted. Update specs, documentation, and RKNN preparation instructions.
No ggml/kernel, graph-math, scheduler, or new component-placement changes.
This intentionally replaces the existing RKNN/NEON selector names without aliases. Published GGUFs with old embedded contracts need an explicit current-spec override or a future embedded-spec refresh to accept the new option.
Validation
Debug CLI/server builds passed.
model_spec_system_test and cli_request_options_test passed, including independent component overrides, defaults, server object conversion, and invalid plans.
Final-interface inference: cold and warm requests for Piper FP32 CPU, Kokoro Q8 CPU, sanoTTS FP32 CPU, and Qwen3 TTS Q8 CUDA. All eight WAVs were byte-identical to the pre-refactor baseline. New-plan runs used explicit current specs.
Changed converter syntax and Kokoro nested-parameter rejection checked.
Native RKNN and ARM NEON execution requires target-hardware validation; no Vulkan/Metal inference or performance claim is made from this pass.
@wOvAN@tarelerulz I refactored the interface to make it more scalable for future backend-specific optimizations. The ARM NEON and RKNN-related parameters are now unified under <family>.exec_plan. The internal implementation of the interface can be further refined, but future changes should no longer require continuously expanding the options list. Advanced controls, such as weight settings, should ideally follow the same approach. However, they've already been exposed in previous releases. The old NEON and RKNN option names will not be retained as aliases, since they were provisional additions between releases. Please update your apps accordingly to use the new interface.
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
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.
Summary
<family>.exec_plansession option for Piper, Kokoro, Qwen3 TTS, and sanoTTS.impl,backend,artifacts, and typedparams. Keep generic structural validation in the framework and component semantics local to each model.Example for Kokoro:
{ "kokoro_tts.exec_plan": { "generator": { "impl": "rknn", "artifacts": {"main": "/models/generator.rknn"}, "params": {"overlap": 0, "gain": false} } } }Compatibility
This intentionally replaces the existing RKNN/NEON selector names without aliases. Published GGUFs with old embedded contracts need an explicit current-spec override or a future embedded-spec refresh to accept the new option.
Validation
model_spec_system_testandcli_request_options_testpassed, including independent component overrides, defaults, server object conversion, and invalid plans.