Skip to content

Add config tests for Bloom architecture adapter#1310

Open
indrayani21 wants to merge 5 commits into
TransformerLensOrg:devfrom
indrayani21:add-architecture-config-tests
Open

Add config tests for Bloom architecture adapter#1310
indrayani21 wants to merge 5 commits into
TransformerLensOrg:devfrom
indrayani21:add-architecture-config-tests

Conversation

@indrayani21
Copy link
Copy Markdown

Summary

Adds unit tests for the Bloom architecture adapter in:

tests/unit/model_bridge/supported_architectures/test_bloom_adapter.py

Tests Added

  • Config attribute tests
  • Component mapping tests
  • Weight conversion tests
  • split_qkv_matrix tests
  • Factory registration tests

Validation

Passed:

pytest tests/unit/model_bridge/supported_architectures/test_bloom_adapter.py -v
ruff check tests/unit/model_bridge/supported_architectures/test_bloom_adapter.py

brendanlong and others added 5 commits April 20, 2026 14:50
* Fix type of HookedTransformerConfig.device

This is typed as `Optional[str]` but sometimes returns `torch.device`.
Updated the code to just return the `str` instead of wrapping with a
device.

I'm not confident that every function which takes a device will
always be passed a string, so I didn't change functions like
warn_if_mps.

Found while working on TransformerLensOrg#1219

* more cleanup

* 3.0 CI Bugs (TransformerLensOrg#1261)

* Fixing `utils` imports

* skip gated notebooks on PR from forks

* Updating notebooks

* Ensure LLaMA only runs when HF_TOKEN is available

---------

Co-authored-by: jlarson4 <jonahalarson@comcast.net>
@jlarson4
Copy link
Copy Markdown
Collaborator

@indrayani21 This is excellent! I can merge as soon as the format issues surfaced by Format Check are resolved.

@jlarson4 jlarson4 changed the base branch from main to dev May 18, 2026 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants