google/fnet-base
Original83.5Mparameters
Fixture2.2Mparameters
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.
fnet.encoder.layer
Original · 12
Fixture · 2
| Kind | Original | Fixture | |
|---|---|---|---|
| Layer | 12 | 2 | ✓ 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 |
|---|---|---|---|---|
| fnet.encoder.layer | 56.7M | 67.9% | 33.7K | 1.6% |
| fnet.embeddings | 25.6M | 30.6% | 2.1M | 96.6% |
| cls.predictions | 624.1K | 0.7% | 36.3K | 1.7% |
| fnet.pooler | 590.6K | 0.7% | 4.2K | 0.2% |
| cls.seq_relationship | 1.5K | 0.0% | 130 | 0.0% |
Preserved properties
| Config | Property | Original | Fixture | |
|---|---|---|---|---|
| model | model_type | fnet | fnet | ✓ kept |
| model | vocab_size | 32000 | 32000 | ✓ kept |
| model | tie_word_embeddings | True | True | ✓ kept |
| model | hidden_act | gelu_new | gelu_new | ✓ kept |
| model | max_position_embeddings | 512 | 512 | ✓ kept |
Module classes
Instances of each class in the built model (prefix FNet omitted).
| Class | Original | Fixture |
|---|---|---|
| Linear | 29 | 9 |
| LayerNorm | 26 | 6 |
| Dropout | 13 | 3 |
| NewGELUActivation | 13 | 3 |
| BasicFourierTransform | 12 | 2 |
| BasicOutput | 12 | 2 |
| FourierTransform | 12 | 2 |
| Intermediate | 12 | 2 |
| Layer | 12 | 2 |
| Output | 12 | 2 |
| Embedding | 3 | 3 |
| Embeddings | 1 | 1 |
| Encoder | 1 | 1 |
| ForPreTraining | 1 | 1 |
| LMPredictionHead | 1 | 1 |
| Model | 1 | 1 |
| Pooler | 1 | 1 |
| PreTrainingHeads | 1 | 1 |
| PredictionHeadTransform | 1 | 1 |
| ModuleList | 1 | 1 |
| Tanh | 1 | 1 |
Config changes
3 fields changed, 25 unchanged.
| Field | Original | Fixture |
|---|---|---|
| hidden_size | 768 | 64 |
| intermediate_size | 3072 | 128 |
| num_hidden_layers | 12 | 2 |