Skip to content

Add config tests for DeepSeek V2 architecture adapter#1529

Merged
jlarson4 merged 1 commit into
TransformerLensOrg:devfrom
SanjidMzi:test/deepseek-v2-adapter-config
Jul 22, 2026
Merged

Add config tests for DeepSeek V2 architecture adapter#1529
jlarson4 merged 1 commit into
TransformerLensOrg:devfrom
SanjidMzi:test/deepseek-v2-adapter-config

Conversation

@SanjidMzi

@SanjidMzi SanjidMzi commented Jul 22, 2026

Copy link
Copy Markdown

Part of #1302.

This PR adds unit tests for DeepSeekV2ArchitectureAdapter covering the config flags it
sets, the component-mapping structure and HF module paths, the optional flags
that distinguish the V2-full and V2-Lite attention paths, and the (empty)
weight-conversion set.

Behavioural coverage (forward pass, hook firing) already lives in
tests/integration/model_bridge/test_deepseek_v2_adapter.py; these tests
complement it at the unit tier, following the pattern of the existing
test_granite_adapter.py / test_granite_moe_hybrid_adapter.py.

make format, uv run mypy ., and make unit-test all pass locally.

@jlarson4

Copy link
Copy Markdown
Collaborator

Looks good, thanks @SanjidMzi

@jlarson4
jlarson4 merged commit ee1c10c into TransformerLensOrg:dev Jul 22, 2026
25 checks passed
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.

2 participants