Views
No views yet
1from transformers import AutoModelForMaskedLM, AutoTokenizer
2
3# See the `Caduceus` collection page on the hub for list of available models.
4model_name = "kuleshov-group/caduceus-ph_seqlen-131k_d_model-256_n_layer-16"
5tokenizer = AutoTokenizer.from_pretrained(model_name)
6model = AutoModelForMaskedLM.from_pretrained(model_name)1from transformers import AutoConfig, AutoModelForMaskedLM
2
3# Add any config overrides here, see the `config.json` file on the hub for details.
4config_overrides = {}
5# See the `Caduceus` collection page on the hub for list of available models.
6config = AutoConfig.from_pretrained(
7 "kuleshov-group/caduceus-ph_seqlen-131k_d_model-256_n_layer-16",
8 **config_overrides,
9)
10model = AutoModelForMaskedLM.from_config(config)@article{schiff2024caduceus,
title={Caduceus: Bi-Directional Equivariant Long-Range DNA Sequence Modeling},
author={Schiff, Yair and Kao, Chia-Hsiang and Gokaslan, Aaron and Dao, Tri and Gu, Albert and Kuleshov, Volodymyr},
journal={arXiv preprint arXiv:2403.03234},
year={2024}
}