| 1888 | oaicompat_parser_options oai_parser_opt; |
| 1889 | |
| 1890 | ~server_context() { |
| 1891 | mtmd_free(mctx); |
| 1892 | |
| 1893 | // Clear any sampling context |
| 1894 | for (server_slot & slot : slots) { |
| 1895 | common_sampler_free(slot.smpl); |
| 1896 | slot.smpl = nullptr; |
| 1897 | |
| 1898 | llama_free(slot.ctx_dft); |
| 1899 | slot.ctx_dft = nullptr; |
| 1900 | |
| 1901 | common_speculative_free(slot.spec); |
| 1902 | slot.spec = nullptr; |
| 1903 | |
| 1904 | llama_batch_free(slot.batch_spec); |
| 1905 | } |
| 1906 | |
| 1907 | llama_batch_free(batch); |
| 1908 | } |
| 1909 | |
| 1910 | bool load_model(const common_params & params) { |
| 1911 | SRV_INF("loading model '%s'\n", params.model.path.c_str()); |
nothing calls this directly
no test coverage detected