Downloads · 30 days
37
1% of all-time downloads
kojima-lab/molcrawl-rna-gpt2-medium
molcrawl-rna-gpt2-medium is a text generation model from kojima-lab. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
GPT-2 medium (345M parameters) foundation model pre-trained on RNA gene expression sequences from the MolCrawl dataset.
Downloads · 30 days
37
1% of all-time downloads
All-time downloads
6K
Public
Parameters
428M
4.6 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.7 GB · 100%
From the Hugging Face model README
GPT-2 medium (345M parameters) foundation model pre-trained on RNA gene expression sequences from the MolCrawl dataset.
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model = AutoModelForCausalLM.from_pretrained("kojima-lab/molcrawl-rna-gpt2-medium")
tokenizer = AutoTokenizer.from_pretrained("kojima-lab/molcrawl-rna-gpt2-medium")
# Generate next gene-id tokens (RNA gene-list model)
prompt = "ENSG00000000003 ENSG00000000005 ENSG00000000419"
inputs = tokenizer(prompt, return_tensors="pt")
with torch.no_grad():
output_ids = model.generate(
**inputs,
max_new_tokens=50,
do_sample=True,
temperature=0.8,
eos_token_id=None, # HF config.json has legacy eos_token_id=0; disable early stop
pad_token_id=0,
)
print(tokenizer.decode(output_ids[0], skip_special_tokens=True))
Training pipeline, configuration files, and data preparation scripts are available in the MolCrawl GitHub repository: https://github.com/mmai-framework-lab/MolCrawl
This model is released under the APACHE-2.0 license.
If you use this model, please cite:
@misc{molcrawl_rna_gpt2_medium,
title={molcrawl-rna-gpt2-medium},
author={{RIKEN}},
year={2026},
publisher={{Hugging Face}},
url={{https://huggingface.co/kojima-lab/molcrawl-rna-gpt2-medium}}
}