llama_set_warmup: Set warmup mode

View source: R/llama.R

llama_set_warmupR Documentation

Set warmup mode

Description

When 'warmup = TRUE', the context runs in warmup mode which pre-caches model weights in GPU memory without producing meaningful outputs. Call with 'warmup = FALSE' to return to normal inference mode.

Usage

llama_set_warmup(ctx, warmup)

Arguments

ctx

Context handle returned by [llama_new_context]

warmup

Logical; 'TRUE' to enable warmup mode, 'FALSE' to disable.

Value

No return value, called for side effects.


llamaR documentation built on May 28, 2026, 1:06 a.m.