Instructions to use InstaDeepAI/agro-nucleotide-transformer-1b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use InstaDeepAI/agro-nucleotide-transformer-1b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="InstaDeepAI/agro-nucleotide-transformer-1b")# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("InstaDeepAI/agro-nucleotide-transformer-1b") model = AutoModelForMaskedLM.from_pretrained("InstaDeepAI/agro-nucleotide-transformer-1b") - Notebooks
- Google Colab
- Kaggle
How to train a classification model?
#3
by z911741 - opened
Dear author, I want to use this model to train a classification model, but have been unable to succeed. I completely in accordance with the "https://github.com/huggingface/notebooks/blob/main/examples/nucleotide_transformer_dna_sequence_modelling.ipynb" It was written to do that, but it never worked. Could you please share a sample code? The error message I got was as follows.