dispose method

void dispose()

Free context, model and memory objects in C world.

Implementation

void dispose() {
  tokenBuf.dispose();
  cStr.dispose();

  llama_cpp.llama_free(ctx);
  llama_cpp.llama_free_model(model);
  llama_cpp.llama_backend_free();
  print('Embedding.dispose: done.');
}