Downloads · 30 days
71
3% of all-time downloads
ib-ssm/mamba2-8b-3t-4k-hf
mamba2-8b-3t-4k-hf is a text generation model from ib-ssm. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
This repository contains a Hugging Face Transformers-compatible conversion of nvidia/mamba2-8b-3t-4k.
Downloads · 30 days
71
3% of all-time downloads
All-time downloads
2.1K
Public
Parameters
8.2B
16.5 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors16.5 GB · 100%
From the Hugging Face model README
This repository contains a Hugging Face Transformers-compatible conversion of nvidia/mamba2-8b-3t-4k.
Mamba2ForCausalLMT5Tokenizer wrapper rather than a byte-for-byte Megatron GPTSentencePiece cloneimport torch
from transformers import AutoModelForCausalLM, AutoTokenizer
repo_id = "ib-ssm/mamba2-8b-3t-4k-hf"
tokenizer = AutoTokenizer.from_pretrained(repo_id)
model = AutoModelForCausalLM.from_pretrained(
repo_id,
torch_dtype="auto",
device_map="auto",
)