Skip to main content

Plugin Selection

Choose the appropriate backend plugin for your model type and format.
Available Plugins:
  • "cpu_gpu" - GGUF backend for CPU/GPU/Hexagon NPU (LLM, VLM). Device is selected via device_id + nGpuLayers.
  • "npu" - NPU backend for NEXA format models (LLM, VLM, Embeddings, ASR, CV, Rerank)
  • "whisper_cpp" - Whisper.cpp backend for ASR
  • "tts_cpp" - TTS backend for text-to-speech

Device Selection

Control which hardware device processes your model.
Available Values:
  • null - CPU (default)
  • "gpu" - GPU acceleration via OpenCL
  • "dev0" - Qualcomm Hexagon NPU acceleration
Hardware Acceleration with GGUF (plugin_id = "cpu_gpu"):
  • GPU: set device_id = "gpu" and set nGpuLayers > 0 in ModelConfig
  • Hexagon NPU (GGML backend): set device_id = "dev0" and set nGpuLayers > 0 in ModelConfig
If nGpuLayers = 0 (or device_id = null), the model runs on CPU.

LLM Data Structures

LlmCreateInput

ChatMessage

GenerationConfig

LlmStreamResult


Multimodal Data Structures

VlmCreateInput

VlmChatMessage

VlmContent


Embeddings Data Structures

EmbedderCreateInput

EmbeddingConfig


ASR Data Structures

AsrCreateInput

AsrTranscribeInput

AsrTranscriptionResult


TTS Data Structures

TtsCreateInput

TtsSynthesizeInput

TtsConfig

TtsSynthesizeOutput


Rerank Data Structures

RerankerCreateInput

RerankConfig

RerankerResult


Computer Vision Data Structures

CVCreateInput

CVModelConfig

CVCapability

CVResult


Need Help?

Join our community to get support, share your projects, and connect with other developers.

Discord Community

Get real-time support and chat with the Nexa AI community

Slack Community

Collaborate with developers and access community resources