Update custom_generate/generate.py
Browse files108 unmodified lines109110111112113114115116117118119108 unmodified lines
**kwargs ):
from ..functions_2_patch import _validate_model_kwargs, llama_atten_forward from ..monkey_patching_utils import monkey_patching from ..sep_cache_utils import SepCache
"""Custom generate function for SepCache.
A cache as described in the [SepLLM paper - ICML 2025](https://arxiv.org/abs/2412.12094). In the training phase, custom_generate/generate.py+5