2025-02-15 19:30:09 +08:00
2025-02-15 19:30:09 +08:00
2025-02-15 19:30:09 +08:00
2025-02-15 19:30:09 +08:00
2025-02-15 19:30:09 +08:00
2025-02-15 19:30:09 +08:00
2025-02-15 19:30:09 +08:00

cache_transformer_activations

Utility library to collect transformer activations on disk.

These activations can be quite large (layers x batch x sequence x hidden_size), so it's nice to store it on disk and avoid and out of memory error.

Install using pip install git+https://github.com/wassname/cache_transformer_activations.git.

Development

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

see exampes in nbs folder.

S
Description
Store transformer activations on disk
Readme
819 KiB
Languages
Jupyter Notebook 56.1%
Python 43.9%