| ggml_init | R Documentation |
Initialize GGML context
ggml_init(mem_size = 16 * 1024 * 1024, no_alloc = FALSE)
mem_size |
Memory size in bytes |
no_alloc |
If TRUE, don't allocate memory for tensors (default: FALSE) |
GGML context pointer
ctx <- ggml_init(1024 * 1024)
ggml_free(ctx)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.