| llama_supports_mlock | R Documentation |
Check whether memory locking is supported
llama_supports_mlock()
A logical scalar: TRUE if mlock is supported.
# Check if memory locking is available (prevents swapping model to disk)
if (llama_supports_mlock()) {
message("mlock available — model weights can be pinned in RAM")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.