| llama_backend_devices | R Documentation |
Returns a data.frame of all compute devices (CPU, GPU, etc.) detected
by the ggml backend. Use device names from this list in the devices
parameter of llama_load_model.
llama_backend_devices()
A data.frame with columns name, description, and
type (one of "cpu", "gpu", "igpu", "accel").
# List available compute devices and pick GPU names for llama_load_model()
devs <- llama_backend_devices()
print(devs)
gpu_names <- devs$name[devs$type == "GPU"]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.