feat(engine): spectral control backend (on models/backend)#232
Merged
ryanontheinside merged 3 commits intoJun 9, 2026
Merged
Conversation
Also relabels the two sections inside as "channel highlights" and "channel groups" so the section ↔ tab vocabulary stays honest.
^ Conflicts: ^ demos/realtime_motion_graph_web/web/sdk/protocol.ts
6dbb2fc to
07f8759
Compare
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.
Spectral control backend (activation steering), ported onto the backend seam
Engine-side activation steering: per-DiT-layer additive shifts on the post-block residual, gated per-row by denoise step, driven live from the streaming pipeline.
What's here (one commit,
39b83c3)acestep/steering/: new package —SteeringController(auto-axis vectors + manual catalog + LIFO slot registry + raw-knobs -> config translation),policy.py(pure axis/limits tables),catalog.py(vector enumeration/loading),hub.py(per-checkpoint HF bundle fetch/cache),types.py.acestep/engine/stream.py:set_steering()API; eager-path forward hooks ondecoder.layers; TRT-path per-ticksteeringbuffer fill;_current_step_per_rowpopulated around the batched forwards so injection only fires at the targeted denoise step.acestep/engine/trt/export.py+build.py+runtime.py: decoder ONNX/engines gain a[B, num_layers, hidden_size]steeringinput (zeros = exact no-op). Engine filename prefix becomesspectral_decoder_*; pre-steering engines keep their old names and the streaming path degrades with a loud warning (knobs no-op until rebuilt).acestep/paths.py: steering-vector bundle paths per checkpoint; TRT profile table points at thespectral_decoder_*engines.Port notes (vs #162)
stream.pylands on the ModelAdapter seam: the per-row step mapping wraps_forward_pairs, which now dispatches throughadapter.batched_forward(ACE) — TRT dispatch and the steering buffer fill stay pipeline-owned, so the injection semantics are unchanged._ENGINE_METADATA_SCHEMAmoved to its post-refactor homeacestep/engine/trt/_engine_metadata.py; the 1 -> 2 bump lives there now.paths.pykeeps both the seam's fixtures/user-uploads dirs and the steering helpers.Validation