Results 1 to 16 of 16
Thread: Co-DMing with an AI
-
2019-08-17, 03:21 AM (ISO 8601)
- Join Date
- Dec 2010
Co-DMing with an AI
So, neural text generation now has multi-paragraph coherency and can reuse and refer to proper nouns and other specific things which have occurred earlier in the text. It's not quite at the level that it'd make a good DM on its own, but as a source for prompts, setting details, even new mechanics I think there's a lot of potential.
Here's an example of some prompts generated using 60k words of campaign journals from one campaign, written in an over-the-top style (PCs are always, in the campaign journals, referred to as 'the gods'):
Originally Posted by GPT-2Originally Posted by GPT-2Originally Posted by GPT-2
that would eat the light from the Sun in a thousand years."
So anyhow, any interest in collecting a big dataset of campaign journals and making a prompt generator? This thing (https://github.com/minimaxir/gpt-2-simple) isn't too hard to use, though it does require a Tensorflow install and some level of comfort with Python/Jupyter notebooks. For generation, I'm not even sure you'd need much in the way of a good GPU or anything like that - I think it might take a second or so per prompt if you ran it on CPU in the worst case.
-
2019-08-19, 11:29 PM (ISO 8601)
- Join Date
- Feb 2016
Re: Co-DMing with an AI
Now that it cool
"If you want to understand biology don't think about vibrant throbbing gels and oozes, think about information technology" -Richard Dawkins
Omegaupdate Forum
WoTC Forums Archive + Indexing Projext
PostImage, a free and sensible alternative to Photobucket
Temple+ Modding Project for Atari's Temple of Elemental Evil
Morrus' RPG Forum (EN World v2)
-
2019-08-25, 09:24 PM (ISO 8601)
- Join Date
- Jan 2012
Re: Co-DMing with an AI
The gods found themselves in a chamber of fire and flowing water. Walking calmly about, they perceived by now that this creature was a manufactured being, a puppet of the Author. And so they tried to cut it free, as the Author had decreed, yet the gods were exceeding themselves in their hubris. And so a time passed, and the Author grew impatient. And yet the thing remained, and the Author grew impatient. And yet the thing grew in strength, and in moments the Author grew weak.
-
2019-09-13, 04:50 PM (ISO 8601)
- Join Date
- Aug 2014
- Location
- Ontario, Canada
- Gender
Re: Co-DMing with an AI
-
2019-09-13, 08:07 PM (ISO 8601)
- Join Date
- Feb 2016
Re: Co-DMing with an AI
Depending on the monsters and if you're playing mostly core rules, you could download the Temple+ Mod for the Temple of Elemental Evil computer game and set up the encounter using the mod's DM tool
How would one go about actually installing this? I don't see any executable files or installer files there.Last edited by Bohandas; 2019-09-13 at 11:14 PM.
"If you want to understand biology don't think about vibrant throbbing gels and oozes, think about information technology" -Richard Dawkins
Omegaupdate Forum
WoTC Forums Archive + Indexing Projext
PostImage, a free and sensible alternative to Photobucket
Temple+ Modding Project for Atari's Temple of Elemental Evil
Morrus' RPG Forum (EN World v2)
-
2019-09-16, 11:08 PM (ISO 8601)
- Join Date
- Dec 2010
Re: Co-DMing with an AI
You need to have a Python installation. I think you probably need to have Tensorflow installed as well. Then, you run setup.py which registers this as a library module that you can just call inside of a script (or, more conveniently, a Jupyter Notebook, which is a sort of browser-based IDE that lets you modify and run Python code interactively, and displays the outputs inline).
This is the code I used to call it once installed:
import gpt_2_simple as gpt2
TEXTFILE = "" # Put your campaign notes/etc filename here
model_name = "345M"
gpt2.download_gpt2(model_name=model_name)
sess = gpt2.start_tf_sess()
gpt2.finetune(sess, TEXTFILE, model_name=model_name, steps=1000) # steps is max number of training steps
gpt2.generate(sess)Last edited by NichG; 2019-09-16 at 11:11 PM.
-
2019-10-05, 07:21 PM (ISO 8601)
- Join Date
- Feb 2016
Re: Co-DMing with an AI
"If you want to understand biology don't think about vibrant throbbing gels and oozes, think about information technology" -Richard Dawkins
Omegaupdate Forum
WoTC Forums Archive + Indexing Projext
PostImage, a free and sensible alternative to Photobucket
Temple+ Modding Project for Atari's Temple of Elemental Evil
Morrus' RPG Forum (EN World v2)
-
2019-10-05, 08:25 PM (ISO 8601)
- Join Date
- Dec 2010
Re: Co-DMing with an AI
Jupyter is a server that creates a web interface for Python code, allowing you to do things like embed plots or outputs in the middle of code blocks and run different bits of code interactively. If you're on Windows, it comes with the basic 'Anaconda' Python distribution. Otherwise you can install it using pip or a package manager. There's also Google Colaboratory, which basically looks like a Jupyter notebook (and you could probably do these GPT-2 experiments on the free GPU they provide for 12 hours at a time).
Tensorflow is a neural network/tensor math/automatic differentiation library. It contains all the basic primitives to compose and train the neural network. Again, if you go the Colaboratory route, it'll be pre-installed and you don't have to worry about it too much. You would have to figure out how to download the code repository inside the Colaboratory virtual machine and install it there, but I think that's possible (it might take some figuring out though).
The actual code is just the syntax of the gpt2 distribution, so it isn't really too important how it works - its just boilerplate to download a model, train it, etc. The important thing is the text file you provide it.
Edit: This is a Colaboratory notebook for GPT-2 which you might find easier to work with to see what generating samples is like (but it doesn't have training). On the other hand, this one seems to be designed for training a custom variant. Click on the ipynb file, and there should be an 'open in Colab' button you can use.Last edited by NichG; 2019-10-05 at 08:34 PM.
-
2019-10-05, 09:13 PM (ISO 8601)
- Join Date
- Oct 2019
Re: Co-DMing with an AI
This reminds me of an AI back when i was in university. It could write a paper with charts and everything. It sounded nice but was basically nonsense.
This seems way more useful especially if you could insert some parameters of your world
-
2019-10-05, 10:23 PM (ISO 8601)
- Join Date
- Dec 2010
Re: Co-DMing with an AI
You can use prompts (give it a few paragraphs of context), but directly injecting prior information is still an open research question (some stuff from Facebook from a few years ago, but I don't know the current status). If we could do that, it feels like we're pretty close to the level where we could use this for NPC conversations in computer games and have it be sufficient quality to be at least climbing the far side of the uncanny valley.
-
2019-10-06, 11:34 AM (ISO 8601)
- Join Date
- Sep 2016
Re: Co-DMing with an AI
Presumably as a half way house you could submit say Dumas to it having replaced "France" with "[My Country]", "England" with "[Enemy Country]".
Then after you let it go through most of the neural net, and then substitute back in from your games table.
Then if necessarily have something afterwards to do a bit more playing with it.
You'd have some oddities. "I'm named after the Beatles Song, Peter in the sky with Diamonds"
Alternatively you could have a separate program write the prompt texts from a known table (which is basically doing both the substitutions above before the neural net) and well designed templates (trial and error, but you only have to get it right once).
-
2019-10-06, 09:32 PM (ISO 8601)
- Join Date
- Dec 2010
Re: Co-DMing with an AI
I'm thinking more like, I want this NPC to be trying to convince the player to buy things, while that NPC is worried about events going on around their homestead, and that one is administering an empire and is suspicious of there being a foreign spy in their court and wants to find out who it is.
Presumably you could fine-tune a separate model for each NPC, but then you're looking at something like a 1gb per NPC download, much of which is redundant...
-
2019-11-09, 01:04 AM (ISO 8601)
- Join Date
- Nov 2008
Re: Co-DMing with an AI
the gods were exceeding themselves in their hubris
Or the point could be that the real hubris is calling themselves "the gods". But I'm not giving the generator that much credit.The gnomes once had many mines, but now they have gnome ore.
-
2019-11-09, 05:59 AM (ISO 8601)
- Join Date
- Aug 2008
Re: Co-DMing with an AI
I would really like to see a game made by Obryn, Kurald Galain, and Knaight from these forums.
I'm not joking one bit. I would buy the hell out of that. -- ChubbyRain
Current Design Project: Legacy, a game of masters and apprentices for two players and a GM.
-
2019-11-09, 03:17 PM (ISO 8601)
- Join Date
- Jan 2012
Re: Co-DMing with an AI
Crazy thought, but what about using fairy tales? Not sure if there are particular formatting requirements, but there's plenty of plaintext files containing fairy tales floating about.
-
2019-11-11, 01:02 PM (ISO 8601)
- Join Date
- Feb 2016
Re: Co-DMing with an AI
Last edited by Bohandas; 2019-11-11 at 01:03 PM.
"If you want to understand biology don't think about vibrant throbbing gels and oozes, think about information technology" -Richard Dawkins
Omegaupdate Forum
WoTC Forums Archive + Indexing Projext
PostImage, a free and sensible alternative to Photobucket
Temple+ Modding Project for Atari's Temple of Elemental Evil
Morrus' RPG Forum (EN World v2)