Zetatech/pvt-tiny-224
Original13.2Mparameters
Fixture13.2Mparameters
Layer stacks2compared
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.
pvt.encoder.patch_embeddings
Original · 4
Fixture · 4
| Kind | Original | Fixture | |
|---|---|---|---|
| Conv2d | 4 | 4 | ✓ kept |
pvt.encoder.block
Original · 4
Fixture · 4
| Kind | Original | Fixture | |
|---|---|---|---|
| Conv2d | 3 | 3 | ✓ kept |
| no Conv2d | 1 | 1 | ✓ 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 |
|---|---|---|---|---|
| pvt.encoder.block | 11.5M | 86.7% | 11.5M | 86.7% |
| pvt.encoder.patch_embeddings | 1.2M | 9.4% | 1.2M | 9.4% |
| classifier | 513.0K | 3.9% | 513.0K | 3.9% |
| pvt.encoder | 1.0K | 0.0% | 1.0K | 0.0% |
Preserved properties
| Config | Property | Original | Fixture | |
|---|---|---|---|---|
| model | model_type | pvt | pvt | ✓ kept |
| model | hidden_act | gelu | gelu | ✓ kept |
| model | image_size | 224 | 224 | ✓ kept |
| model | num_channels | 3 | 3 | ✓ kept |
Module classes
Instances of each class in the built model (prefix Pvt omitted).
| Class | Original | Fixture |
|---|---|---|
| Linear | 49 | 49 |
| Dropout | 28 | 28 |
| LayerNorm | 27 | 27 |
| Conv2d | 10 | 10 |
| GELUActivation | 8 | 8 |
| Identity | 8 | 8 |
| Attention | 8 | 8 |
| EfficientSelfAttention | 8 | 8 |
| FFN | 8 | 8 |
| Layer | 8 | 8 |
| SelfOutput | 8 | 8 |
| ModuleList | 6 | 6 |
| PatchEmbeddings | 4 | 4 |
| Encoder | 1 | 1 |
| ForImageClassification | 1 | 1 |
| Model | 1 | 1 |
Config changes
0 fields changed, 28 unchanged.
| Field | Original | Fixture |
|---|