nomic-ai/nomic-embed-text-v1.5
Original136.7Mparameters
Fixture2.0Mparameters
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.
layers
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 |
|---|---|---|---|---|
| layers | 113.3M | 82.9% | 82.4K | 4.0% |
| embeddings.word_embeddings | 23.4M | 17.1% | 2.0M | 95.9% |
| embeddings.LayerNorm | 1.5K | 0.0% | 128 | 0.0% |
| embeddings.token_type_embeddings | 1.5K | 0.0% | 128 | 0.0% |
Preserved properties
| Config | Property | Original | Fixture | |
|---|---|---|---|---|
| model | RoPE type | default | default | ✓ kept |
| model | model_type | nomic_bert | nomic_bert | ✓ kept |
| model | vocab_size | 30528 | 30528 | ✓ kept |
| model | hidden_act | silu | silu | ✓ kept |
| model | max_position_embeddings | 2048 | 2048 | ✓ kept |
Module classes
Instances of each class in the built model (prefix NomicBert omitted).
| Class | Original | Fixture |
|---|---|---|
| Linear | 84 | 14 |
| Dropout | 25 | 5 |
| LayerNorm | 25 | 5 |
| Attention | 12 | 2 |
| Layer | 12 | 2 |
| MLP | 12 | 2 |
| SiLUActivation | 12 | 2 |
| Embedding | 2 | 2 |
| ModuleList | 1 | 1 |
| Embeddings | 1 | 1 |
| Model | 1 | 1 |
| RotaryEmbedding | 1 | 1 |
Config changes
9 fields changed, 57 unchanged.
| Field | Original | Fixture |
|---|---|---|
| head_dim | 64 | 16 |
| hidden_size | 768 | 64 |
| intermediate_size | 3072 | 128 |
| n_embd | 768 | 64 |
| n_head | 12 | 4 |
| n_inner | 3072 | 128 |
| n_layer | 12 | 2 |
| num_attention_heads | 12 | 4 |
| num_hidden_layers | 12 | 2 |