Skip to contents

Reports, without any network request, whether the llama.cpp server and (when named) a model are installed, so code can run local-model steps only where llm_local_install() has been run.

Usage

llm_local_ready(model = NULL, dir = llm_local_dir())

Arguments

model

A model name, or NULL to ask about the server alone.

dir

The local model directory; see llm_local_dir().

Value

TRUE or FALSE.

Examples

llm_local_ready("smollm2-135m")