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
Gemma3n audio combines a specialized mel/Conformer encoder with the already-specialized Gemma3n AltUp/Laurel/dense-PLE language path. The audio frame mask drives convolutional subsampling and chunked local attention; the resulting projected tokens and per-layer inputs must align with expanded prompt positions before #876 seeds KV caches.
A host-only encoder fallback would leave a substantial second compute graph/runtime and would not complete the epic's OpenXLA parity target.
Goal
Execute the qualified Gemma3n audio encoder and multimodal projection through StableHLO/IREE, feed exact merged embeddings plus dense PLE to #876, and serve bounded audio requests through CLI and continuous batching.
Define static frame buckets up to the pinned checkpoint's duration limit. Include mel bins, frame policy, convolution shapes/strides/padding, hidden size, Conformer depth, chunk/context sizes, projection/pooling config, and dtype in artifact identity.
Emit both subsample convolution blocks with manual padding, cumulative group normalization, ReLU, mask/length propagation, and output projection exactly.
Emit all Conformer components from feat(vlm): add a token-exact Gemma3n audio reference path #875: feed-forward halves, chunked local attention, relative position projection/shift, per-dimension query scaling, logit softcap, light causal/depthwise convolution, residuals, clipping behavior relevant to inference, and final normalization/pooling/projection.
Carry masks through every stage; padded mel frames and padded output tokens must not contribute to cumulative statistics, attention, pooling, placeholder count, or PLE generation.
Produce projected audio tokens plus explicit per-clip output lengths. Apply the exact feat(vlm): add a token-exact Gemma3n audio reference path #875 placeholder expansion/replacement and construct the post-scale merged embeddings and dense per-layer-input tensor required by prefill_embeddings_ple.main.
Load audio weights conditionally. Capability is true only when the checkpoint contains compatible audio config/weights, audio.main, and the feat(xla): add the Gemma3n text backbone and dense PLE prefill #876 language bundle. Text/image-only checkpoints must not pay the audio load/memory cost.
Parent and dependencies
Problem
Gemma3n audio combines a specialized mel/Conformer encoder with the already-specialized Gemma3n AltUp/Laurel/dense-PLE language path. The audio frame mask drives convolutional subsampling and chunked local attention; the resulting projected tokens and per-layer inputs must align with expanded prompt positions before #876 seeds KV caches.
A host-only encoder fallback would leave a substantial second compute graph/runtime and would not complete the epic's OpenXLA parity target.
Goal
Execute the qualified Gemma3n audio encoder and multimodal projection through StableHLO/IREE, feed exact merged embeddings plus dense PLE to #876, and serve bounded audio requests through CLI and continuous batching.
Required implementation
audio.maingraph accepts canonical mel features and mask/actual-frame metadata from feat(vlm): add a token-exact Gemma3n audio reference path #875.prefill_embeddings_ple.main.audio.main, and the feat(xla): add the Gemma3n text backbone and dense PLE prefill #876 language bundle. Text/image-only checkpoints must not pay the audio load/memory cost.Non-goals
Validation
Acceptance criteria