Fill-Mask
Transformers
Safetensors
prokbert
bioinformatics
genomics
sequence embedding
genomic language models
nucleotide
dna-sequence
promoter-prediction
phage
custom_code
Run this model with HF Jobs
Run neuralbioinfo/prokbert-mini 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/neuralbioinfo/prokbert-mini. 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/neuralbioinfo/prokbert-mini 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 neuralbioinfo/prokbert-mini with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use neuralbioinfo/prokbert-mini with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="neuralbioinfo/prokbert-mini", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForMaskedLM model = AutoModelForMaskedLM.from_pretrained("neuralbioinfo/prokbert-mini", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files1234567101 unmodified lines10911011111211311424 unmodified lines139140141142143## ProkBERT-mini ModelProkBERT-mini-k6s1 is part of the ProkBERT family of genomic language models, specifically designed for microbiome applications. This model, optimized for DNA sequence analysis. This model can provide robust and high resolution solutions.### Model Details**Developed by:** Neural Bioinformatics Research Group101 unmodified linesexcept ImportError:!pip install prokbertprint("Installed ProkBERT.")### Training Data and Process24 unmodified lines- **Model issues:** [GitHub repository link](https://github.com/nbrg-ppcu/prokbert)- **Feedback and inquiries:** [obalasz@gmail.com](mailto:obalasz@gmail.com)---license: cc-by-nc-4.012345678910111213141516171819202122232425262728293031323334353637383940414243101 unmodified lines14514614714814915015124 unmodified lines176177178179180181182183184185186187188189190191192193---license: cc-by-nc-4.0---## ProkBERT-mini ModelProkBERT-mini-k6s1 is part of the ProkBERT family of genomic language models, specifically designed for microbiome applications. This model, optimized for DNA sequence analysis. This model can provide robust and high resolution solutions.## Simple Usage ExampleThe following example demonstrates how to use the ProkBERT-mini model for processing a DNA sequence:```pythonfrom transformers import MegatronBertForMaskedLMfrom prokbert.prokbert_tokenizer import ProkBERTTokenizer# Tokenization parameterstokenization_parameters = {'kmer': 6,'shift': 1}# Initialize the tokenizer and modeltokenizer = ProkBERTTokenizer(tokenization_params=tokenization_parameters, operation_space='sequence')model = MegatronBertForMaskedLM.from_pretrained("nerualbioinfo/prokbert-mini-k6s2")# Example DNA sequencesequence = 'ATGTCCGCGGGACCT'# Tokenize the sequenceinputs = tokenizer(sequence, return_tensors="pt")# Ensure that inputs have a batch dimensioninputs = {key: value.unsqueeze(0) for key, value in inputs.items()}# Generate outputs from the modeloutputs = model(**inputs)```### Model Details**Developed by:** Neural Bioinformatics Research Group101 unmodified linesexcept ImportError:!pip install prokbertprint("Installed ProkBERT.")```### Training Data and Process24 unmodified lines- **Model issues:** [GitHub repository link](https://github.com/nbrg-ppcu/prokbert)- **Feedback and inquiries:** [obalasz@gmail.com](mailto:obalasz@gmail.com)## ReferenceIf you use ProkBERT-mini in your research, please cite the following paper:@ARTICLE{10.3389/fmicb.2023.1331233,AUTHOR={Ligeti, Balázs and Szepesi-Nagy, István and Bodnár, Babett and Ligeti-Nagy, Noémi and Juhász, János},TITLE={ProkBERT family: genomic language models for microbiome applications},JOURNAL={Frontiers in Microbiology},VOLUME={14},YEAR={2024},URL={https://www.frontiersin.org/articles/10.3389/fmicb.2023.1331233},DOI={10.3389/fmicb.2023.1331233},ISSN={1664-302X},ABSTRACT={...}}
README.md+52-2