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 am using LlamaSharp on Apple Silicon (M2 Max) to run a Llama2-7B model.
I am inputting a document into the model context using the ChatSession::ChatAsync API. Then, I want to save the state and reload it later.
So I tried using llamaContext.GetState to get an opaque handle to the state, but it returns a null pointer. However, using llamaContext.GetStateData does return a byte sequence that allows me to save and load the state as expected.