% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mtmd.R
\name{llama_mtmd_load}
\alias{llama_mtmd_load}
\title{Load a multimodal projector (mmproj)}
\usage{
llama_mtmd_load(model, mmproj_path, n_threads = 4L, use_gpu = TRUE)
}
\arguments{
\item{model}{A model handle from \code{\link{llama_load_model}} (the text
model the projector pairs with).}

\item{mmproj_path}{Path to the multimodal projector GGUF file.}

\item{n_threads}{Number of CPU threads for the vision/audio encoder
(default \code{4L}).}

\item{use_gpu}{Logical; run the encoder on the GPU when available
(default \code{TRUE}).}
}
\value{
An external pointer wrapping the mtmd context. Freed automatically by
  the garbage collector. Required by \code{\link{llama_image_eval}} and the
  capability probes.
}
\description{
Loads the vision/audio projector that pairs with a multimodal model. The
projector is a separate GGUF file (commonly named \code{mmproj-*.gguf}),
loaded on top of an already-loaded text model from
\code{\link{llama_load_model}}.
}
\seealso{
\code{\link{llama_mtmd_support_vision}}, \code{\link{llama_image_eval}}
}
