The Rabbit Hole / AI / Model architectures
Strands Agents · Architecture mapStrands Decider
Five Qwen and Gemma backbones with a learned pointer head that scores supplied options, without a vocabulary readout.
v1-2610 · Strands Decider release timeline
Inside Strands Decider
Inside linear attention · DeltaNet layers
Earlier context dimmed · current token bright · dashed path carries state to the next step.
Inside grouped-query attention · Attention layers
Earlier context dimmed · current token bright · dashed regions contain cached entries.
Model-specific details
- DeltaNet layers · 18 repetitions
- DeltaNet layers.
- Attention layers · 6 repetitions
- Attention layers.
- Attention and positions
- Eight query heads share two KV heads of width 256; DeltaNet uses 16 key and 16 value heads of width 128. The causal backbone is retained.
- Memory
- Shared state prefill is reused across question branches. This is a one-pass decision readout, not an autoregressive generation cache.
Inside multi-query attention · Local layers (own keys and values)
Earlier context dimmed · current token bright · dashed regions contain cached entries.
Inside multi-query attention · Global layers (own keys and values)
Earlier context dimmed · current token bright · dashed regions contain cached entries.
Inside multi-query attention · Local layers (shared keys and values)
Earlier context dimmed · current token bright · dashed regions contain cached entries.
Inside multi-query attention · Global layers (shared keys and values)
Earlier context dimmed · current token bright · dashed regions contain cached entries.
Model-specific details
- Local layers (own keys and values) · 12 repetitions
- Sliding-window attention over 512 tokens, then a dense gated feed-forward network 6,144 wide.
- Per-layer embedding
- A 256-wide vector looked up per token for this layer, gated, projected and added after the feed-forward network.
- Global layers (own keys and values) · 3 repetitions
- Full attention over the context, then a dense gated feed-forward network 6,144 wide.
- Per-layer embedding
- A 256-wide vector looked up per token for this layer, gated, projected and added after the feed-forward network.
- Local layers (shared keys and values) · 16 repetitions
- Sliding-window attention over 512 tokens, then a dense gated feed-forward network 12,288 wide (double width). Keys and values come from an earlier layer; this layer computes none of its own.
- Reuses keys and values of layer 14
- Layers 16 to 35 compute no keys or values. They read those of the last earlier layer of the same type.
- Per-layer embedding
- A 256-wide vector looked up per token for this layer, gated, projected and added after the feed-forward network.
- Global layers (shared keys and values) · 4 repetitions
- Full attention over the context, then a dense gated feed-forward network 12,288 wide (double width). Keys and values come from an earlier layer; this layer computes none of its own.
- Reuses keys and values of layer 15
- Layers 16 to 35 compute no keys or values. They read those of the last earlier layer of the same type.
- Per-layer embedding
- A 256-wide vector looked up per token for this layer, gated, projected and added after the feed-forward network.
- Attention and positions
- 8 query heads. Local layers use 1 key/value head of 256 values over a 512-token window. Global layers use 512-wide heads, also with 1 key/value head and their own value projection (keys are not reused as values). Global layers rotate only a quarter of each head. The last 20 layers compute no keys or values of their own.
- Memory
- Local layers: keys and values for 1 head of 256 values over the last 512 tokens. Global layers: 1 head of 512 values. Layers 16 to 35 hold no cache: they read the keys and values of layer 14 (local) and layer 15 (global), so only 15 layers keep one.
Inside grouped-query attention · Local layers (own keys and values)
Earlier context dimmed · current token bright · dashed regions contain cached entries.
Inside grouped-query attention · Global layers (own keys and values)
Earlier context dimmed · current token bright · dashed regions contain cached entries.
Inside grouped-query attention · Local layers (shared keys and values)
Earlier context dimmed · current token bright · dashed regions contain cached entries.
Inside grouped-query attention · Global layers (shared keys and values)
Earlier context dimmed · current token bright · dashed regions contain cached entries.
Model-specific details
- Local layers (own keys and values) · 20 repetitions
- Sliding-window attention over 512 tokens, then a dense gated feed-forward network 10,240 wide.
- Per-layer embedding
- A 256-wide vector looked up per token for this layer, gated, projected and added after the feed-forward network.
- Global layers (own keys and values) · 4 repetitions
- Full attention over the context, then a dense gated feed-forward network 10,240 wide.
- Per-layer embedding
- A 256-wide vector looked up per token for this layer, gated, projected and added after the feed-forward network.
- Local layers (shared keys and values) · 15 repetitions
- Sliding-window attention over 512 tokens, then a dense gated feed-forward network 10,240 wide. Keys and values come from an earlier layer; this layer computes none of its own.
- Reuses keys and values of layer 23
- Layers 25 to 42 compute no keys or values. They read those of the last earlier layer of the same type.
- Per-layer embedding
- A 256-wide vector looked up per token for this layer, gated, projected and added after the feed-forward network.
- Global layers (shared keys and values) · 3 repetitions
- Full attention over the context, then a dense gated feed-forward network 10,240 wide. Keys and values come from an earlier layer; this layer computes none of its own.
- Reuses keys and values of layer 24
- Layers 25 to 42 compute no keys or values. They read those of the last earlier layer of the same type.
- Per-layer embedding
- A 256-wide vector looked up per token for this layer, gated, projected and added after the feed-forward network.
- Attention and positions
- 8 query heads. Local layers use 2 key/value heads of 256 values over a 512-token window. Global layers use 512-wide heads, also with 2 key/value heads and their own value projection. Global layers rotate only a quarter of each head. The last 18 layers compute no keys or values of their own.
- Memory
- Local layers: keys and values for 2 heads of 256 values over the last 512 tokens. Global layers: 2 heads of 512 values. Layers 25 to 42 hold no cache: they read the keys and values of layer 23 (local) and layer 24 (global), so only 24 layers keep one.
Inside grouped-query attention · Local layers (all except every 6th)
Earlier context dimmed · current token bright · dashed regions contain cached entries.
Inside multi-query attention · Global layers (6, 12, 18, 24, 30, 36, 42, 48)
Earlier context dimmed · current token bright · dashed regions contain cached entries.
Model-specific details
- Local layers (all except every 6th) · 40 repetitions
- Sliding-window attention, then a dense feed-forward network 15,360 wide.
- Global layers (6, 12, 18, 24, 30, 36, 42, 48) · 8 repetitions
- Full attention, then a dense feed-forward network 15,360 wide.
- 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 1 key/value head, 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: 1 head of 512 values, with keys reused as values.
Inside grouped-query attention · Local layers (all except every 6th)
Earlier context dimmed · current token bright · dashed regions contain cached entries.
Inside grouped-query attention · Global layers (6, 12, 18, 24, 30)
Earlier context dimmed · current token bright · dashed regions contain cached entries.
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.
Read the options directly
- The vocabulary head is removed. The answer position supplies a learned query; the final token of each option supplies a learned key. Their scores become calibrated probabilities over the supplied options.
- Current v1 releases average three 256-dimensional pointer heads (768 projected values in the saved configuration) and use rank-48 LoRA adapters. The released context limit is 4,096 tokens.
- Each backbone keeps its causal ordering. Options can see earlier options; this is not a conversion to bidirectional attention.
- The Qwen 2B variant can retain a frozen vision tower with
--vision; the four Gemma decision variants are text-only. - Downloads contain the adapter and pointer head, loaded alongside the named base model. Copies under the Amazon organisation are mirrors, not additional variants.
Explore the components
- Embeddings: giving every token a meaning
- Residual connections: when more layers made things worse
- A whole LLM, layer by layer
- RMSNorm: keeping a token's scale under control
- Decision modelscoming soonRead probabilities for named options in a single forward pass and return a choice, rating or yes/no answer.
- Vision encoders: how can image patches join the text?
- Gated DeltaNet: write the correction, not the whole fact
- Transformer layers: attention is only half of what you need
- Attention, from scratch
- The KV cache: why LLMs remember every key and value
- RoPE: position as a rotation
- Grouped-query attention (GQA): sharing keys and values in groups
- Sliding-window attention (SWA): a cache that stops growing
- QK normalisation (QK-Norm) and soft-capping
- Per-layer embeddings (PLE): could each layer look up the token again?
- KV sharing across layers: could later layers reuse an earlier cache?
- Audio inputs: how can a language model listen?
- Multi-query attention (MQA): one key and value for every head
- Mixture of experts (MoE): a big model that uses only part of itself
- Routing: selecting experts and weighting their work