Le Dog
AI models for smart wolves in Minecraft
2 min readupdated
A package of two small ONNX models that replace standard Minecraft wolf behavior with realistic dog habits. The models run directly inside the game via ONNX Runtime and manage entity decisions based on temperament and surroundings. The main model was created using distillation (knowledge transfer) from the Claude Sonnet large language model. This development will interest players using the Le Dog mod and anyone curious about lightweight AI model inference in Java.
Key features
- Two included models: a core brain for action planning and a separate module for executing commands.
- High speed: the main model takes about 1 ms per decision on a CPU.
- Temperament tracking: wolf behavior depends on its personality (curious, brave, energetic, social, playful).
- Reinforcement learning: the trick module was trained using PPO (Proximal Policy Optimization, a reinforcement learning method) inside actual Minecraft.
What you can do
- Install in the game: use the models alongside the Le Dog mod for Minecraft version 26.3.
- Train virtual pets: give wolves commands like sit, stay, wait, and come at distances up to 40 blocks.
- Explore ONNX integration: see how lightweight AI models run inside Java applications.
Example
The models download automatically through the mod using the /ledog update command, and input and output formats are described in the mod source code within the StudentSource.java and TrickBrain.java files.
Read more
DetailsSize of student.onnx: 4.8 MB (1.18 million parameters), rl_tricks.onnx: 27 KB.
Performance: median speed of the core brain is under 1.1 ms per decision on a CPU.
Limitations: the models were trained and tested exclusively in Minecraft on symbolic observations and are not intended for real-world robots.










Comments