| ggml_set_n_threads | R Documentation |
Set the number of threads for GGML operations
ggml_set_n_threads(n_threads)
n_threads |
Number of threads to use |
Number of threads set
# Use 4 threads
ggml_set_n_threads(4)
# Use all available cores
ggml_set_n_threads(parallel::detectCores())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.