The dataset viewer is not available for this split.
Error code: StreamingRowsError
Exception: CastError
Message: Couldn't cast
tufB: struct<uniprot: string, start: int64, end: int64, n_res: int64, product: string, ss3: string>
child 0, uniprot: string
child 1, start: int64
child 2, end: int64
child 3, n_res: int64
child 4, product: string
child 5, ss3: string
rpoB: struct<uniprot: string, start: int64, end: int64, n_res: int64, product: string, ss3: string>
child 0, uniprot: string
child 1, start: int64
child 2, end: int64
child 3, n_res: int64
child 4, product: string
child 5, ss3: string
rpoC: struct<uniprot: string, start: int64, end: int64, n_res: int64, product: string, ss3: string>
child 0, uniprot: string
child 1, start: int64
child 2, end: int64
child 3, n_res: int64
child 4, product: string
child 5, ss3: string
pspA: struct<uniprot: string, start: int64, end: int64, n_res: int64, product: string, ss3: string>
child 0, uniprot: string
child 1, start: int64
child 2, end: int64
child 3, n_res: int64
child 4, product: string
child 5, ss3: string
ompG: struct<uniprot: string, start: int64, end: int64, n_res: int64, product: string, ss3: string>
child 0, uniprot: string
child 1, start: int64
child 2, end: int64
child 3, n_res: int64
child 4, product: string
child 5, ss3: string
crp: struct<uniprot: string, start: int64, end: int64, n_res: int64, product: string, ss3: string>
child 0, uniprot: string
child 1, start: int64
child 2, end: int64
child 3, n_res: int64
child 4, product: string
child 5, ss3: string
groL: struct<uniprot: string, start: int64, end: int64, n_res: int64, product: string, ss3: string>
child 0, uniprot: string
child 1, start: int64
child 2, end: int64
child 3, n_res: int64
child 4, product: string
child 5, ss3: string
n_features: int64
overlap: int64
n_windows: int64
sae_checkpoint: string
topology: string
layer: string
nnz: int64
encode: string
sae_sha256: string
values_dtype: string
per_base: int64
stride: int64
nnz_frac: double
model: string
organism: string
accession: string
rows: string
indices_dtype: string
assembly: string
note: string
window: int64
n_rows: int64
cols: string
indptr_dtype: string
genome_length: int64
to
{'accession': Value('string'), 'organism': Value('string'), 'assembly': Value('string'), 'topology': Value('string'), 'genome_length': Value('int64'), 'n_rows': Value('int64'), 'n_features': Value('int64'), 'nnz': Value('int64'), 'nnz_frac': Value('float64'), 'window': Value('int64'), 'overlap': Value('int64'), 'stride': Value('int64'), 'n_windows': Value('int64'), 'model': Value('string'), 'layer': Value('string'), 'sae_checkpoint': Value('string'), 'sae_sha256': Value('string'), 'encode': Value('string'), 'rows': Value('string'), 'cols': Value('string'), 'note': Value('string'), 'indptr_dtype': Value('string'), 'values_dtype': Value('string'), 'indices_dtype': Value('string'), 'per_base': Value('int64')}
because column names don't match
Traceback: Traceback (most recent call last):
File "/src/services/worker/src/worker/utils.py", line 149, in get_rows_or_raise
return get_rows(
dataset=dataset,
...<4 lines>...
column_names=column_names,
)
File "/src/libs/libcommon/src/libcommon/utils.py", line 272, in decorator
return func(*args, **kwargs)
File "/src/services/worker/src/worker/utils.py", line 129, in get_rows
rows_plus_one = list(itertools.islice(safe_iter(ds, dataset=dataset), rows_max_number + 1))
File "/src/services/worker/src/worker/utils.py", line 489, in safe_iter
yield from ds.decode(False) if ds.features else ds
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2818, in __iter__
for key, example in ex_iterable:
^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2355, in __iter__
for key, pa_table in self._iter_arrow():
~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2380, in _iter_arrow
for key, pa_table in self.ex_iterable._iter_arrow():
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 536, in _iter_arrow
for key, pa_table in iterator:
^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 419, in _iter_arrow
for key, pa_table in self.generate_tables_fn(**gen_kwags):
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 343, in _generate_tables
self._cast_table(pa_table, json_field_paths=json_field_paths),
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
pa_table = table_cast(pa_table, self.info.features.arrow_schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2369, in table_cast
return cast_table_to_schema(table, schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2297, in cast_table_to_schema
raise CastError(
...<3 lines>...
)
datasets.table.CastError: Couldn't cast
tufB: struct<uniprot: string, start: int64, end: int64, n_res: int64, product: string, ss3: string>
child 0, uniprot: string
child 1, start: int64
child 2, end: int64
child 3, n_res: int64
child 4, product: string
child 5, ss3: string
rpoB: struct<uniprot: string, start: int64, end: int64, n_res: int64, product: string, ss3: string>
child 0, uniprot: string
child 1, start: int64
child 2, end: int64
child 3, n_res: int64
child 4, product: string
child 5, ss3: string
rpoC: struct<uniprot: string, start: int64, end: int64, n_res: int64, product: string, ss3: string>
child 0, uniprot: string
child 1, start: int64
child 2, end: int64
child 3, n_res: int64
child 4, product: string
child 5, ss3: string
pspA: struct<uniprot: string, start: int64, end: int64, n_res: int64, product: string, ss3: string>
child 0, uniprot: string
child 1, start: int64
child 2, end: int64
child 3, n_res: int64
child 4, product: string
child 5, ss3: string
ompG: struct<uniprot: string, start: int64, end: int64, n_res: int64, product: string, ss3: string>
child 0, uniprot: string
child 1, start: int64
child 2, end: int64
child 3, n_res: int64
child 4, product: string
child 5, ss3: string
crp: struct<uniprot: string, start: int64, end: int64, n_res: int64, product: string, ss3: string>
child 0, uniprot: string
child 1, start: int64
child 2, end: int64
child 3, n_res: int64
child 4, product: string
child 5, ss3: string
groL: struct<uniprot: string, start: int64, end: int64, n_res: int64, product: string, ss3: string>
child 0, uniprot: string
child 1, start: int64
child 2, end: int64
child 3, n_res: int64
child 4, product: string
child 5, ss3: string
n_features: int64
overlap: int64
n_windows: int64
sae_checkpoint: string
topology: string
layer: string
nnz: int64
encode: string
sae_sha256: string
values_dtype: string
per_base: int64
stride: int64
nnz_frac: double
model: string
organism: string
accession: string
rows: string
indices_dtype: string
assembly: string
note: string
window: int64
n_rows: int64
cols: string
indptr_dtype: string
genome_length: int64
to
{'accession': Value('string'), 'organism': Value('string'), 'assembly': Value('string'), 'topology': Value('string'), 'genome_length': Value('int64'), 'n_rows': Value('int64'), 'n_features': Value('int64'), 'nnz': Value('int64'), 'nnz_frac': Value('float64'), 'window': Value('int64'), 'overlap': Value('int64'), 'stride': Value('int64'), 'n_windows': Value('int64'), 'model': Value('string'), 'layer': Value('string'), 'sae_checkpoint': Value('string'), 'sae_sha256': Value('string'), 'encode': Value('string'), 'rows': Value('string'), 'cols': Value('string'), 'note': Value('string'), 'indptr_dtype': Value('string'), 'values_dtype': Value('string'), 'indices_dtype': Value('string'), 'per_base': Value('int64')}
because column names don't matchNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
Evo 2 sparse autoencoder activations for the Escherichia coli K-12 MG1655 genome
SAE activations for every base of the chromosome (RefSeq GCF_000005845.2, NC_000913.3, 4,641,652 bp), with the embeddings, annotation and structures used by the hands-on notebook.
How the activations were made
Evo 2 7B (arcinstitute/evo2_7b) was run over the circular chromosome in 16,384 bp
windows at a stride of 15,360 bp, discarding the first 1,024 bp of each window as context.
Each base's blocks.26 embedding, 4,096 values, was encoded with the Goodfire BatchTopK
SAE (Goodfire/Evo-2-Layer-26-Mixed, sae-layer26-mixed-expansion_8-k_64.pt, sha256
prefix 598f131a2e71f1c4) the way the
Evo 2 notebook
does it:
a = relu(x @ W + b_enc)
z = BatchTopK_64(a)
BatchTopK keeps the largest 64 x L activations over the L bases it is given, so the result
depends on the window. Rows here hold the largest 128 activations per base, twice what
BatchTopK keeps on average, so the cut-off can be reapplied for any window. A base that
exceeds the cut-off more than 128 times loses the surplus — 0.16% of the kept activations
over the 30,720 bp of region_emb.pt, 0.57% over a 5 kb window, always the smallest values
just above the cut-off.
Files
| File | Bytes | Description |
|---|---|---|
ecoli_values.f16 |
1,188,262,912 | the largest 128 activations per base, float16 |
ecoli_indices.u16 |
1,188,262,912 | their feature ids, uint16, 0–32767 |
ecoli_indptr.i64 |
37,133,224 | row pointers, int64, 4,641,653 entries, 128 apart |
ecoli_meta.json |
1,000 | provenance of the three files above |
region_emb.pt |
251,659,966 | blocks.26 embeddings for NC_000913.3:4,162,560-4,193,280; 30,720 × 4,096 bfloat16 |
context.pt |
83,888,037 | five window overlaps, each 1,024 bases embedded twice, with 0–1,023 and with ≥ 15,360 bp of left context |
scramble.pt |
183,506,633 | the CRISPR array embedded sixteen ways: natural, and five draws of each of three edits; 16 × 1,400 × 4,096 bfloat16 |
class_sums.npz |
656,598 | per-class totals of the per-region mean activation, over 7,279 regions and 32,768 features, with the genome-wide BatchTopK cut-off applied |
ecoli.bed |
182,381 | 4,340 CDS, 86 tRNA, 22 rRNA, 20 CRISPR repeats, 18 spacers, 6 prophages |
proteins.json |
5,468 | CDS coordinates, UniProt ids and DSSP strings for seven proteins; residue i is codon i |
eftu_trna.pdb |
379,071 | EF-Tu (AlphaFold P0CE48) on 1B23, keeping the 1B23 tRNA as chain B |
rpoBC.pdb |
1,701,413 | RNA polymerase β and β′ chains from 6C9Y |
pspA.pdb |
149,849 | AlphaFold P0AFM6 |
ompG.pdb |
205,982 | AlphaFold P76045 |
crp.pdb |
139,643 | AlphaFold P0ACJ8 |
groL.pdb |
331,451 | AlphaFold P0A6F5 |
sha256sums.txt |
— | checksums for all of the above |
Reading one region
Rows lo:hi occupy [2*indptr[lo], 2*indptr[hi]) of the values and indices files, and the
host serves HTTP Range requests, so a few-kb region costs a MB or two. Apply BatchTopK over
the window before reading a feature.
import numpy as np, requests
BASE = "https://huggingface.co/datasets/suzuki-2001/evo2-sae-handson/resolve/main"
def part(name, first, last):
r = requests.get(f"{BASE}/{name}",
headers={"Range": f"bytes={first}-{last - 1}"})
r.raise_for_status()
return r.content
lo, hi = 4_175_250, 4_177_250 # tRNA array and tufB
ptr = np.frombuffer(part("ecoli_indptr.i64", 8 * lo, 8 * (hi + 1)), np.int64)
first, last = int(ptr[0]), int(ptr[-1])
values = np.frombuffer(part("ecoli_values.f16", 2 * first, 2 * last), np.float16)
indices = np.frombuffer(part("ecoli_indices.u16", 2 * first, 2 * last), np.uint16)
rows = np.repeat(np.arange(hi - lo), np.diff(ptr))
value = values.astype(np.float32) # BatchTopK over this window
want = 64 * (hi - lo)
floor = np.partition(value, len(value) - want)[len(value) - want]
keep = value >= floor
hit = keep & (indices == 30262) # the paper's tRNA feature
track = np.zeros(hi - lo, np.float32)
track[rows[hit]] = value[hit]
Sources and licences
- Genome NC_000913.3 — NCBI imposes no restrictions on use or redistribution; rights remain with the original submitters
- Evo 2 7B weights,
arcinstitute/evo2_7b— Apache 2.0 - SAE checkpoint,
Goodfire/Evo-2-Layer-26-Mixed— MIT - AlphaFold models P0CE48, P0A8V2, P0A8T7, P0AFM6, P76045, P0ACJ8, P0A6F5 — CC-BY 4.0, EMBL-EBI
- Experimental structures 1B23 and 6C9Y — CC0 1.0, RCSB PDB
- DSSP strings — mkdssp 4.6.1 (BSD-2-Clause), run on the AlphaFold models above
- Prophage intervals — geNomad (Lawrence Berkeley National Laboratory academic / non-commercial licence); CPZ-55, doi:10.3389/fgene.2019.00065
- CRISPR repeats and spacers — derived from the genome sequence
Released under CC-BY 4.0.
Citation
Brixi G, Durrant MG, Ku J, Naghipourfar M, Poli M, Sun G, et al. Genome modelling and design across all domains of life with Evo 2. Nature 2026. doi:10.1038/s41586-026-10176-5
Archived at https://doi.org/10.5281/zenodo.21856795
- Downloads last month
- 392