apple/mobilevit-xx-small
Original1.3Mparameters
Fixture1.3Mparameters
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.
mobilevit.encoder.layer
Original · 5
Fixture · 5
| Kind | Original | Fixture | |
|---|---|---|---|
| MobileNetLayer | 2 | 2 | ✓ kept |
| LayerNorm, Linear, Attention … | 3 | 3 | ✓ 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 |
|---|---|---|---|---|
| mobilevit.encoder.layer | 924.3K | 72.7% | 924.3K | 72.7% |
| classifier | 321.0K | 25.2% | 321.0K | 25.2% |
| mobilevit.conv_1x1_exp | 26.2K | 2.1% | 26.2K | 2.1% |
| mobilevit.conv_stem | 464 | 0.0% | 464 | 0.0% |
Preserved properties
| Config | Property | Original | Fixture | |
|---|---|---|---|---|
| model | model_type | mobilevit | mobilevit | ✓ kept |
| model | hidden_act | silu | silu | ✓ kept |
| model | image_size | 256 | 256 | ✓ kept |
| model | patch_size | 2 | 2 | ✓ kept |
| model | num_channels | 3 | 3 | ✓ kept |
Module classes
Instances of each class in the built model (prefix MobileViT omitted).
| Class | Original | Fixture |
|---|---|---|
| Linear | 55 | 55 |
| Conv2d | 35 | 35 |
| ConvLayer | 35 | 35 |
| SiLUActivation | 34 | 34 |
| BatchNorm2d | 32 | 32 |
| Dropout | 28 | 28 |
| LayerNorm | 21 | 21 |
| Attention | 9 | 9 |
| Intermediate | 9 | 9 |
| Output | 9 | 9 |
| SelfAttention | 9 | 9 |
| SelfOutput | 9 | 9 |
| TransformerLayer | 9 | 9 |
| InvertedResidual | 7 | 7 |
| ModuleList | 6 | 6 |
| Layer | 3 | 3 |
| Transformer | 3 | 3 |
| MobileNetLayer | 2 | 2 |
| Encoder | 1 | 1 |
| ForImageClassification | 1 | 1 |
| Model | 1 | 1 |
Config changes
0 fields changed, 30 unchanged.
| Field | Original | Fixture |
|---|