agront-1b-H3K27me3

我要开发同款
匿名用户2024年07月31日
15阅读
开发技术esm、Pytorch
所属分类ai、genomics、biology、DNA
开源地址https://modelscope.cn/models/zhangtaolab/agront-1b-H3K27me3
授权协议CC-BY-NC-SA-4.0

作品详情

植物基础DNA大语言模型 (Plant foundation DNA large language models)

The plant DNA large language models (LLMs) contain a series of foundation models based on different model architectures, which are pre-trained on various plant reference genomes.
All the models have a comparable model size between 90 MB and 150 MB, BPE tokenizer is used for tokenization and 8000 tokens are included in the vocabulary.

开发者: zhangtaolab

Model Sources

  • Repository: Plant DNA LLMs
  • Manuscript: [Versatile applications of foundation DNA large language models in plant genomes]()

Architecture

The model is trained based on the InstaDeepAI/agro-nucleotide-transformer-1b model.

This model is fine-tuned for predicting H3K27me3 histone modification.

How to use

Install the runtime library first:

pip install transformers

Here is a simple code for inference:

from transformers import AutoModelForSequenceClassification, AutoTokenizer, pipeline

model_name = 'agront-1b-H3K27me3'
# load model and tokenizer
model = AutoModelForSequenceClassification.from_pretrained(f'zhangtaolab/{model_name}', trust_remote_code=True)
tokenizer = AutoTokenizer.from_pretrained(f'zhangtaolab/{model_name}', trust_remote_code=True)

# inference
sequences = ['ATCTTTTAAACCCTACTTTTCTTCACATTATTCATAATAGGCACTCTCAACTCATGGTTTAGTGGAGTTACACAATACCCAAGGTTGGGTCAAGGCCAAGACGTGATTGGTTTCTTCATTGGGCACCCTCAACTTCTGATTTTGTCCTAAGTTGAGGTAAACATGTGCAAATCTTGAATCTCCAACACCACCCGACGGAAAACTCTTCCTTTTGCCTAACGCTTTTGCTTAGCGATTGTATATGT',
             'GCATAATCGAGCTTGATGCCCATGTTTTTGCACCAGAGTTTTACCTCGTCGGCCGTAAAGTTCGTGCCGTTATCAGTGATGATGTTGTGGGGGACGCCGTAACAGTGTACAACCCCGGATATAAAGTCTATCACCGGTCCAGATTCGGCCGTCTCAACAGGCTTGGCTTCTATCCATTTGGT']
pipe = pipeline('text-classification', model=model, tokenizer=tokenizer,
                trust_remote_code=True, top_k=None)
results = pipe(sequences)
print(results)

Training data

We use EsmForSequenceClassification to fine-tune the model.
Detailed training procedure can be found in our manuscript.

Hardware

Model was trained on a NVIDIA RTX4090 GPU (24 GB).

声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论