Hybrid Attention and State Space Models › Key Parameters

Michael BrenndoerferNovember 17, 20261 min read
Language AI HandbookAll chapters
Part 19 of 67Alternative Sequence and Generative Architectures
Chapter 134Hybrid Attention and State Space Models › Key Parameters
Reading section 11 of 12 · Key Parameters · 1 minSection 11 of 12 · 1 min

Section 11 of 12 · 1 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

The key parameters for hybrid attention and state space models are:

  • n_attn_layers / n_ssm_layers: The number of attention and state space layers. The attention count scales the growing term in the cache model.
  • d_inner: The state space inner width. Larger values increase the recurrent-state size and the prefill projection cost.
  • d_state gives the number of recurrent coordinates per channel. At fixed precision, more coordinates increase the recurrent payload and the upper bound on its representable bit patterns.
  • n_kv_heads gives the number of key-value heads. At fixed head width and storage precision, fewer heads shrink the cache.
  • d_conv gives the number of convolution-history entries allocated per channel. It sets the size of the separate convolution buffer, which stays fixed as context length grows.

The next chapter, Token-Free and Byte-Level Language Models, takes a different route away from the fixed subword vocabulary, and the one after that turns to diffusion, where the sequential order of generation itself is rethought. Both face the same methodological demand that this chapter has tried to model: name the workload, name the denominator, and separate the measurement from the prediction.

Comments

Add to the conversation

A question, a correction, or an example from your own work.

No comments yet. Be the first to share your thoughts!

Newsletter

Stay up to date

Get new articles, book updates, and notes on AI and technology.

Unsubscribe at any time. Privacy policy