You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know that llama cpp "automatically" supports prompt caching by looking for the longest prefix in the string for each follow-up query. I'm wondering if this also works with LORA adapters? For example, say I have adapters A and B. I then do the following:
Call the base model with prompt t_1, ..., t_k.
Call the base model with adapter A with t_1, ..., t_k, t_{k+1}, ..., t_l.
Call the base model with adapter B with t_1, ..., t_k, t_{k+1}, ..., t_l, t_{l+1}, ..., t_m.
where 0 < k < l < m.
Would the prompt still be cached for the underlying base model (e.g. only the lora adapter operations are applied on each follow-up query)?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I know that llama cpp "automatically" supports prompt caching by looking for the longest prefix in the string for each follow-up query. I'm wondering if this also works with LORA adapters? For example, say I have adapters A and B. I then do the following:
where 0 < k < l < m.
Would the prompt still be cached for the underlying base model (e.g. only the lora adapter operations are applied on each follow-up query)?
Beta Was this translation helpful? Give feedback.
All reactions