| llama_lora_apply | R Documentation |
Activates a loaded LoRA adapter for the given context. Multiple LoRA adapters can be applied simultaneously.
llama_lora_apply(ctx, lora, scale = 1)
ctx |
Context handle returned by [llama_new_context] |
lora |
LoRA adapter handle from [llama_lora_load] |
scale |
Scaling factor for the adapter (1.0 = full effect, 0.5 = half effect) |
No return value, called for side effects. Activates the LoRA adapter for the given context.
## Not run:
model <- llama_load_model("base-model.gguf")
lora <- llama_lora_load(model, "adapter.gguf")
ctx <- llama_new_context(model)
# Apply with full strength
llama_lora_apply(ctx, lora, scale = 1.0)
# Or apply with reduced effect
llama_lora_apply(ctx, lora, scale = 0.5)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.