Mistral-DNA
A small Mixtral-style mixture-of-experts language model pretrained on human DNA sequences.
Molecules, proteins and genomics · 1,036 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Parameters
- 16.8M
- Operations
- 1,036
- Framework
- PyTorch
- Recurrent
- No
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m18473
- Graph hash
- 573503c87e964bf48e62db2925e9d663a9466f2d503470c2cb0e480bed48d518
- Skeleton hash
- c557a3d607472a328a604af5a2f5c436293dd2dc7473f535967636aaac5b36bc
- Architecture hash
- a6ba4f02003f643f3440bb97a5af7b36a97c7478e4c26dae31858a630b1ef17e
- Diagram SHA-256
- e0c255fc481824cb6521d27918369b391350f63a54e4826b5430c35a4705f138
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
How this diagram was made
transformers.AutoModelForCausalLM.from_config()
What it is
Mistral-DNA is a language model for DNA sequences, built by modifying the Mixtral model (Mixtral-8x7B-v0.1) to reduce its number of parameters, mostly by removing layers, so that it could be trained on a GPU such as an RTX3090. The Hub card for Mistral-DNA-v1-17M-hg38 describes a pretrained generative DNA sequence model with 16.8M parameters. In that version both the number of layers and the hidden size were reduced. Like Mixtral, it is a transformer with a mixture of experts, and it reads DNA through a byte-fallback BPE tokenizer.
The card says pretraining used 10kb DNA sequences from the hg38 human genome assembly. The code also fine-tunes the pretrained model on specific classification tasks. Its other notebooks predict mutation effects with zero-shot learning and generate artificial sequences.
Key idea. Mistral-DNA shrank the Mixtral-8x7B-v0.1 transformer, mostly by removing layers, so a DNA language model could be trained on a GPU such as an RTX3090.
- mistral-dna
- mistral-dna-v1-17m-hg38
- dna language model
- genomic language model
- dna sequence model
- mixture of experts
- human genome
- hg38
- mutation effect prediction
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.