GenAI Llama - Local AI Models in Unreal Engine

Run local AI models inside Unreal Engine games and applications — no cloud APIs, no internet required, no per-token costs. GenAI Llama (formerly Unreal Ollama) supports two modes: connect to any local inference server (Ollama, LM Studio, llama.cpp server, vLLM, LocalAI, Jan) via HTTP, or run GGUF models directly inside your game process with embedded llama.cpp inference. Run Llama 3, Mistral, Phi, Gemma, DeepSeek, and hundreds more models locally.

Two Modes of Operation

HTTP Providers — Connect to any local inference server. Works out of the box with Ollama, LM Studio, llama.cpp server, vLLM, LocalAI, Jan, or any OpenAI-compatible endpoint.

Embedded Inference (llama.cpp) — Run GGUF models directly inside your game process. No server required. Works fully offline on PC and mobile. Optional — requires compiling llama.cpp libraries for your target platform.

Key Features:

  • 7 Supported Providers:
    Ollama, LM Studio, llama.cpp server, vLLM, LocalAI, Jan (HTTP), plus embedded llama.cpp for serverless in-process inference.

  • Embedded Inference:
    Run GGUF models directly in your game process — no server, no network, no internet. Load and unload models at runtime. GPU acceleration via CUDA, Vulkan, or Metal.

  • 100% Local & Offline:
    All AI processing runs on the player's machine. No data leaves the device. Perfect for privacy-sensitive applications and offline gameplay.

  • Zero Cost Per Request:
    Once a model is downloaded, run unlimited AI interactions. No API bills, no subscriptions.

  • Chat Completions & Streaming:
    Full chat completion and real-time token-by-token streaming. Create typewriter effects, live dialogue, and responsive AI companions.

  • Multimodal Vision:
    Send images alongside text using models like llava or llama3.2-vision. Pass UTexture2D assets directly — the plugin handles Base64 conversion automatically.

  • Generation Options:
    Temperature, Top P, Max Tokens, Seed, Stop sequences, JSON format output, and system prompt support.

  • Server Management:
    Health check, list available models, and provider switching at runtime.

  • Blueprint & C++ Ready:
    Full Blueprint support with async latent nodes, plus a complete C++ API with delegates. Built on UCancellableAsyncAction for proper lifetime management.

  • Broad Platform Support:
    HTTP providers: Windows, macOS, Linux, Android, iOS, PS4, Xbox One, Switch, HoloLens. Embedded inference: Windows, macOS, Linux, Android, iOS. Engine support: UE 5.1 through 5.7.

Compatible Models

Use any model from the Ollama library (HTTP) or any GGUF model from Hugging Face (embedded):

  • General Chat: llama3, mistral, gemma, phi-3, nemotron-3-nano
  • Multimodal (Vision): llava, llama3.2-vision, moondream
  • Coding: codellama, starcoder2, deepseek-coder
  • Small & Fast: gemma3:1b, phi-3:mini, tinyllama, qwen2.5-0.5b

Use Cases:

  • Offline NPC Dialogue: Generate character dialogue that works without an internet connection — critical for single-player games, console titles, and demos.
  • Privacy-First Applications: Keep all player-AI conversations on-device. No data ever leaves the machine.
  • Shipped Games with AI: Bundle a GGUF model with your game via embedded inference. Players don't need to install anything extra.
  • Console & Mobile AI: HTTP providers work on PS4, Xbox, Switch, and HoloLens. Embedded inference works on Android and iOS.
  • Rapid Prototyping: Test AI features instantly with LM Studio's GUI or Ollama's CLI.
  • Hybrid Architecture: Use local models for routine interactions and cloud models (via our GenAI for Unreal plugin) for moments that demand peak intelligence.

Why Choose This Plugin?

  • Most Flexible Local AI: 7 providers + embedded inference. No other plugin covers this range.
  • Production-Ready: Built on UCancellableAsyncAction with proper lifetime management, cancellation support, and thread-safe embedded inference.
  • Console Support: HTTP providers work on PS4, Xbox One, Switch, and HoloLens — platforms no other local AI plugin supports.
  • Built by Developers, for Developers: Created by the same team behind GenAI for Unreal and GenAI Chinese Models.
  • Dedicated Support: Join our Discord or email us for help.

Resources & Support