Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
"""Unit tests for Olmo3ArchitectureAdapter.

The adapter body is `pass` — it inherits its config, component mapping, and
weight conversions unchanged from Olmo2ArchitectureAdapter (covered by
test_olmo2_adapter.py). The only contract this subclass owns is the subclass
relationship itself.
"""

from transformer_lens.model_bridge.supported_architectures.olmo2 import (
Olmo2ArchitectureAdapter,
)
from transformer_lens.model_bridge.supported_architectures.olmo3 import (
Olmo3ArchitectureAdapter,
)


class TestOlmo3Inheritance:
"""Subclass relationship to Olmo2ArchitectureAdapter. The class body is
`pass`, so the inherited surface is the contract worth pinning. A future
accidental override would be caught here.
"""

def test_subclass_of_olmo2(self) -> None:
assert issubclass(Olmo3ArchitectureAdapter, Olmo2ArchitectureAdapter)
Loading