Downloads · 30 days
12.6K
10% of all-time downloads
AntonV/mamba2-130m-hf
mamba2-130m-hf is a machine learning model from AntonV. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as mit.
Converted files of the original model at mamba2-130m to HF transformers compatible formats. Not affiliated with both the original authors or hf.
Downloads · 30 days
12.6K
10% of all-time downloads
All-time downloads
121K
Public
Parameters
129M
516 MB on disk
Likes
7
Public
Click a slice to open those files.
.safetensors516 MB · 100%
From the Hugging Face model README
Converted files of the original model at mamba2-130m to HF transformers compatible formats. Not affiliated with both the original authors or hf.
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("AntonV/mamba2-130m-hf")
model = AutoModelForCausalLM.from_pretrained("AntonV/mamba2-130m-hf")
input_ids = tokenizer("Hey how are you doing?", return_tensors="pt")["input_ids"]
out = model.generate(input_ids, max_new_tokens=10)
print(tokenizer.batch_decode(out))
BibTeX:
@inproceedings{mamba2,
title={Transformers are {SSM}s: Generalized Models and Efficient Algorithms Through Structured State Space Duality},
author={Dao, Tri and Gu, Albert},
booktitle={International Conference on Machine Learning (ICML)},
year={2024}
}