tangermeme's PackedSequence: 2-bit packing cuts genomics sequence memory 16x

Genomics deep learning library tangermeme has merged PR #120, adding a PackedSequence structure that stores DNA sequences over the four-character alphabet at 2 bits per position, cutting memory usage 16x versus int8 one-hot encoding. More importantly, the entire computation can run in "packed space" without first decoding back to one-hot, yielding large simultaneous gains in both performance and memory in practice. The change grew out of a real bottleneck author jmschreiber91 hit while accelerating DeepLIFT/SHAP attribution analysis, and has now landed as an official capability of the library.

Confirmed

Why it matters

2026-10-20 ~ 2026-10-20 · 6 related posts

Primary sources