state-spaces_mamba-130m-hf
state-spaces · View on Hugging Face ↗
Model card
The complete upstream card, rendered from this payload's README.md — the same hash-verified bytes the torrent distributes. Images and off-site links are removed; the original card on Hugging Face carries them.
library_name: transformers tags: []
Mamba
This repository contains the transfromers compatible mamba-2.8b. The checkpoints are untouched, but the full config.json and tokenizer are pushed to this repo.
Usage
You need to install transformers from main until transformers=4.39.0 is released.
pip install git+https://github.com/huggingface/transformers@main
We also recommend you to install both causal_conv_1d and mamba-ssm using:
pip install causal-conv1d>=1.2.0
pip install mamba-ssm
If any of these two is not installed, the "eager" implementation will be used. Otherwise the more optimised cuda kernels will be used.
Generation
You can use the classic generate API:
>>> from transformers import MambaConfig, MambaForCausalLM, AutoTokenizer
>>> import torch
>>> tokenizer = AutoTokenizer.from_pretrained("state-spaces/mamba-130m-hf")
>>> model = MambaForCausalLM.from_pretrained("state-spaces/mamba-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))
["Hey how are you doing?\n\nI'm so glad you're here."]
PEFT finetuning example
In order to finetune using the peft library, we recommend keeping the model in float32!
from datasets import load_dataset
from trl import SFTTrainer
from peft import LoraConfig
from transformers import AutoTokenizer, AutoModelForCausalLM, TrainingArguments
tokenizer = AutoTokenizer.from_pretrained("state-spaces/mamba-130m-hf")
model = AutoModelForCausalLM.from_pretrained("state-spaces/mamba-130m-hf")
dataset = load_dataset("Abirate/english_quotes", split="train")
training_args = TrainingArguments(
output_dir="./results",
num_train_epochs=3,
per_device_train_batch_size=4,
logging_dir='./logs',
logging_steps=10,
learning_rate=2e-3
)
lora_config = LoraConfig(
r=8,
target_modules=["x_proj", "embeddings", "in_proj", "out_proj"],
task_type="CAUSAL_LM",
bias="none"
)
trainer = SFTTrainer(
model=model,
tokenizer=tokenizer,
args=training_args,
peft_config=lora_config,
train_dataset=dataset,
dataset_text_field="quote",
)
trainer.train()
Magnet link
Opens the swarm directly in your torrent client — no file download needed. Copy-paste works too:
magnet:?xt=urn:btih:ea24568afec0b84cf39075735fa6554027112376&dn=state-spaces_mamba-130m-hfOpen magnet in torrent client · infohash ea24568afec0b84cf39075735fa6554027112376
Files & hashes
| Path | Size | sha1 | sha256 |
|---|---|---|---|
| README.md | 2.3 KB (2,357 B) | 51d86be3dcb873003c3048029a6d3148f09ad06d | 7f2f803907d92a538c2f0d6c9eb5e7b2c40bbb66a73311dacb3f7947c392b5fd |
| config.json | 895 B (895 B) | 65cacc293f83d920b3a79690ce835426950f8b4d | 784825b6b6cdde47a1602278db0e66d6764169af4a8e662404701bc636a2686a |
| generation_config.json | 137 B (137 B) | 7711d625ad3a8016f08d55aa9c64171dae37a12c | 248fa733db101c19a8e3c2f311a180fdd7c769323ec2873edf7060cec9f5ee32 |
| model.safetensors | 492.6 MB (516,567,560 B) | 62f54c71c96860d2ea50abbfb2c2d27c4b7fe6b8 | 1a5ed29c492ef4d485df3b7c2c8109771696589855b2162ad1ba618b6067cbea |
| tokenizer.json | 2.0 MB (2,113,837 B) | f4b9ef760738eaa3ff5a29eb338b4da006fe1761 | b074ad869d4f45d1265ca5c9814f78604f3d7e187acc063b15dd232b27585fcf |
| tokenizer_config.json | 4.7 KB (4,793 B) | 0f8da8f0bf3fbd3b8d570f77d7206b6089d4fdda | 9d7016c33747c6309346e59bd7bf63bfc33c9d9366ecb7e514b3b84dc6b46acb |
Cite this release
- Canonical URL
- https://aiseedbank.org/models/state-spaces_mamba-130m-hf/
- Slug
- state-spaces_mamba-130m-hf
- Infohash
- ea24568afec0b84cf39075735fa6554027112376
- License
- no license recorded
- Signing key fingerprint
- 85a3b32c3712427b
Every file carries a locally computed sha256 — verify a download against the signed sums: state-spaces_mamba-130m-hf.SHA256SUMS (+ minisign signature).
Provenance
| Upstream repository | state-spaces/mamba-130m-hf |
|---|---|
| Revision (pinned) | 1e76775f628fbf1350fbe4dbb3d971ba64af25a1 |
| Fetched at | 2026-09-04T06:14:48Z |
| License at fetch | no license recorded |
| Snapshot tool | huggingface · seedbank 0.1.0 |
Trackers
- udp://announce.aitorrent.org:6969/announce
- http://announce.aitorrent.org:7070/announce
- udp://announce2.aitorrent.org:6970/announce
- http://announce2.aitorrent.org:7071/announce
- udp://tracker.opentrackr.org:1337/announce
- udp://open.demonii.com:1337/announce
- udp://open.stealth.si:80/announce
- udp://exodus.desync.com:6969/announce
- udp://tracker.torrent.eu.org:451/announce
✓ verified · rehash-vs-hf-metadata at 2026-09-04T06:14:55Z
no license recorded494.7 MB (518,689,579 bytes)transformerssafetensorsmambatext-generationtext-generation-inferenceendpoints_compatible