Instructions to use multimolecule/deepcpgdna-hou2016-mesc with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MultiMolecule
How to use multimolecule/deepcpgdna-hou2016-mesc with MultiMolecule:
pip install multimolecule
from multimolecule import AutoModel, AutoTokenizer tokenizer = AutoTokenizer.from_pretrained("multimolecule/deepcpgdna-hou2016-mesc") model = AutoModel.from_pretrained("multimolecule/deepcpgdna-hou2016-mesc") inputs = tokenizer("ACTCCCCTGCCCTCAACAAGATGTTTTGCCAACTGGCCAAGACCTGCCCTGTGCAGCTGTGGGTTGATTCCACACCCCCGCCCGGCACCCGCGTCCGCGCCATGGCCATCTACAAGCAGTCACAGCACATGACGGAGGTTGTGAGGCGCTGCCCCCACCATGAGCGCTGCTCAGATAGCGATGG", return_tensors="pt") outputs = model(**inputs) embeddings = outputs.last_hidden_state - Notebooks
- Google Colab
- Kaggle
| { | |
| "architectures": [ | |
| "DeepCpgDnaForSequencePrediction" | |
| ], | |
| "bos_token_id": 1, | |
| "bottleneck_size": 128, | |
| "conv_channels": [ | |
| 128, | |
| 256 | |
| ], | |
| "conv_kernel_sizes": [ | |
| 11, | |
| 3 | |
| ], | |
| "conv_pool_sizes": [ | |
| 4, | |
| 2 | |
| ], | |
| "dtype": "float32", | |
| "eos_token_id": 2, | |
| "head": { | |
| "act": null, | |
| "bias": true, | |
| "dropout": 0.0, | |
| "hidden_size": 128, | |
| "layer_norm_eps": 1e-12, | |
| "loss_weight": null, | |
| "num_labels": 6, | |
| "output_name": null, | |
| "problem_type": "binary", | |
| "transform": null, | |
| "transform_act": "gelu", | |
| "type": null | |
| }, | |
| "hidden_act": "relu", | |
| "hidden_dropout": 0.2, | |
| "hidden_size": 128, | |
| "id2label": { | |
| "0": "mESC1", | |
| "1": "mESC2", | |
| "2": "mESC3", | |
| "3": "mESC4", | |
| "4": "mESC5", | |
| "5": "mESC6" | |
| }, | |
| "label2id": { | |
| "mESC1": 0, | |
| "mESC2": 1, | |
| "mESC3": 2, | |
| "mESC4": 3, | |
| "mESC5": 4, | |
| "mESC6": 5 | |
| }, | |
| "mask_token_id": 4, | |
| "model_type": "deepcpgdna", | |
| "null_token_id": 5, | |
| "num_labels": 6, | |
| "pad_token_id": 0, | |
| "sequence_length": 1001, | |
| "tie_word_embeddings": true, | |
| "transformers_version": "5.9.0", | |
| "unk_token_id": 3, | |
| "vocab_size": 5 | |
| } | |