Instructions to use InstaDeepAI/ntv3_base_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use InstaDeepAI/ntv3_base_model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="InstaDeepAI/ntv3_base_model")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("InstaDeepAI/ntv3_base_model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from InstaDeepAI/ntv3_base_model: direct link, hf CLI and curl.
- Browser
- Download file 1.72 kB
-
https://huggingface.co/InstaDeepAI/ntv3_base_model/resolve/refs%2Fpr%2F2/README.md
- Command line
-
hf download hf://InstaDeepAI/ntv3_base_model@refs/pr/2/README.md
-
curl -L -H "Authorization: Bearer $HF_TOKEN" -o README.md https://huggingface.co/InstaDeepAI/ntv3_base_model/resolve/refs%2Fpr%2F2/README.md
1.72 kB
| library_name: transformers | |
| pipeline_tag: fill-mask | |
| tags: | |
| - genomics | |
| - dna | |
| - masked-lm | |
| - ntv3 | |
| - long-range | |
| - base-model | |
| license: other | |
| language: | |
| - code | |
| model_parameter_count: 7692475 | |
| > [!NOTE] | |
| > **This repo holds the code for the initial NTv3 release (2025).** The 2025 checkpoints load their modelling code from here. The [revised NTv3 models](https://huggingface.co/collections/InstaDeepAI/nucleotide-transformer-v3-6ab15d5afd21c2a62b45117e) ship their own code in each repo. | |
| # InstaDeepAI/ntv3_base_model | |
| **Unified base model repository for NTv3 models.** | |
| This repository contains shared modeling code used by both: | |
| - **Pre-trained models** (masked language models) | |
| - **Post-trained models** (conditioned multi-species models with functional genomics heads) | |
| **Note:** This repo should not be used standalone. It provides modeling code that is referenced by individual model checkpoints via `trust_remote_code=True`. | |
| ## Contents | |
| | File | Purpose | | |
| |------|---------| | |
| | `configuration_ntv3_pretrained.py` | Config class: `Ntv3PreTrainedConfig` | | |
| | `configuration_ntv3_posttrained.py` | Config classes: `DiscreteConditionedNTv3Config`, `NTv3PostTrainedConfig` | | |
| | `modeling_ntv3_pretrained.py` | Pre-trained model: `NTv3PreTrained` | | |
| | `modeling_ntv3_posttrained.py` | Post-trained model: `NTv3PostTrained` with conditioned towers and heads | | |
| | `tokenization_ntv3.py` | Tokenizer: `NTv3Tokenizer` (DNA) | | |
| ## Architecture | |
| - U-Net style conv tower → Transformer stack → deconv tower → LM head | |
| - Post-trained models add adaptive layer norms and multi-species prediction heads | |
| - Tokenizer: character-level over A T C G N + specials (`<unk>` `<pad>` `<mask>` `<cls>` `<eos>` `<bos>`) | |