MCPcopy Create free account
hub / github.com/antirez/ds4 / repl_chat_init

Function repl_chat_init

ds4_cli.c:1053–1062  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1051 free(live_logits);
1052 free(fresh_logits);
1053 return 1;
1054 }
1055 ds4_session_free(fresh);
1056
1057 double ss = 0.0;
1058 float max_abs = 0.0f;
1059 int max_i = 0;
1060 for (int i = 0; i < vocab; i++) {
1061 float d = fabsf(live_logits[i] - fresh_logits[i]);
1062 if (d > max_abs) {
1063 max_abs = d;
1064 max_i = i;
1065 }

Callers 1

run_replFunction · 0.85

Calls 5

ds4_chat_beginFunction · 0.85
cli_effective_think_modeFunction · 0.85
ds4_chat_append_messageFunction · 0.85
repl_chat_create_sessionFunction · 0.85

Tested by

no test coverage detected