Skip to content

Unify RKNN and NEON component execution plans - #922

Merged
0xShug0 merged 3 commits into
mainfrom
refactor/component-exec-plans
Oct 15, 2026
Merged

0xShug0 merged 3 commits into
mainfrom
refactor/component-exec-plans

Conversation

@0xShug0

@0xShug0 0xShug0 commented Oct 15, 2026

Copy link
Copy Markdown
Owner

Summary

  • 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.

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

  • 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.

@0xShug0

0xShug0 commented Oct 15, 2026

Copy link
Copy Markdown
Owner Author

@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.

@0xShug0
0xShug0 merged commit 73ea5cc into main Oct 15, 2026
6 checks passed
@tarelerulz

Copy link
Copy Markdown
Contributor

Thanks, makes sense — nothing to change on my side since I use the default. Keep up the good work!

@0xShug0
0xShug0 deleted the refactor/component-exec-plans branch October 15, 2026 20:23
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