facebook/convnext-tiny-224
Original28.6Mparameters
Fixture361.5Kparameters
Layer stacks1compared
Findings0to review
✓ Same architecture, smaller
Every module class, layer kind and checked property of the original is in the fixture.
Layer stacks
One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.
convnext.encoder.stages
Original · 4
Fixture · 4
| Kind | Original | Fixture | |
|---|---|---|---|
| Layer | 4 | 4 | ✓ kept |
Where the parameters are
Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.
Original
Fixture
| Component | Original | Share | Fixture | Share |
|---|---|---|---|---|
| convnext.encoder.stages | 27.8M | 97.3% | 231.5K | 64.0% |
| classifier | 769.0K | 2.7% | 129.0K | 35.7% |
| convnext.embeddings | 4.9K | 0.0% | 816 | 0.2% |
| convnext.layernorm | 1.5K | 0.0% | 256 | 0.1% |
Preserved properties
| Config | Property | Original | Fixture | |
|---|---|---|---|---|
| model | model_type | convnext | convnext | ✓ kept |
| model | hidden_act | gelu | gelu | ✓ kept |
| model | image_size | 224 | 224 | ✓ kept |
| model | patch_size | 4 | 4 | ✓ kept |
| model | num_channels | 3 | 3 | ✓ kept |
Module classes
Instances of each class in the built model (prefix ConvNext omitted).
| Class | Original | Fixture |
|---|---|---|
| Linear | 37 | 9 |
| Conv2d | 22 | 8 |
| LayerNorm | 22 | 8 |
| Layer | 18 | 4 |
| GELUActivation | 18 | 4 |
| Identity | 18 | 4 |
| ModuleList | 9 | 9 |
| Stage | 4 | 4 |
| Embeddings | 1 | 1 |
| Encoder | 1 | 1 |
| ForImageClassification | 1 | 1 |
| Model | 1 | 1 |
| LayerNorm | 1 | 1 |
Config changes
2 fields changed, 21 unchanged.
| Field | Original | Fixture |
|---|---|---|
| depths | [3, 3, 9, 3] | [1, 1, 1, 1] |
| hidden_sizes | [96, 192, 384, 768] | [16, 32, 64, 128] |