Run this model with HF Jobs
Run zmzfpc/biomamba-130m on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/zmzfpc/biomamba-130m. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/zmzfpc/biomamba-130m on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use zmzfpc/biomamba-130m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MambaSSM
How to use zmzfpc/biomamba-130m with MambaSSM:
from mamba_ssm import MambaLMHeadModel model = MambaLMHeadModel.from_pretrained("zmzfpc/biomamba-130m") - Notebooks
- Google Colab
- Kaggle
BioMamba-130m
Mamba2-130m continued-pretrained on PubMed/MEDLINE abstracts, mixed with Wikipedia and C4 to prevent general-domain forgetting.
This is the pretraining-only checkpoint. Downstream SFT variants are released separately.
Loading
The checkpoint is saved in mamba-ssm native format (not the transformers
Mamba2Config format), so load it with mamba-ssm directly:
from mamba_ssm.models.mixer_seq_simple import MambaLMHeadModel
from transformers import AutoTokenizer
model = MambaLMHeadModel.from_pretrained("zmzfpc/biomamba-130m", device="cuda", dtype="bfloat16")
tokenizer = AutoTokenizer.from_pretrained("zmzfpc/biomamba-130m")
AutoModelForCausalLM.from_pretrained will not work on this config.
Training data
- PubMed / MEDLINE abstracts:
cyrilzakka/pubmed-medline(revision432681e19469e93e6c42878d5f41fec400974fb8) - Wikipedia:
wikimedia/wikipedia, config20231101.en(revisionb04c8d1ceb2f5cd4588862100d08de323dccfbaa) - C4:
allenai/c4, configen(revision1588ec454efa1a09f29cd18ddd04fe05fc8653a2)
Citation
Paper: BioMamba: Domain-Adaptive Biomedical Language Models (arXiv:2408.02600). Code: https://github.com/LeoYML/BioMamba
@article{yue2024biomamba,
title = {{BioMamba}: Domain-Adaptive Biomedical Language Models},
author = {Yue, Ling and Zhu, Mingzhi and Xing, Sixue and Pan, Shaowu and
Chenthamarakshan, Vijil and Wang, Yanbo and Cao, Yunning and
Das, Payel and Fu, Tianfan},
journal = {arXiv preprint arXiv:2408.02600},
year = {2024}
}
- Downloads last month
- 6