2025-02-16 15:36:43 +08:00
2025-02-16 13:32:37 +08:00
2025-02-16 15:36:43 +08:00
2025-02-15 22:03:52 +08:00
2025-02-15 19:30:09 +08:00
2025-02-16 15:36:43 +08:00
wip
2025-02-16 11:49:53 +08:00
2025-02-16 15:36:43 +08:00

activation_store

Utility library to persistently store transformer activations on disk.

These activations can be quite large (layers x batch x sequence x hidden_size), so generating them to disk helps avoid out of memory errors.

Install using

pip install git+https://github.com/wassname/activation_store.git

Development

git clone https//github.com/wassname/activation_store.git
uv sync

see examples in nbs folder.

TODO:

  • test compression: it's not worth the complexity
  • add examples
  • generate and collect activations
    • A manual loop of forwards/generate, reusing kv_cache, and appending model outputs along the token dim. saving outputs too
S
Description
Store transformer activations on disk
Readme 655 KiB
Languages
Jupyter Notebook 56.1%
Python 43.9%