Discover and explore top open-source AI tools and projects—updated daily.
AdriankhlLLM integration for game development
Top 99.9% on SourcePulse
This project provides a comprehensive integration of Large Language Models (LLMs) directly into the Godot game engine. It empowers game developers to easily incorporate advanced AI capabilities such as dynamic content generation, intelligent NPCs, and design assistance within their projects. The primary benefit is enabling sophisticated LLM features locally, even on consumer-grade hardware, by leveraging efficient backends like llama.cpp.
How It Works
The core of the project lies in its Godot-native nodes (GDLlama, GDEmbedding, GDLlava, LlmDB) that abstract the complexities of LLM inference. It utilizes llama.cpp to run various LLMs (e.g., Llama-3-8B) efficiently on CPU or via Vulkan GPU acceleration. This approach allows developers to integrate text generation, text embedding for semantic search, and even multimodal understanding (image + text) directly within their GDScript workflows, making AI-driven game development more accessible.
Quick Start & Requirements
Installation involves adding the plugin directly from the Godot Asset Library or by placing a downloaded release zip into the project's addons folder. Key requirements include:
Meta-Llama-3-8B-Instruct-Q5_K_M.gguf).GDLlava), a corresponding mmproj.gguf file is necessary.Highlighted Details
LlmDB node, a vector database built on SQLite, enabling persistent storage of game data and retrieval of relevant context to enrich LLM prompts, effectively providing long-term memory.GDLlava node supports generating text descriptions or responses based on image inputs combined with text prompts.llama.cpp, supporting both CPU and Vulkan backends, minimizing the need for powerful hardware or external APIs.GDLlama node can generate text adhering to specified JSON schemas or GBNF grammars, ensuring structured and predictable AI outputs.Maintenance & Community
The project is actively developed by Adriankhl, with a roadmap indicating plans for broader platform support (including Android), integration with other LLM frameworks like mlc-llm, and enhanced in-editor documentation. Specific community channels (like Discord/Slack) or major sponsorships are not detailed in the provided README.
Licensing & Compatibility
The specific open-source license for this repository is not explicitly stated in the provided README content. This omission requires further investigation before adoption, particularly concerning commercial use or linking with closed-source projects.
Limitations & Caveats
LLM inference can be slow, necessitating the use of asynchronous background processing via signals. Each node supports only one background operation at a time, requiring careful management to avoid UI freezes. Users on Arch Linux should use the official Godot build due to potential GDExtension-related crashes. macOS support is noted as "best effort." The Vulkan backend may require manual configuration if multiple GPU drivers are present.
2 years ago
Inactive
karpathy