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
Just tried llama.cpp and found myself wrapping with structs and unique_ptrs every other llama_*anything* pointer or function, which in fact wrap hidden llama_*anything* structs with destructors and stuff. For instance, calling delete hidden inside llama_free_model smells a bit.
Feels like I'm missing something. Is there a proper way to access llama_* objects as defined C++ structs?
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
-
Just tried llama.cpp and found myself wrapping with structs and unique_ptrs every other
llama_*anything*
pointer or function, which in fact wrap hiddenllama_*anything*
structs with destructors and stuff. For instance, callingdelete
hidden insidellama_free_model
smells a bit.Feels like I'm missing something. Is there a proper way to access llama_* objects as defined C++ structs?
Beta Was this translation helpful? Give feedback.
All reactions