Commit 1f29d58
fix: require sampling_logprob per content[] entry, no fallback
Always read the per-token logprob from content[].sampling_logprob (the exact
value the sampler drew with). Fail loud if any content[] entry lacks
sampling_logprob instead of substituting the rounded content[].logprob or 0.0,
so silently degraded logprobs never reach RL training. Removes the now-unused
_extract_entry_logprob helper.
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent e583f85 commit 1f29d58
2 files changed
Lines changed: 37 additions & 15 deletions
File tree
- eval_protocol/integrations
- tests
Lines changed: 8 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | 86 | | |
100 | 87 | | |
101 | 88 | | |
| |||
437 | 424 | | |
438 | 425 | | |
439 | 426 | | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
440 | 434 | | |
441 | | - | |
| 435 | + | |
442 | 436 | | |
443 | 437 | | |
444 | 438 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
| 177 | + | |
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
192 | 220 | | |
193 | 221 | | |
194 | 222 | | |
| |||
0 commit comments