Views
No views yet
1from transformers import AutoTokenizer
2from sparse_modern_bert import CustomModernBertModel
3
4model_id = "sardinelab/SparseModernBERT-alpha2.0"
5tokenizer = AutoTokenizer.from_pretrained(model_id)
6model = CustomModernBertModel.from_pretrained(model_id, trust_remote_code=True)1@article{goncalves2025adasplash,
2 title={AdaSplash: Adaptive Sparse Flash Attention},
3 author={Gon\c{c}alves, Nuno and Treviso, Marcos and Martins, Andr\'e F. T.},
4 journal={arXiv preprint arXiv:2502.12082},
5 year={2025}
6}