| llama_lora_remove | R Documentation |
Deactivates a specific LoRA adapter from the context.
llama_lora_remove(ctx, lora)
ctx |
Context handle returned by [llama_new_context] |
lora |
LoRA adapter handle to remove |
An integer scalar: 0 on success, -1 if the adapter was not applied to this context.
## Not run:
# Remove a specific adapter while keeping others active
llama_lora_remove(ctx, lora)
result <- llama_generate(ctx, "Without adapter: ", max_new_tokens = 20L)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.