| 197 | } |
| 198 | |
| 199 | bool need_sampling() const { |
| 200 | switch (type) { |
| 201 | case SERVER_TASK_TYPE_COMPLETION: |
| 202 | case SERVER_TASK_TYPE_INFILL: |
| 203 | return true; |
| 204 | default: |
| 205 | return false; |
| 206 | } |
| 207 | } |
| 208 | |
| 209 | static task_params params_from_json_cmpl( |
| 210 | const llama_vocab * vocab, |
no outgoing calls
no test coverage detected