BerenMillidge commited on
Commit
751ddef
1 Parent(s): 99fc66b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +25 -0
README.md CHANGED
@@ -45,6 +45,31 @@ outputs = model.generate(**input_ids, max_new_tokens=100)
45
  print(tokenizer.decode(outputs[0]))
46
  ```
47
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
48
  ## Citation
49
 
50
  If you find Zamba useful in your work please cite it as:
 
45
  print(tokenizer.decode(outputs[0]))
46
  ```
47
 
48
+ ## Model Details
49
+
50
+ Zamba utilizes a unique hybrid SSM architecture. This architecture consists of a backbone of Mamba layers interspersed with a shared attention layer. 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.
51
+
52
+
53
+ <center>
54
+ <img src="https://cdn-uploads.huggingface.co/production/uploads/65c05e75c084467acab2f84a/IGK562oVTFSOQbpLavu7E.png" width="400" alt="Zamba architecture">
55
+ </center>
56
+
57
+
58
+ ## Performance
59
+
60
+ We find that Zamba performs significantly better than existing open models (with open datasets and training details) at this scale. However, it performs slightly worse than the leading open-weight models at the 7B scale. Most of this difference derives from MMLU and reasoning evaluations. Zamba, however, is trained on significantly fewer tokens than these models and is the most sample efficient model in terms of performance per training tokens.
61
+
62
+
63
+ <center>
64
+ <img src="https://cdn-uploads.huggingface.co/production/uploads/65c05e75c084467acab2f84a/dQqaLzFwRKZOVSG3TfvsL.png" width="400" alt="Zamba performance">
65
+ </center>
66
+
67
+ Due to its SSM architecture, Zamba is extremely efficient in inference, substantially outperforming comparable 7B and 8B models in inference latency as well as memory cost of generation due to its substantially diminished KV cache.
68
+
69
+ <center>
70
+ <img src="https://cdn-uploads.huggingface.co/production/uploads/65c05e75c084467acab2f84a/cghYPnDbdzweT1b2RyiXA.png" width="400" alt="Zamba performance">
71
+ </center>
72
+
73
  ## Citation
74
 
75
  If you find Zamba useful in your work please cite it as: