qanthony-z
commited on
Commit
•
0b9ddaa
1
Parent(s):
7542ad8
Update README.md
Browse files
README.md
CHANGED
@@ -7,7 +7,7 @@ license: apache-2.0
|
|
7 |
|
8 |
Zamba2-1.2B-instruct is obtained from Zamba2-1.2B by fine-tuning on instruction-following and chat datasets.
|
9 |
|
10 |
-
Zamba2-1.2B-Instruct is a hybrid model composed of state-space and transformer blocks. It is based on the [Zamba2-1.2B](https://huggingface.co/Zyphra/Zamba2-1.2B) architecture.
|
11 |
|
12 |
## Quick start
|
13 |
|
@@ -20,7 +20,7 @@ To download Zamba2-1.2B, clone Zyphra's fork of transformers:
|
|
20 |
4. `pip install accelerate`
|
21 |
|
22 |
|
23 |
-
You can run the model without using the optimized
|
24 |
|
25 |
To run on CPU, please specify `use_mamba_kernels=False` when loading the model using ``AutoModelForCausalLM.from_pretrained``.
|
26 |
|
@@ -63,7 +63,7 @@ Zamba2-1.2B-Instruct achieves leading instruction-following and multi-turn chat
|
|
63 |
| SmolLM-1.7B-Instruct | 1.7B | 43.37 | 16.53 |
|
64 |
| Qwen2-1.5B-Instruct | 1.5B | N/A | 34.68 |
|
65 |
|
66 |
-
Zamba2-1.2B
|
67 |
|
68 |
<center>
|
69 |
<img src="https://cdn-uploads.huggingface.co/production/uploads/65c05e75c084467acab2f84a/iu46KgopP6rDrvDpXdlNj.png" width="700" alt="Zamba performance">
|
@@ -85,7 +85,7 @@ And memory overhead
|
|
85 |
|
86 |
## Model Details
|
87 |
|
88 |
-
Zamba2-1.2B utilizes and extends our original Zamba hybrid SSM-attention architecture. The core Zamba architecture consists of a backbone of
|
89 |
|
90 |
<center>
|
91 |
<img src="https://cdn-uploads.huggingface.co/production/uploads/65c05e75c084467acab2f84a/Vay6htbnBcySR3Z6NEgwj.png" width="300" alt="Zamba architecture">
|
|
|
7 |
|
8 |
Zamba2-1.2B-instruct is obtained from Zamba2-1.2B by fine-tuning on instruction-following and chat datasets.
|
9 |
|
10 |
+
Zamba2-1.2B-Instruct is a hybrid model composed of state-space ([Mamba2](https://github.com/state-spaces/mamba)) and transformer blocks. It is based on the [Zamba2-1.2B](https://huggingface.co/Zyphra/Zamba2-1.2B) architecture.
|
11 |
|
12 |
## Quick start
|
13 |
|
|
|
20 |
4. `pip install accelerate`
|
21 |
|
22 |
|
23 |
+
You can run the model without using the optimized Mamba2 kernels, but it is **not** recommended as it will result in significantly higher latency and memory usage.
|
24 |
|
25 |
To run on CPU, please specify `use_mamba_kernels=False` when loading the model using ``AutoModelForCausalLM.from_pretrained``.
|
26 |
|
|
|
63 |
| SmolLM-1.7B-Instruct | 1.7B | 43.37 | 16.53 |
|
64 |
| Qwen2-1.5B-Instruct | 1.5B | N/A | 34.68 |
|
65 |
|
66 |
+
Moreover, due to its unique hybrid SSM architecture, Zamba2-1.2B-Instruct achieves extremely low inference latency and rapid generation with a significantly smaller memory footprint than comparable transformer-based models.
|
67 |
|
68 |
<center>
|
69 |
<img src="https://cdn-uploads.huggingface.co/production/uploads/65c05e75c084467acab2f84a/iu46KgopP6rDrvDpXdlNj.png" width="700" alt="Zamba performance">
|
|
|
85 |
|
86 |
## Model Details
|
87 |
|
88 |
+
Zamba2-1.2B utilizes and extends our original Zamba hybrid SSM-attention architecture. The core Zamba architecture consists of a backbone of Mamba2 layers interleaved with one or more shared attention layers. This attention has shared weights to minimize the parameter cost of the model. We find that concatenating the original model embeddings to the input to this attention block improves performance, likely due to better maintenance of information across depth. The Zamba2 architecture also applies LoRA projection matrices to the shared transformer blocks to gain some additional expressivity in each block and allow each shared block to specialize slightly to its own unique position while keeping the additional parameter overhead small.
|
89 |
|
90 |
<center>
|
91 |
<img src="https://cdn-uploads.huggingface.co/production/uploads/65c05e75c084467acab2f84a/Vay6htbnBcySR3Z6NEgwj.png" width="300" alt="Zamba architecture">
|