mstar.model.glm52.components.indexer#
GLM-5.2’s DSA indexer: the index keys and queries its FULL layers hand the DSA resource
(mstar/engine/resources/dsa), which scores them and picks each query’s top-k.
Functions
|
FULL layers run the indexer; SHARED layers reuse the last FULL selection. |
Classes
|
DSA indexer projections for one FULL layer: the key each token stores, and each query row's heads and head weights. |
- class mstar.model.glm52.components.indexer.Glm52Indexer(config)[source]#
Bases:
ModuleDSA indexer projections for one FULL layer: the key each token stores, and each query row’s heads and head weights.
- Parameters:
config (Glm52ModelConfig)
- mstar.model.glm52.components.indexer.is_full_indexer_layer(config, layer_idx)[source]#
FULL layers run the indexer; SHARED layers reuse the last FULL selection.
- Parameters:
config (Glm52ModelConfig)
layer_idx (int)
- Return type: