Coverage for transformer_lens/model_bridge/supported_architectures/olmo3.py: 100%
3 statements
« prev ^ index » next coverage.py v7.10.1, created at 2026-04-30 01:33 +0000
« prev ^ index » next coverage.py v7.10.1, created at 2026-04-30 01:33 +0000
1"""OLMo 3 architecture adapter."""
3from transformer_lens.model_bridge.supported_architectures.olmo2 import (
4 Olmo2ArchitectureAdapter,
5)
8class Olmo3ArchitectureAdapter(Olmo2ArchitectureAdapter):
9 """Architecture adapter for OLMo 3 / OLMo 3.1 models.
11 OLMo 3 is architecturally identical to OLMo 2 at the weight and component level.
12 The only difference is sliding window attention on some layers (configurable via
13 layer_types), which is handled by the HF model's forward pass (mask creation)
14 and does not affect weight structure or component mapping.
15 """
17 pass