Commit c645726
authored
refine the benchmark eval UX (#156)
## What does this PR do?
Refine the benchmark eval CLI to have a better user experience to run
benchmark eval on some standard benchmarks.
The benchmarks need to be defined as resource in the distro template
improvements include:
- user don't need to pass in arbitrary eval-task-config, they only need
to pass in the list of benchmarks they'd like to eval, the model id to
be evaluated on and the output dir to store the eval results
- output aggregate results to the output file. aggregate results are
typically what user care most
## Test Plan
spin up a llama stack server with eval benchmarks defined
run `llama-stack-client --endpoint xxxx eval run-benchmark
"meta-reference-simpleqa" --model_id "meta-llama/Llama-3.1-8B-Instruct"
--output_dir "/home/markchen1015/" --num_examples 5`
return
<img width="1284" alt="Screenshot 2025-02-20 at 4 29 35 PM"
src="https://github.com/user-attachments/assets/624e0b59-fcbf-46b8-b2cf-2a36bba9aee5"
/>
what are inside the output file
<img width="1436" alt="Screenshot 2025-02-20 at 4 30 08 PM"
src="https://github.com/user-attachments/assets/d0a370ff-df98-4fbf-93ba-78104838d02b"
/>
<img width="1444" alt="Screenshot 2025-02-20 at 4 17 05 PM"
src="https://github.com/user-attachments/assets/7da65c03-cc03-48f3-be70-1489a9430f18"
/>1 parent 39b1248 commit c645726
File tree
2 files changed
+154
-25
lines changed- src/llama_stack_client/lib/cli/eval
2 files changed
+154
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
16 | 22 | | |
17 | 23 | | |
18 | 24 | | |
19 | | - | |
| 25 | + | |
20 | 26 | | |
21 | | - | |
| 27 | + | |
22 | 28 | | |
23 | | - | |
24 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
25 | 32 | | |
26 | 33 | | |
27 | 34 | | |
| |||
35 | 42 | | |
36 | 43 | | |
37 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
38 | 73 | | |
39 | 74 | | |
40 | 75 | | |
| |||
44 | 79 | | |
45 | 80 | | |
46 | 81 | | |
47 | | - | |
48 | | - | |
| 82 | + | |
| 83 | + | |
49 | 84 | | |
50 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
51 | 90 | | |
52 | 91 | | |
53 | 92 | | |
54 | 93 | | |
55 | 94 | | |
56 | 95 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
61 | 100 | | |
62 | 101 | | |
63 | | - | |
| 102 | + | |
| 103 | + | |
64 | 104 | | |
65 | 105 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | 106 | | |
70 | 107 | | |
71 | | - | |
72 | | - | |
73 | | - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
74 | 111 | | |
75 | 112 | | |
76 | | - | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
77 | 126 | | |
78 | 127 | | |
79 | 128 | | |
| |||
90 | 139 | | |
91 | 140 | | |
92 | 141 | | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
93 | 163 | | |
94 | 164 | | |
95 | 165 | | |
96 | | - | |
| 166 | + | |
97 | 167 | | |
98 | 168 | | |
99 | 169 | | |
100 | 170 | | |
101 | 171 | | |
102 | 172 | | |
103 | 173 | | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
0 commit comments