AntonV / mamba2-2.7b-av

huggingface.co
Total runs: 10
24-hour runs: 0
7-day runs: 0
30-day runs: -9
Model's Last Updated: June 16 2024

Introduction of mamba2-2.7b-av

Model Details of mamba2-2.7b-av

mamba2-2.7b-av

Introduction

This is a mirror model to mamba2-2.7b which is compatible with mamba2-torch , a Hugging Face compatible mamba2 library that is not dependent on the original cuda wheels of the original mamba repo . Credit goes to the original authors of Mamba2 and the transformers library by Hugging Face. Without their work, this would not be possible.

NOTE: mamba2-torch offers different optimisation paths to use:

  • Triton kernels and causal-conv1d ("fastest")
  • Triton kernels only (default)
  • Pure PyTorch
How to Get Started with the Model

You can follow the instructions in the mamba2-torch repo for a more detailed explanation. First of all, you should install the mamba2-torch lib:

git clone https://github.com/vasqu/mamba2-torch.git
cd mamba2-torch
pip install .

Then you can download this repository here via git lfs and then use the files locally the following way (after installing mamba2-torch):

from transformers import AutoTokenizer
from mamba2_torch import Mamba2Model, Mamba2ForCausalLM, Mamba2Config

device = "cuda"
mamba2_hf_path = "<path-to-converted-model>"

model = Mamba2ForCausalLM.from_pretrained(mamba2_hf_path, local_files_only=True).to(device)
tokenizer = AutoTokenizer.from_pretrained(mamba2_hf_path, local_files_only=True)

input_ids = tokenizer("Hey how are you doing?", return_tensors="pt")["input_ids"].to(device)

# expected output (2.7b): `["Hey how are you doing? I'm doing good. I'm just trying to"]`
out = model.generate(input_ids, max_new_tokens=10)
print(tokenizer.batch_decode(out))
Citation

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}
}

Runs of AntonV mamba2-2.7b-av on huggingface.co

10
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
-9
30-day runs

More Information About mamba2-2.7b-av huggingface.co Model

More mamba2-2.7b-av license Visit here:

https://choosealicense.com/licenses/mit

mamba2-2.7b-av huggingface.co

mamba2-2.7b-av huggingface.co is an AI model on huggingface.co that provides mamba2-2.7b-av's model effect (), which can be used instantly with this AntonV mamba2-2.7b-av model. huggingface.co supports a free trial of the mamba2-2.7b-av model, and also provides paid use of the mamba2-2.7b-av. Support call mamba2-2.7b-av model through api, including Node.js, Python, http.

mamba2-2.7b-av huggingface.co Url

https://huggingface.co/AntonV/mamba2-2.7b-av

AntonV mamba2-2.7b-av online free

mamba2-2.7b-av huggingface.co is an online trial and call api platform, which integrates mamba2-2.7b-av's modeling effects, including api services, and provides a free online trial of mamba2-2.7b-av, you can try mamba2-2.7b-av online for free by clicking the link below.

AntonV mamba2-2.7b-av online free url in huggingface.co:

https://huggingface.co/AntonV/mamba2-2.7b-av

mamba2-2.7b-av install

mamba2-2.7b-av is an open source model from GitHub that offers a free installation service, and any user can find mamba2-2.7b-av on GitHub to install. At the same time, huggingface.co provides the effect of mamba2-2.7b-av install, users can directly use mamba2-2.7b-av installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

mamba2-2.7b-av install url in huggingface.co:

https://huggingface.co/AntonV/mamba2-2.7b-av

Url of mamba2-2.7b-av

mamba2-2.7b-av huggingface.co Url

Provider of mamba2-2.7b-av huggingface.co

AntonV
ORGANIZATIONS

Other API from AntonV

huggingface.co

Total runs: 12.7K
Run Growth: -1.8K
Growth Rate: -13.81%
Updated:September 19 2024
huggingface.co

Total runs: 3.1K
Run Growth: -345
Growth Rate: -11.20%
Updated:October 16 2024
huggingface.co

Total runs: 1.3K
Run Growth: 1.1K
Growth Rate: 81.59%
Updated:October 17 2024
huggingface.co

Total runs: 259
Run Growth: -27
Growth Rate: -10.42%
Updated:October 16 2024