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

Function find_integer_answer

ds4_eval.c:2829–2867  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2827 "elapsed_sec: %.3f\n"
2828 "temperature: %.6g\n"
2829 "top_p: %.6g\n"
2830 "min_p: %.6g\n"
2831 "think_mode_effective: %s\n",
2832 idx + 1, ncases, tc->source, tc->id,
2833 (long long)time(NULL),
2834 tc->source,
2835 tc->id,
2836 tc->domain,
2837 tc->title,
2838 status,
2839 picked && *picked ? picked : "?",
2840 tc->answer,
2841 prompt_tokens,
2842 generated_tokens,
2843 generation_budget,
2844 elapsed_sec,
2845 cfg->temperature,
2846 cfg->top_p,
2847 cfg->min_p,
2848 ds4_think_mode_name(effective_think_mode));
2849 if (think_close && think_close->kind != EVAL_THINK_CLOSE_NONE) {
2850 fprintf(trace,
2851 "think_close: %s\n"
2852 "think_close_token_index: %d\n"
2853 "think_close_remaining_budget: %d\n"
2854 "think_close_rank: %d\n",
2855 think_close_kind_name(think_close->kind),
2856 think_close->token_index,
2857 think_close->remaining_budget,
2858 think_close->rank);
2859 } else {
2860 fprintf(trace, "think_close: none\n");
2861 }
2862 if (error && *error) fprintf(trace, "error: %s\n", error);
2863
2864 if (nchoices > 0) {
2865 fprintf(trace, "choices:\n");
2866 for (int i = 0; i < nchoices; i++) {
2867 fprintf(trace, " %c. %s\n", 'A' + i, tc->choice[i]);
2868 }
2869 }
2870 fprintf(trace, "answer_kind: %s\n",

Callers 2

find_compsec_answerFunction · 0.85
find_case_answerFunction · 0.85

Calls 3

find_last_answer_markerFunction · 0.85
scan_first_integerFunction · 0.85
normalize_integer_answerFunction · 0.85

Tested by

no test coverage detected