| llama_load_model_hf | R Documentation |
Convenience function that downloads a GGUF model from Hugging Face (if not
already cached) and loads it via llama_load_model.
llama_load_model_hf(repo_id, ..., n_gpu_layers = 0L)
repo_id |
Character. Hugging Face repository in |
... |
Additional arguments passed to |
n_gpu_layers |
Integer. Number of layers to offload to GPU.
Use |
An external pointer to the loaded model, as returned by
llama_load_model.
## Not run:
model <- llama_load_model_hf("TheBloke/Llama-2-7B-GGUF",
pattern = "*q2_k*")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.