benchang1110 / mamba2-370m-hf

huggingface.co
Total runs: 31
24-hour runs: 0
7-day runs: 0
30-day runs: 19
Model's Last Updated: August 21 2025

Introduction of mamba2-370m-hf

Model Details of mamba2-370m-hf

How to Get Started with the Model

Use the code below to get started with the model.

import torch  
from transformers import AutoTokenizer  
from transformers import Mamba2ForCausalLM


if __name__ == "__main__":
    device = "cuda"
    model_id = "benchang1110/mamba2-370m-hf"
    tokenizer = AutoTokenizer.from_pretrained(model_id)
    model = Mamba2ForCausalLM.from_pretrained(model_id, torch_dtype=torch.bfloat16, device_map=device)
    model.eval()

    with torch.no_grad():
      text = input("Input: ")
      input_ids = tokenizer(text, return_tensors="pt").to(device)
      output = model.generate(**input_ids, max_new_tokens=1024, do_sample=False)
      print(tokenizer.decode(output[0], skip_special_tokens=True))

Conversion script: mamba2hf.py

Runs of benchang1110 mamba2-370m-hf on huggingface.co

31
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
19
30-day runs

More Information About mamba2-370m-hf huggingface.co Model

More mamba2-370m-hf license Visit here:

https://choosealicense.com/licenses/apache-2.0

mamba2-370m-hf huggingface.co

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

benchang1110 mamba2-370m-hf online free

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

benchang1110 mamba2-370m-hf online free url in huggingface.co:

https://huggingface.co/benchang1110/mamba2-370m-hf

mamba2-370m-hf install

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

mamba2-370m-hf install url in huggingface.co:

https://huggingface.co/benchang1110/mamba2-370m-hf

Url of mamba2-370m-hf

Provider of mamba2-370m-hf huggingface.co

benchang1110
ORGANIZATIONS

Other API from benchang1110

huggingface.co

Total runs: 12
Run Growth: 6
Growth Rate: 50.00%
Updated:November 13 2023
huggingface.co

Total runs: 11
Run Growth: 0
Growth Rate: 0.00%
Updated:February 24 2024