Instructions to use transformers-community/sink_cache with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use transformers-community/sink_cache with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("transformers-community/sink_cache", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
add sanity checks
Joao Gante835a8a6 -
add sanity checks
Joao Ganteffa8b5a -
allow passing a sink cache back in
Joao Gantef84586a -
add sink cache options
Joao Gantee9837c5 -
add sinkcache class
Joao Gante7f36015