powered by
Set the number of threads for GGML operations
ggml_set_n_threads(n_threads)
Number of threads set
Number of threads to use
# \donttest{ # Use 4 threads ggml_set_n_threads(4) # Use all available cores ggml_set_n_threads(parallel::detectCores()) # }
Run the code above in your browser using DataLab