Run this model with HF Jobs
Run yangheng/rnafm 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/yangheng/rnafm. 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/yangheng/rnafm 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 yangheng/rnafm with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MultiMolecule
How to use yangheng/rnafm with MultiMolecule:
pip install multimolecule
from multimolecule import AutoModel, AutoTokenizer tokenizer = AutoTokenizer.from_pretrained("yangheng/rnafm") model = AutoModel.from_pretrained("yangheng/rnafm") inputs = tokenizer("UAGCAUAUCAGACUGAUGUUGA", return_tensors="pt") outputs = model(**inputs) embeddings = outputs.last_hidden_stateimport multimolecule from transformers import pipeline predictor = pipeline("fill-mask", model="yangheng/rnafm") output = predictor("UAGC<mask>UAUCAGACUGAUGUUGA") - Notebooks
- Google Colab
- Kaggle
Download config.json from yangheng/rnafm: direct link, hf CLI and curl.
- Browser
- Download file 1.3 kB
-
https://huggingface.co/yangheng/rnafm/resolve/main/config.json
- Command line
-
hf download hf://yangheng/rnafm/config.json
-
curl -L -o config.json https://huggingface.co/yangheng/rnafm/resolve/main/config.json
1.3 kB
| { | |
| "architectures": [ | |
| "RnaFmForPreTraining" | |
| ], | |
| "attention_dropout": 0.1, | |
| "bos_token_id": 1, | |
| "codon": true, | |
| "emb_layer_norm_before": true, | |
| "eos_token_id": 2, | |
| "head": { | |
| "act": null, | |
| "bias": true, | |
| "dropout": 0.0, | |
| "hidden_size": 640, | |
| "layer_norm_eps": 1e-12, | |
| "num_labels": 1, | |
| "output_name": null, | |
| "problem_type": null, | |
| "transform": null, | |
| "transform_act": "gelu" | |
| }, | |
| "hidden_act": "gelu", | |
| "hidden_dropout": 0.1, | |
| "hidden_size": 640, | |
| "id2label": { | |
| "0": "LABEL_0" | |
| }, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 5120, | |
| "label2id": { | |
| "LABEL_0": 0 | |
| }, | |
| "layer_norm_eps": 1e-12, | |
| "lm_head": { | |
| "act": null, | |
| "bias": true, | |
| "dropout": 0.0, | |
| "hidden_size": 640, | |
| "layer_norm_eps": 1e-12, | |
| "output_name": null, | |
| "transform": "nonlinear", | |
| "transform_act": "gelu" | |
| }, | |
| "mask_token_id": 4, | |
| "max_position_embeddings": 1026, | |
| "model_type": "rnafm", | |
| "null_token_id": 5, | |
| "num_attention_heads": 20, | |
| "num_hidden_layers": 12, | |
| "pad_token_id": 0, | |
| "position_embedding_type": "absolute", | |
| "token_dropout": false, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.41.2", | |
| "unk_token_id": 3, | |
| "use_cache": true, | |
| "vocab_size": 26 | |
| } | |