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
{{ message }}
Repository navigation
Decision models (/v1/systemone) as a library, not only in llama-server
#31938
I extracted tools/server/server-decision.{h,cpp} into a C library (https://github.com/moudrkat/kneejerk): a shim for the server types it expects, a batch loop that reads the scores the way send_decision() does, format_answer() unchanged. Against a llama-server built from the same tree the probabilities match to four decimals (d1-2B, Laya, H2O Lightning, Clef). It runs on a Pixel 8a in 464 ms per decision, linked into the app, no server.
Would you take a PR that moves the prompt rendering and the readout into common/ (or into libllama next to llama_decision_order), so apps can link decision models without the server? Happy to write it in whatever shape you prefer.
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.
I extracted
tools/server/server-decision.{h,cpp}into a C library (https://github.com/moudrkat/kneejerk): a shim for the server types it expects, a batch loop that reads the scores the waysend_decision()does,format_answer()unchanged. Against a llama-server built from the same tree the probabilities match to four decimals (d1-2B, Laya, H2O Lightning, Clef). It runs on a Pixel 8a in 464 ms per decision, linked into the app, no server.Would you take a PR that moves the prompt rendering and the readout into
common/(or into libllama next tollama_decision_order), so apps can link decision models without the server? Happy to write it in whatever shape you prefer.All reactions