Instructions to use multimolecule/splicebert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MultiMolecule
How to use multimolecule/splicebert with MultiMolecule:
pip install multimolecule
from multimolecule import AutoModel, AutoTokenizer tokenizer = AutoTokenizer.from_pretrained("multimolecule/splicebert") model = AutoModel.from_pretrained("multimolecule/splicebert") inputs = tokenizer("UAGCUUAUCAGACUGAUGUUGA", return_tensors="pt") outputs = model(**inputs) embeddings = outputs.last_hidden_stateimport multimolecule from transformers import pipeline predictor = pipeline("fill-mask", model="multimolecule/splicebert") output = predictor("UAGCUUAUCAG<mask>CUGAUGUUGA") - Notebooks
- Google Colab
- Kaggle
File size: 897 Bytes
1aeaeeb | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | {
"add_cross_attention": false,
"architectures": [
"SpliceBertForPreTraining"
],
"attention_dropout": 0.1,
"bos_token_id": 1,
"classifier_dropout": null,
"dtype": "float32",
"eos_token_id": 2,
"head": null,
"hidden_act": "gelu",
"hidden_dropout": 0.1,
"hidden_size": 512,
"id2label": null,
"initializer_range": 0.02,
"intermediate_size": 2048,
"is_decoder": false,
"label2id": null,
"layer_norm_eps": 1e-12,
"lm_head": null,
"mask_token_id": 4,
"max_position_embeddings": 1026,
"model_type": "splicebert",
"null_token_id": 5,
"num_attention_heads": 16,
"num_hidden_layers": 6,
"num_labels": 1,
"output_hidden_states": true,
"pad_token_id": 0,
"position_embedding_type": "absolute",
"tie_word_embeddings": true,
"transformers_version": "5.9.0",
"type_vocab_size": 2,
"unk_token_id": 3,
"use_cache": true,
"vocab_size": 28
}
|