MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / ~llama_context

Method ~llama_context

llama.cpp:1554–1563  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1552struct llama_context {
1553 llama_context(const llama_model & model) : model(model), t_start_us(model.t_start_us), t_load_us(model.t_load_us) {}
1554 ~llama_context() {
1555#ifdef GGML_USE_METAL
1556 if (ctx_metal) {
1557 ggml_metal_free(ctx_metal);
1558 }
1559#endif
1560 if (alloc) {
1561 ggml_allocr_free(alloc);
1562 }
1563 }
1564
1565 llama_cparams cparams;
1566

Callers

nothing calls this directly

Calls 1

ggml_allocr_freeFunction · 0.85

Tested by

no test coverage detected