llama_n_threads: Get number of threads for single-token generation

View source: R/llama.R

llama_n_threadsR Documentation

Get number of threads for single-token generation

Description

Get number of threads for single-token generation

Usage

llama_n_threads(ctx)

Arguments

ctx

Context handle returned by [llama_new_context]

Value

An integer scalar: current thread count for generation.


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