Rúben GalvãoThe Rabbit Hole

The Rabbit Hole / AI / Model architectures

ServiceNow AI · Architecture map

Apriel Voice 27B Preview

Whisper audio embeddings join text and images in a Gemma 4 MoE backbone; the model returns text and tool calls.

Apriel Voice 27B Preview, October 2026 · Apriel release timeline

Inside Apriel Voice 27B Preview

Parameters
27B · 4B active
Layers
30
Width
2,816
Mixer
Grouped-query
Select a component to explore it. Layer colours match the execution-order strip.
The complete Apriel Voice 27B Preview architectureInput IDs select embeddings. Layer types execute in the order strip; dotted lines connect the type examples below. 16 query heads. Local layers use 8 key/value heads of 256 values over a 1,024-token window. Global layers use 512-wide heads with 2 key/value heads, and keys double as values (attention_k_eq_v). Global layers rotate only a quarter of each head. Local layers: keys and values for 8 heads of 256 values over the last 1,024 tokens. Global layers: 2 heads of 512 values, with keys reused as values. Final normalisation and output weights produce vocabulary scores and the next-token distribution.Text becomes token IDs.Text → tokens → IDstheoldrabbitsleepsEmbedding lookup262,1442,816Input token vectorsCL2,81632-layer Whisper encoder, width 1280. Stack eight frames, then a SwiGLU projector (hidden width 4096) maps audio to the 2816-wide language stream.Audioencoder27 layers, width 1152; 16-pixel patches and 3×3 pooling. Image embeddings enter the same language stream.Vision / videoencoderExecution order · 30 layersLayer 1: Local layers (all except every 6th)Layer 2: Local layers (all except every 6th)Layer 3: Local layers (all except every 6th)Layer 4: Local layers (all except every 6th)Layer 5: Local layers (all except every 6th)Layer 6: Global layers (6, 12, 18, 24, 30)Layer 7: Local layers (all except every 6th)Layer 8: Local layers (all except every 6th)Layer 9: Local layers (all except every 6th)Layer 10: Local layers (all except every 6th)Layer 11: Local layers (all except every 6th)Layer 12: Global layers (6, 12, 18, 24, 30)Layer 13: Local layers (all except every 6th)Layer 14: Local layers (all except every 6th)Layer 15: Local layers (all except every 6th)Layer 16: Local layers (all except every 6th)Layer 17: Local layers (all except every 6th)Layer 18: Global layers (6, 12, 18, 24, 30)Layer 19: Local layers (all except every 6th)Layer 20: Local layers (all except every 6th)Layer 21: Local layers (all except every 6th)Layer 22: Local layers (all except every 6th)Layer 23: Local layers (all except every 6th)Layer 24: Global layers (6, 12, 18, 24, 30)Layer 25: Local layers (all except every 6th)Layer 26: Local layers (all except every 6th)Layer 27: Local layers (all except every 6th)Layer 28: Local layers (all except every 6th)Layer 29: Local layers (all except every 6th)Layer 30: Global layers (6, 12, 18, 24, 30)Local layers (all except every 6th) · matches this colour in the execution-order barLocal layers (all except every 6th)Local layers (all except every 6th) · 25 repetitions25 layers · one layer shown25RMSNorm before this operation.RMSNormGrouped-query attention: Sliding-window attention, then a dense feed-forward network (2,112 wide) beside 128 routed experts of 704 wide, 8 chosen per token. The two outputs are summed. There is no shared expert.Grouped-queryattentionRotate query and key position components before attention scores; values are unchanged. Sliding-window attention, then a dense feed-forward network (2,112 wide) beside 128 routed experts of 704 wide, 8 chosen per token. The two outputs are summed. There is no shared expert.RoPENormalise queries and keys before attention scores. 16 query heads. Local layers use 8 key/value heads of 256 values over a 1,024-token window. Global layers use 512-wide heads with 2 key/value heads, and keys double as values (attention_k_eq_v). Global layers rotate only a quarter of each head.QK-normSliding-window attention over 1,024 tokens.1,02416 query heads. Local layers use 8 key/value heads of 256 values over a 1,024-token window. Global layers use 512-wide heads with 2 key/value heads, and keys double as values (attention_k_eq_v). Global layers rotate only a quarter of each head.Value normNormalise the branch output before the residual update.RMSNormAdd the branch output to the original stream. +RMSNorm before this operation.RMSNormMoE: Sliding-window attention, then a dense feed-forward network (2,112 wide) beside 128 routed experts of 704 wide, 8 chosen per token. The two outputs are summed. There is no shared expert.MoE8 of 128 routed experts selected per token. Highlighted boxes are schematic; boxes do not correspond one-to-one to experts.Normalise the branch output before the residual update.RMSNormAdd the branch output to the original stream. +8 of 128 experts +always-on denseLayer type · execution order aboveGlobal layers (6, 12, 18, 24, 30) · matches this colour in the execution-order barGlobal layers (6, 12, 18, 24, 30)Global layers (6, 12, 18, 24, 30) · 5 repetitions5 layers · one layer shown5RMSNorm before this operation.RMSNormGrouped-query attention: Full attention, then a dense feed-forward network (2,112 wide) beside 128 routed experts of 704 wide, 8 chosen per token. The two outputs are summed. There is no shared expert.Grouped-queryattentionRotate query and key position components before attention scores; values are unchanged. Full attention, then a dense feed-forward network (2,112 wide) beside 128 routed experts of 704 wide, 8 chosen per token. The two outputs are summed. There is no shared expert.RoPENormalise queries and keys before attention scores. 16 query heads. Local layers use 8 key/value heads of 256 values over a 1,024-token window. Global layers use 512-wide heads with 2 key/value heads, and keys double as values (attention_k_eq_v). Global layers rotate only a quarter of each head.QK-norm16 query heads. Local layers use 8 key/value heads of 256 values over a 1,024-token window. Global layers use 512-wide heads with 2 key/value heads, and keys double as values (attention_k_eq_v). Global layers rotate only a quarter of each head.Value normNormalise the branch output before the residual update.RMSNormAdd the branch output to the original stream. +RMSNorm before this operation.RMSNormMoE: Full attention, then a dense feed-forward network (2,112 wide) beside 128 routed experts of 704 wide, 8 chosen per token. The two outputs are summed. There is no shared expert.MoE8 of 128 routed experts selected per token. Highlighted boxes are schematic; boxes do not correspond one-to-one to experts.Normalise the branch output before the residual update.RMSNormAdd the branch output to the original stream. +8 of 128 experts +always-on denseLayer type · execution order aboveAfter all 30 layer executionsResidual streamLast columnCL2,816Final RMSNormReuses the embedding table, transposed.Tied output weights2,816262,144Vocabulary scoresSoftmax262,144Next-token probabilities
Inside grouped-query attention · Local layers (all except every 6th)
2 query heads per group × 8 K/V groups.

Earlier context dimmed · current token bright · dashed regions contain cached entries.

Apriel Voice 27B Preview: Local layers (all except every 6th) · grouped-query attention16 query heads. Local layers use 8 key/value heads of 256 values over a 1,024-token window. Global layers use 512-wide heads with 2 key/value heads, and keys double as values (attention_k_eq_v). Global layers rotate only a quarter of each head. Local layers: keys and values for 8 heads of 256 values over the last 1,024 tokens. Global layers: 2 heads of 512 values, with keys reused as values.8 KV groups; the front face shows one representative.8 KV groups2 heads / group; the front face shows one representative.2 heads / groupAttention input. 16 query heads. Local layers use 8 key/value heads of 256 values over a 1,024-token window. Global layers use 512-wide heads with 2 key/value heads, and keys double as values (attention_k_eq_v). Global layers rotate only a quarter of each head.Earlier context is dimmed; outlined columns are current.Current token computation.Attention input2,816CLWq. 16 query heads. Local layers use 8 key/value heads of 256 values over a 1,024-token window. Global layers use 512-wide heads with 2 key/value heads, and keys double as values (attention_k_eq_v). Global layers rotate only a quarter of each head.Wq2,816256Wk. 16 query heads. Local layers use 8 key/value heads of 256 values over a 1,024-token window. Global layers use 512-wide heads with 2 key/value heads, and keys double as values (attention_k_eq_v). Global layers rotate only a quarter of each head.Wk2,816256Wv. 16 query heads. Local layers use 8 key/value heads of 256 values over a 1,024-token window. Global layers use 512-wide heads with 2 key/value heads, and keys double as values (attention_k_eq_v). Global layers rotate only a quarter of each head.Wv2,816256RMSNorm. 16 query heads. Local layers use 8 key/value heads of 256 values over a 1,024-token window. Global layers use 512-wide heads with 2 key/value heads, and keys double as values (attention_k_eq_v). Global layers rotate only a quarter of each head.RMSNormRoPE. 16 query heads. Local layers use 8 key/value heads of 256 values over a 1,024-token window. Global layers use 512-wide heads with 2 key/value heads, and keys double as values (attention_k_eq_v). Global layers rotate only a quarter of each head.RoPERMSNorm. 16 query heads. Local layers use 8 key/value heads of 256 values over a 1,024-token window. Global layers use 512-wide heads with 2 key/value heads, and keys double as values (attention_k_eq_v). Global layers rotate only a quarter of each head.RMSNormRoPE. 16 query heads. Local layers use 8 key/value heads of 256 values over a 1,024-token window. Global layers use 512-wide heads with 2 key/value heads, and keys double as values (attention_k_eq_v). Global layers rotate only a quarter of each head.RoPEValue norm. 16 query heads. Local layers use 8 key/value heads of 256 values over a 1,024-token window. Global layers use 512-wide heads with 2 key/value heads, and keys double as values (attention_k_eq_v). Global layers rotate only a quarter of each head.Value normK cache. 16 query heads. Local layers use 8 key/value heads of 256 values over a 1,024-token window. Global layers use 512-wide heads with 2 key/value heads, and keys double as values (attention_k_eq_v). Global layers rotate only a quarter of each head.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.K cache256≤ 1024V cache. 16 query heads. Local layers use 8 key/value heads of 256 values over a 1,024-token window. Global layers use 512-wide heads with 2 key/value heads, and keys double as values (attention_k_eq_v). Global layers rotate only a quarter of each head.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.V cache256≤ 1024Q context. 16 query heads. Local layers use 8 key/value heads of 256 values over a 1,024-token window. Global layers use 512-wide heads with 2 key/value heads, and keys double as values (attention_k_eq_v). Global layers rotate only a quarter of each head.Earlier context is dimmed; outlined columns are current.Current token computation.Q context256CLScaled query–key scores, masking and softmax. 16 query heads. Local layers use 8 key/value heads of 256 values over a 1,024-token window. Global layers use 512-wide heads with 2 key/value heads, and keys double as values (attention_k_eq_v). Global layers rotate only a quarter of each head.16 query heads. Local layers use 8 key/value heads of 256 values over a 1,024-token window. Global layers use 512-wide heads with 2 key/value heads, and keys double as values (attention_k_eq_v). Global layers rotate only a quarter of each head.Window 1,024CLCL×. 16 query heads. Local layers use 8 key/value heads of 256 values over a 1,024-token window. Global layers use 512-wide heads with 2 key/value heads, and keys double as values (attention_k_eq_v). Global layers rotate only a quarter of each head.×Joined heads. 16 query heads. Local layers use 8 key/value heads of 256 values over a 1,024-token window. Global layers use 512-wide heads with 2 key/value heads, and keys double as values (attention_k_eq_v). Global layers rotate only a quarter of each head.16Wo. 16 query heads. Local layers use 8 key/value heads of 256 values over a 1,024-token window. Global layers use 512-wide heads with 2 key/value heads, and keys double as values (attention_k_eq_v). Global layers rotate only a quarter of each head.Wo4,0962,816Attention output. 16 query heads. Local layers use 8 key/value heads of 256 values over a 1,024-token window. Global layers use 512-wide heads with 2 key/value heads, and keys double as values (attention_k_eq_v). Global layers rotate only a quarter of each head.Earlier context is dimmed; outlined columns are current.Current token computation.Attention output2,816CL
Inside grouped-query attention · Global layers (6, 12, 18, 24, 30)
8 query heads per group × 2 K/V groups.

Earlier context dimmed · current token bright · dashed regions contain cached entries.

Apriel Voice 27B Preview: Global layers (6, 12, 18, 24, 30) · grouped-query attention16 query heads. Local layers use 8 key/value heads of 256 values over a 1,024-token window. Global layers use 512-wide heads with 2 key/value heads, and keys double as values (attention_k_eq_v). Global layers rotate only a quarter of each head. Local layers: keys and values for 8 heads of 256 values over the last 1,024 tokens. Global layers: 2 heads of 512 values, with keys reused as values.2 KV groups; the front face shows one representative.2 KV groups8 heads / group; the front face shows one representative.8 heads / groupAttention input. 16 query heads. Local layers use 8 key/value heads of 256 values over a 1,024-token window. Global layers use 512-wide heads with 2 key/value heads, and keys double as values (attention_k_eq_v). Global layers rotate only a quarter of each head.Earlier context is dimmed; outlined columns are current.Current token computation.Attention input2,816CLWq. 16 query heads. Local layers use 8 key/value heads of 256 values over a 1,024-token window. Global layers use 512-wide heads with 2 key/value heads, and keys double as values (attention_k_eq_v). Global layers rotate only a quarter of each head.Wq2,816512Wkv. 16 query heads. Local layers use 8 key/value heads of 256 values over a 1,024-token window. Global layers use 512-wide heads with 2 key/value heads, and keys double as values (attention_k_eq_v). Global layers rotate only a quarter of each head.Wkv2,816512RMSNorm. 16 query heads. Local layers use 8 key/value heads of 256 values over a 1,024-token window. Global layers use 512-wide heads with 2 key/value heads, and keys double as values (attention_k_eq_v). Global layers rotate only a quarter of each head.RMSNormRoPE 128. 16 query heads. Local layers use 8 key/value heads of 256 values over a 1,024-token window. Global layers use 512-wide heads with 2 key/value heads, and keys double as values (attention_k_eq_v). Global layers rotate only a quarter of each head.RoPE 128RMSNorm. 16 query heads. Local layers use 8 key/value heads of 256 values over a 1,024-token window. Global layers use 512-wide heads with 2 key/value heads, and keys double as values (attention_k_eq_v). Global layers rotate only a quarter of each head.RMSNormRoPE 128. 16 query heads. Local layers use 8 key/value heads of 256 values over a 1,024-token window. Global layers use 512-wide heads with 2 key/value heads, and keys double as values (attention_k_eq_v). Global layers rotate only a quarter of each head.RoPE 128Value norm. 16 query heads. Local layers use 8 key/value heads of 256 values over a 1,024-token window. Global layers use 512-wide heads with 2 key/value heads, and keys double as values (attention_k_eq_v). Global layers rotate only a quarter of each head.Value normK cache. 16 query heads. Local layers use 8 key/value heads of 256 values over a 1,024-token window. Global layers use 512-wide heads with 2 key/value heads, and keys double as values (attention_k_eq_v). Global layers rotate only a quarter of each head.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.K cache512CLV cache. 16 query heads. Local layers use 8 key/value heads of 256 values over a 1,024-token window. Global layers use 512-wide heads with 2 key/value heads, and keys double as values (attention_k_eq_v). Global layers rotate only a quarter of each head.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.V cache512CLQ context. 16 query heads. Local layers use 8 key/value heads of 256 values over a 1,024-token window. Global layers use 512-wide heads with 2 key/value heads, and keys double as values (attention_k_eq_v). Global layers rotate only a quarter of each head.Earlier context is dimmed; outlined columns are current.Current token computation.Q context512CLScaled query–key scores, masking and softmax. 16 query heads. Local layers use 8 key/value heads of 256 values over a 1,024-token window. Global layers use 512-wide heads with 2 key/value heads, and keys double as values (attention_k_eq_v). Global layers rotate only a quarter of each head.CLCL×. 16 query heads. Local layers use 8 key/value heads of 256 values over a 1,024-token window. Global layers use 512-wide heads with 2 key/value heads, and keys double as values (attention_k_eq_v). Global layers rotate only a quarter of each head.×Joined heads. 16 query heads. Local layers use 8 key/value heads of 256 values over a 1,024-token window. Global layers use 512-wide heads with 2 key/value heads, and keys double as values (attention_k_eq_v). Global layers rotate only a quarter of each head.16Wo. 16 query heads. Local layers use 8 key/value heads of 256 values over a 1,024-token window. Global layers use 512-wide heads with 2 key/value heads, and keys double as values (attention_k_eq_v). Global layers rotate only a quarter of each head.Wo8,1922,816Attention output. 16 query heads. Local layers use 8 key/value heads of 256 values over a 1,024-token window. Global layers use 512-wide heads with 2 key/value heads, and keys double as values (attention_k_eq_v). Global layers rotate only a quarter of each head.Earlier context is dimmed; outlined columns are current.Current token computation.Attention output2,816CL
Model-specific details
Local layers (all except every 6th) · 25 repetitions
Sliding-window attention, then a dense feed-forward network (2,112 wide) beside 128 routed experts of 704 wide, 8 chosen per token. The two outputs are summed. There is no shared expert.
Global layers (6, 12, 18, 24, 30) · 5 repetitions
Full attention, then a dense feed-forward network (2,112 wide) beside 128 routed experts of 704 wide, 8 chosen per token. The two outputs are summed. There is no shared expert.
Attention and positions
16 query heads. Local layers use 8 key/value heads of 256 values over a 1,024-token window. Global layers use 512-wide heads with 2 key/value heads, and keys double as values (attention_k_eq_v). Global layers rotate only a quarter of each head.
Memory
Local layers: keys and values for 8 heads of 256 values over the last 1,024 tokens. Global layers: 2 heads of 512 values, with keys reused as values.

Audio joins the language stream

Explore the components

Sources for this map