惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

阮一峰的网络日志
阮一峰的网络日志
博客园 - 司徒正美
D
DataBreaches.Net
宝玉的分享
宝玉的分享
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 【当耐特】
人人都是产品经理
人人都是产品经理
博客园 - Franky
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
IT之家
IT之家
博客园 - 三生石上(FineUI控件)
J
Java Code Geeks
腾讯CDC
博客园_首页
The Cloudflare Blog
S
SegmentFault 最新的问题
C
Check Point Blog
美团技术团队
爱范儿
爱范儿
大猫的无限游戏
大猫的无限游戏
Hugging Face - Blog
Hugging Face - Blog
T
The Blog of Author Tim Ferriss
A
About on SuperTechFans
Blog — PlanetScale
Blog — PlanetScale

Hugging Face - Blog

Waypoint-1.5: Higher-Fidelity Interactive Worlds for Everyday GPUs ALTK‑Evolve: On‑the‑Job Learning for AI Agents Safetensors is Joining the PyTorch Foundation Holo3: Breaking the Computer Use Frontier Any Custom Frontend with Gradio's Backend A New Framework for Evaluating Voice Agents (EVA) Bringing Robotics AI to Embedded Platforms: Dataset Recording, VLA Fine‑Tuning, and On‑Device Optimizations One-Shot Any Web App with Gradio's gr.HTML CUGA on Hugging Face: Democratizing Configurable AI Agents New in llama.cpp: Model Management Building Deep Research: How we Achieved State of the Art OVHcloud on Hugging Face Inference Providers 🔥 20x Faster TRL Fine-tuning with RapidFire AI Building for an Open Future - our new partnership with Google Cloud Aligning to What? Rethinking Agent Generalization in MiniMax M2 Building a Healthcare Robot from Simulation to Deployment with NVIDIA Isaac Sentence Transformers is joining Hugging Face! Unlock the power of images with AI Sheets Supercharge your OCR Pipelines with Open Models Google Cloud C4 Brings a 70% TCO improvement on GPT OSS with Intel and Hugging Face Get your VLM running in 3 simple steps on Intel CPUs Nemotron-Personas-India: Synthesized Data for Sovereign AI Introducing RTEB: A New Standard for Retrieval Evaluation Accelerating Qwen3-8B Agent on Intel® Core™ Ultra with Depth-Pruned Draft Models VibeGame: Exploring Vibe Coding Games Nemotron-Personas-Japan: ソブリン AI のための合成データセット Swift Transformers Reaches 1.0 – and Looks to the Future Smol2Operator: Post-Training GUI Agents for Computer Use SyGra: The One-Stop Framework for Building Data for LLMs and SLMs Gaia2 and ARE: Empowering the community to study agents
Introducing NPC-Playground, a 3D playground to interact w...
Tristan Deborde, Duermael, Gaetan de Villele, Corentin CAILLEAUD · 2024-06-05 · via Hugging Face - Blog

Back to Articles

Thumbnail

AI-powered NPCs (Non-Playable Characters) are one of the most important breakthroughs brought about by the use of LLMs in games.

LLMs, or Large Language Models, make it possible to design "intelligent" in-game characters that can engage in realistic conversations with the player, perform complex actions and follow instructions, dramatically enhancing the player's experience. AI-powered NPCs represent a huge advancement vs rule-based and heuristics systems.

Today, we are excited to introduce NPC-Playground, a demo created by Cubzh and Gigax where you can interact with LLM-powered NPCs and see for yourself what the future holds!

You can play with the demo directly on your browser 👉 here

In this 3D demo, you can interact with the NPCs and teach them new skills with just a few lines of Lua scripting!

The Tech Stack

To create this, the teams used three main tools:

  • Cubzh: the cross-platform UGC (User Generated Content) game engine.

  • Gigax: the engine for smart NPCs.

  • Hugging Face Spaces: the most convenient online environment to host and iterate on game concepts in an open-source fashion.

What is Cubzh?

Cubzh is a cross-platform UGC game engine, that aims to provide an open-source alternative to Roblox.

It offers a rich gaming environment where users can create their own game experiences and play with friends.

Cubzh

In Cubzh, you can:

  • Create your own world items and avatars.

  • Build fast, using community-made voxel items (+25K so far in the library) and open-source Lua modules.

  • Code games using a simple yet powerful Lua scripting API.

Cubzh is in public Alpha. You can download and play Cubzh for free on Desktop via Steam, Epic Game Store, or on Mobile via Apple's App Store, Google Play Store or even play directly from your browser.

In this demo, Cubzh serves as the game engine running directly within a Hugging Face Space. You can easily clone it to experiment with custom scripts and NPC personas!

What is Gigax?

Gigax is the platform game developers use to run LLM-powered NPCs at scale.

Gigax has fine-tuned (trained) large language models for NPC interactions, using the "function calling" principle.

It's easier to think about this in terms of input/output flow:

  • On input, the model reads a text description (prompt) of a 3D scene, alongside a description of recent events and a list of actions available for the NPCs (e.g., <say>, <jump>, <attack>, etc.).

  • The model then outputs one of these actions using parameters that refer to 3D entities that exist in the scene, e.g. say NPC1 "Hello, Captain!".

gigax

Gigax has open-sourced their stack! You can clone their inference stack on Github.

For this demo, their models are hosted in the cloud, but you can download them yourself on the 🤗 Hub:

The NPC-Playground Demo

Interact with LLM-powered NPCs in our 3D Playground, in your browser: huggingface.co/spaces/cubzh/ai-npcs.

Just clone the repository and modify cubzh.lua to teach NPCs new skills with a few lines of Lua scripting!

Make your own demo 🔥

Playing with the demo is just the first step! If you're interested in customizing it, check out our comprehensive ML for Games Course tutorial for step-by-step instructions and resources.

Thumbnail

The tutorial 👉 here

In addition, you can check the documentation to learn more on how to tweak NPC behavior and teach NPCs new skills.

We can't wait to see the amazing demos you're going to make 🔥. Share your demo on LinkedIn and X, and tag us @cubzh_ @gigax @huggingface we'll repost it 🤗.

--

The collaboration between Cubzh and Gigax has demonstrated how advanced AI can transform NPC interactions, making them more engaging and lifelike.

If you want to dive more into Cubzh and Gigax don’t hesitate to join their communities:

And to stay updated on the latest updates on Machine Learning for Games, don't forget to join the 🤗 Discord