Commit ef22e47
authored
Replace logits_to_logprobs implementation with numpy equivalent to llama.cpp (abetlen#991)
See abetlen#990. This change makes the logits_to_logprobs function equivalent to the version in the llama.cpp repository. It uses numpy so it's much faster than the previous version.1 parent ac35f68 commit ef22e47
1 file changed
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2280 | 2280 | | |
2281 | 2281 | | |
2282 | 2282 | | |
2283 | | - | |
2284 | | - | |
2285 | | - | |
2286 | | - | |
| 2283 | + | |
| 2284 | + | |
| 2285 | + | |
| 2286 | + | |
| 2287 | + | |
| 2288 | + | |
| 2289 | + | |
| 2290 | + | |
2287 | 2291 | | |
2288 | 2292 | | |
2289 | 2293 | | |
| |||
0 commit comments