← Back to context

Comment by com2kid

3 months ago

I'm working on something similar, https://www.generativestorytelling.ai/tinyllmtown/index.html a small town where all NPCs are simulated using a small LLM. They react to everything the hero does, which means no more killing a dragon and having no one even mention it.

Once I release it, I'll have it simulate 4 hours every 2 hours or so of real time, and visitors can vote on what quest the hero undertakes next.

The simulation is simpler, I am aiming to keep everything to a size that can run on a local GPU with a small model.

Right now you can just watch the NPCs try to figure out love triangles, hide their drinking problems, complain about carrots, and celebrate when the hero saves the town yet again.

This description reminded me of Dwarf Fortress. You might look into how the AI in it works to see if it gives you any ideas about how emergent behaviors can interact?