Literature · RaphaelMourad
Mistral-DNA-v1-138M-bacteria
A pretrained mixture-of-experts generative DNA language model trained on bacterial genomes.
What Mistral-DNA-v1-138M-bacteria is
Mistral-DNA-v1-138M-bacteria is a pretrained generative DNA language model designed for genomics and biological sequence analysis, developed by Raphaèl Mourad. It provides sequence embeddings and generative capabilities for bacterial nucleotide sequences.
The model adapts the Mistral architecture for genomics by reducing the layer count and hidden dimensions, employing an eight-expert mixture-of-experts configuration totalling 138.5 million parameters. It was trained on roughly 700 bacterial genomes parsed into 10-kilobase DNA segments.
How it works
Mistral-DNA-v1-138M-bacteria is a transformer model derived from Mistral-7B-v0.1, structured with 8 experts each containing 17.31 million parameters to form a 138.5-million-parameter network. It incorporates grouped-query attention and sliding-window attention mechanisms alongside a byte-fallback byte-pair encoding (BPE) tokenizer identical to DNABERT-2. The model outputs sequence representations with a hidden dimension of 256.
Pretraining was conducted on 10kb DNA sequences sampled from approximately 700 bacterial genomes.
Key facts
- Total parameters
- 138.5M (17.31M parameters × 8 experts)
- Architecture
- Transformer with grouped-query attention and sliding-window attention
- Tokenizer
- Byte-fallback BPE tokenizer (as in DNABERT-2)
- Hidden size
- 256
- Pretraining data
- Around 700 bacterial genomes with 10kb DNA sequences
- Task
- Pretrained generative base model (text-generation)
What you can use it for
- Bacterial DNA sequence embedding
- Extract 256-dimensional nucleotide sequence representations or pooled feature vectors from DNA sequences for downstream genomic analyses.
- Generative bacterial sequence modelling
- Serve as a base foundation model for generating or continuing bacterial DNA sequences.
- Downstream task fine-tuning
- Act as a starting point to be adapted or fine-tuned on specific bacterial genomics prediction problems.
Run it here
We list this model but cannot run it yet: it has not been test-run here yet.
Everything on this page still applies. Running it needs a loader for this repository, not a bigger machine.
Strengths and limits
Good at
- Utilises an efficient mixture-of-experts design with 8 experts to balance parameter capacity and computational footprint.
- Incorporates sliding-window attention and grouped-query attention for efficient sequence processing.
- Uses a byte-fallback BPE tokenizer shared with DNABERT-2 to process nucleotide sequences.
Watch out for
- Pretrained specifically on bacterial genomes, which may limit generalisation to eukaryotic or viral genomic data.
- Pretrained on 10kb sequences, which may require adaptation or chunking for much longer genomic contexts.
- Requires a stable Transformers library release (version 4.34.0 or newer) and execution with trust_remote_code enabled.
Inputs and outputs
You provide
Prompt
The model continues from here.
You get back
The model's completion.
Licence
Check the licence before commercial use · apache-2.0
The apache-2.0 licence carries terms worth reading before you depend on it.
Questions
Can I use Mistral-DNA-v1-138M-bacteria commercially?
Check the licence before commercial use. The apache-2.0 licence carries terms worth reading before you depend on it.
What is the parameter size of the model?
The model has 138.5 million parameters arranged across 8 experts of 17.31 million parameters each.
What kind of data was used to pretrain the model?
It was pretrained on 10-kilobase DNA segments extracted from approximately 700 bacterial genomes.
What is the output embedding size?
The model produces hidden states with a hidden dimension size of 256.
What tokenizer does Mistral-DNA-v1-138M-bacteria use?
It uses a byte-fallback BPE tokenizer, which is the same tokenizer used by DNABERT-2.
Written from Mistral-DNA-v1-138M-bacteria's own documentation (model card). Statements citing a figure that does not appear there are removed before publication. Licence and running details come from our registry.
