NaNoGenMo / 2020

National Novel Generation Month, 2020 edition.
76 stars 0 forks source link

Intent to participate: Teens Wander Around a House, updated #36

Open duck-master opened 3 years ago

duck-master commented 3 years ago

Hi everyone! (Possibly the youngest contributor here.) I plan on reimplementing Teens Wander Around a House in Python, with some GPT-2-generated text layered on top, and the setting changed to the night of Y2k38. That's all.

duck-master commented 3 years ago

Update: After manually transpiling @karpathy's code from JS to Python (and re-architecturing some of it along the way), I have a functional code draft here. If you run it, it should eventually print out a TWAAH-ish story on the order of 50k words (possibly fewer or more due to inherent stochasticity). It comes with timestamps, because canonically the narrative is actually written by a "smart home" system observing the teenagers.

Stuff I still have to do to finish:

duck-master commented 3 years ago

Another update: I've implemented the first two things and placed the output in an actual file. The result is here. Tomorrow night I'll get to working with GPT-2 and continuity.

(Extremely minor note: I've set the mansion in PT because @karpathy was there. Unfortunately, this means that the time jump happens at 7:14pm, which is in the early evening; as the characters arrive in the afternoon and are set to stay there until the next morning, this means that the time jump occurs very early into the novel. I need to figure out how to pick narratively satisfying start and stop times.)

duck-master commented 3 years ago

Third update: It looks like GPT-2 is unexpectedly difficult to work with.

Libraries I've tried:

Screen Shot 2020-11-29 at 12 34 42 AM

(This is me trying to fine-tune GPT-2 on my entry from before. Code taken from documentation.)

Screen Shot 2020-11-29 at 12 58 27 AM

I'll let you know if I can get GPT-2 to properly generate text. Feel free to suggest how I could make it work.

duck-master commented 3 years ago

Fourth update: Got GPT-2 to work from terminal, but mysteriously not from shell.

Screen Shot 2020-12-27 at 2 22 40 AM
duck-master commented 3 years ago

After much reflection, I've decided that I want to declare this finished. I already have an output of the required length, and GPT-2 is pretty hard to work with anyways.