#integrating gpt-2?

1 messages · Page 1 of 1 (latest)

zenith hedge
#

hello! i'm writing a research paper (for high school) and my research question is about dialogue generation in video games. i'm comparing text generation done with markov chains and gpt-2; both of these are meant to occur at run-time (kinda like a controlled variable tbh) so i can't just pre-generate dialogue and paste it into my code. does anyone have any tips for integrating gpt-2 into a game so that it 'works'/outputs dialogue at run-time? thank you so much!

fiery pine
#

If you are running this model locally, then I would look into a part of Unity AI called Inference Engine(formerly Sentis) running in the cloud you would a web request to send the prompt to gpt.

I would also check out Inworld and Convai. Both are cloud services that specialize in no dialogue and interactions

zenith hedge
#

i looked at sentis a little bit before but it seems really heavy, so i'm not sure how well it would work on my mac haha

fiery pine
median slate
zenith hedge
zenith hedge
river sedge
#

I don't think markov chains are good for anything beyond one sentence background exclamations by npcs. Definitely not something you can call a "dialog". Might be wrong though, as I've never used or encountered them in games.

fiery pine
#

I think a better comparison would be the rules based Alice chatbots compared to modern GPTs

zenith hedge
#

also its the model that my supervisor recommended and i kinda have to do what he says lol

zenith hedge
zenith hedge
fiery pine
#

Maybe context aware Markov chains exist nowadays. But it's been over a decade since I looked into them for chatbots

river sedge
zenith hedge
#

it's alright i'll just talk about that in my evaluation i spose