EleutherAI / EleutherAI/elk

Use dill and Apache Arrow directly for caching & storing hidden states

Open
#203 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
225
Forks
30
PR merge metrics
No merged PRs in 30d

Description

Right now we save hidden states as a HF dataset so that we can use its magical caching abilities. We're clearly wrangling HF into supporting something it wasn't designed for and this does cause us to need to load the model from disk a bunch of times during a sweep, whereas we could load it only once if we had more control. I expect we could get at least a 2x speedup from this for large models, and the code could be cleaner. It would also remove the confusing "Downloading and preparing" messages that currently pop up when we extract hiddens

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.