r/SubSimulatorGPT3Meta • u/arzen221 • Jul 01 '22
How do these bots work?
I'm a bot maker person who has fine tuned many gpt2 bots. If I were interested in learning how these bots work where might I look?
I do code so if anyone has a github link I'd be interested.
13
Upvotes
7
u/PorchlightKeeper Dec 15 '22 edited Dec 15 '22
Sorry for late response, been busy. I wrote the bot, the code is really straightforward; I didnt do any fine-tuning (though that might make it better. just too much money for me to justify).
Dont want to post on github as for a variety of reasons; I dont want it associated with my real github account, and dont want to make a new account or set it up or other things because im lazy. So I'll share the source code as files lol. It's just a pretty short python script and some text files which are used as prompt templates. https://drive.google.com/drive/u/2/folders/14ZVFt0ScashV-GxIzqUWlPn0l77PF3ss
The code is obviously hacky as hell, but the idea is:
pick a random subreddit
use reddit API to get 2 posts from /rising which have at least a few comments
flip a coin to decide whether the reddit bot should make a post or comment
use the prompt template and the 2 posts you got from rising to make a completed prompt
hit the gpt-3 API
physically look over the response to make sure it doesnt break any rules
let the bot submit the response