Build a text-based adventure game with Gemma 2- Google Developers Blog
Aug 14, 2024Ju-yeong Ji

Summary
This post introduces the process of building a text-based adventure game using an instruction-tuned Gemma 2 model. It provides guidance on setting up Gemma locally or deploying it on Vertex AI, includes Python code examples for creating a chatbot wrapper class (both local and Vertex AI deployments), and demonstrates a basic game loop structure with stage management. It also highlights the potential for integrating custom game mechanics and themes.
More from the Google Developer Platform trail
- Autonomous LLM post-training with Tunix on TPUs- Google Developers Blog
- HeyGen x Google Cloud: Bringing Avatar IV to TPUs- Google Developers Blog
- Run Ray on TPU, Part 2: Ray AI libraries- Google Developers Blog
- Scaling Agentic RL: High-Throughput Agentic Training with Tunix- Google Developers Blog
- Run Ray on TPU, Part 1: The foundations- Google Developers Blog