| install_localLLM | R Documentation |
This function downloads and installs the pre-compiled C++ backend library required for the localLLM package to function.
install_localLLM(force_cpu = FALSE, force_reinstall = FALSE)
force_cpu |
Logical. If |
force_reinstall |
Logical. If |
This function downloads platform-specific pre-compiled binaries from GitHub releases. The backend library is stored in the user's data directory and loaded at runtime. Internet connection is required for the initial download.
On Windows and Linux, GPU support is auto-detected: if a Vulkan-capable GPU driver
is found, the GPU-accelerated build is downloaded automatically. Use
force_cpu = TRUE to override this and install the CPU build instead.
macOS always downloads the Metal-enabled build (both Apple Silicon and Intel).
Returns NULL invisibly. Called for side effects.
lib_is_installed, get_lib_path
## Not run:
# Standard install (auto-detects GPU)
install_localLLM()
# Force CPU build
install_localLLM(force_cpu = TRUE)
# Reinstall after adding a GPU driver
install_localLLM(force_reinstall = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.