Global USE flags

Flag Description Packages
cuda NVDEC video decoding and nvJPEG via CUDA 3
rocm GPU acceleration on AMD via ROCm/HIP 20
test 7

Category USE flags

localai-backend

Flag Description Packages
native Let the bundled ggml library auto-detect the build host's CPU features (-march=native) instead of relying on CFLAGS 20
openblas CPU BLAS acceleration via <pkg>sci-libs/openblas</pkg> 19
vulkan GPU acceleration via Vulkan 21

Local USE flags

app-containers

zot

Flag Description
ui Build and embed the zui web interface

dev-python

av

Flag Description
examples

localai-backend

audio-cpp

Flag Description
${ROCM_REQUIRED_USE}
(
)
avx
avx2
avx512f
bmi2
cpu
f16c
fma3

crispasr

Flag Description
ffmpeg Decode any audio/video container for transcription via <pkg>media-video/ffmpeg</pkg>

fish-speech

Flag Description
distributed

trellis2cpp

Flag Description
cgal Enable CGAL Alpha Wrap print-remeshing (watertight 2-manifold output) via <pkg>sci-mathematics/cgal</pkg>

vllm-cpp

Flag Description
video_cards_amdgpu

sci-libs

dlpack

Flag Description
doc

hipSOLVER

Flag Description
sparse Build hipSOLVER with sparse functionality (<pkg>sci-libs/cholmod</pkg>)

onnxruntime

Flag Description
python

sci-ml

localai

Flag Description
acestep-cpp Install the acestep.cpp music-generation backend (<pkg>localai-backend/acestep-cpp</pkg>)
audio-cpp Install the audio backend (<pkg>localai-backend/audio-cpp</pkg>)
bonsai Install the Bonsai 1-bit/ternary text-generation backend (<pkg>localai-backend/bonsai</pkg>)
ced Install the ced.cpp audio-event-detection backend (<pkg>localai-backend/ced</pkg>)
crispasr Install the CrispASR multi-engine speech backend (<pkg>localai-backend/crispasr</pkg>)
depth-anything Install the depth-anything.cpp depth-estimation backend (<pkg>localai-backend/depth-anything</pkg>)
diffusers Install the diffusers image/video-generation backend (<pkg>localai-backend/diffusers</pkg>)
face-detect Install the face-detect.cpp face-detection backend (<pkg>localai-backend/face-detect</pkg>)
fish-speech Install the fish-speech text-to-speech backend (<pkg>localai-backend/fish-speech</pkg>)
ik-llama-cpp Install the ik_llama.cpp text-generation backend (<pkg>localai-backend/ik-llama-cpp</pkg>)
kimodocpp Install the kimodo.cpp skeleton-animation backend (<pkg>localai-backend/kimodocpp</pkg>)
llama-cpp Install the llama.cpp text-generation backend (<pkg>localai-backend/llama-cpp</pkg>)
localvqe Install the LocalVQE voice-quality-enhancement backend (<pkg>localai-backend/localvqe</pkg>)
locate-anything-cpp Install the locate-anything.cpp open-vocabulary detection backend (<pkg>localai-backend/locate-anything-cpp</pkg>)
parakeet-cpp Install the parakeet.cpp speech-to-text backend (<pkg>localai-backend/parakeet-cpp</pkg>)
piper Install the piper text-to-speech backend (<pkg>localai-backend/piper</pkg>)
qwen3-tts-cpp Install the qwentts.cpp text-to-speech backend (<pkg>localai-backend/qwen3-tts-cpp</pkg>)
rerankers Install the rerankers reranking backend (<pkg>localai-backend/rerankers</pkg>)
rfdetr-cpp Install the rf-detr.cpp object-detection backend (<pkg>localai-backend/rfdetr-cpp</pkg>)
sam3-cpp Install the sam3.cpp image-segmentation backend (<pkg>localai-backend/sam3-cpp</pkg>)
silero-vad Install the Silero voice-activity-detection backend (<pkg>localai-backend/silero-vad</pkg>)
speaker-recognition Speaker recognition and voice-embedding backend (speechbrain/ONNX) — <pkg>localai-backend/speaker-recognition</pkg>
stablediffusion-ggml Install the stable-diffusion.cpp image-generation backend (<pkg>localai-backend/stablediffusion-ggml</pkg>)
trellis2cpp Install the trellis2cpp 3D-generation backend (<pkg>localai-backend/trellis2cpp</pkg>)
vibevoice-cpp Install the vibevoice.cpp text-to-speech backend (<pkg>localai-backend/vibevoice-cpp</pkg>)
vllm-cpp Install the vllm.cpp text-generation backend (<pkg>localai-backend/vllm-cpp</pkg>)
whisper Install the whisper.cpp speech-to-text backend (<pkg>localai-backend/whisper</pkg>)

torchcodec

Flag Description
avif AVIF image decoding via <pkg>media-libs/libavif</pkg>
gif GIF image decoding via <pkg>media-libs/giflib</pkg>
heic HEIC image decoding via <pkg>media-libs/libheif</pkg>
jpeg JPEG image decoding via <pkg>media-libs/libjpeg-turbo</pkg>
png PNG image decoding via <pkg>media-libs/libpng</pkg>
webp WebP image decoding via <pkg>media-libs/libwebp</pkg>