borzoiV2-distilled-2

From 524,288 bp of DNA, this model predicts genomic tracks at 32 bp resolution. It has one output head per species dataset:

  • human (GRCh38): 4,316 tracks of RNA-seq (including one merged track per GTEx tissue), DNase-seq, ATAC-seq and Fiber-seq accessibility;
  • mouse (mm10): Borzoi's 828 mouse tracks;
  • 12 further heads for cat, chimpanzee, cow, dog (two assemblies), goat, horse, macaque, mouse (mouse_ms), pig, rabbit and sheep, mostly RNA-seq. Each one reads its own species' genome assembly.

It is a Borzoi/Flashzoi-style network with about 249 M parameters and the same architecture as johahi/borzoiV2-distilled. It is a second student: it starts from borzoiV2-distilled and was distilled further from 16 longer-trained teacher models, following the AlphaGenome recipe. Four of those teachers are at johahi/borzoiV2-teacher-replicate-0 to -3. On our GTEx eQTL benchmarks it performs about the same as borzoiV2-distilled.

Code, installation and examples: https://github.com/johahi/borzoiV2

import torch
from borzoiv2 import BorzoiV2, one_hot

model = BorzoiV2.from_pretrained("johahi/borzoiV2-distilled-2").cuda()
x = one_hot(seq)[None].cuda()                       # seq: 524,288 bp of GRCh38
with torch.autocast("cuda", dtype=torch.bfloat16):
    y = model.predict(x)                             # human head: [1, 4316, 6144], forward + reverse complement averaged
    y_cat = model.predict(x_cat, head="cat")         # x_cat: 524,288 bp of the cat assembly
print(model.head_tracks("human"))                    # what each output row is

Files

file content
model.safetensors fp32 weights
config.json architecture hyperparameters, output heads and provenance
tracks.tsv one row per output of every head: head, description, assay, strand partner, output transform, genome assembly
MD5SUMS checksums

Training

  • Teachers: 16 copies of one architecture, identical except for the random seed, each trained for 300k steps at batch 16 on every genomic fold. The data were human and mouse coverage tracks plus the other species' datasets above. Low-mappability bases were masked out of the loss.
  • Initialisation: johahi/borzoiV2-distilled, a student of 64 such teachers trained for 150k steps each (300k student steps at batch 64).
  • Student (this model): 100k further steps at batch 64, each teacher on 4 of the 64 GPUs, on randomly mutated inputs labelled by the teachers (teacher outputs averaged over both strands). The learning rate was re-warmed over 10k steps to 2e-4, then decayed on a cosine to 2e-6 at step 400k.
  • Head rows that never received a training loss were removed (stock CAGE/ChIP rows of the human and mouse heads). The remaining weights are unchanged.

Intended use and limitations

The model is for research on gene regulation and variant effect prediction.

  • No held-out regions. The teachers were trained on every genomic fold, so the model has seen every region of every genome it was trained on. Any benchmark on these genomes measures seen-region performance.
  • It was trained and evaluated under bf16 autocast on GPU. Small distal variant effects are close to bf16 rounding error.
  • There is no cell-type input: each biosample is a separate output track.
  • It is not for clinical use.
Downloads last month
2
Safetensors
Model size
0.2B params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support