Lurker News
Hey HN! Author of the site here. I tried a few tricks to keep the text-generation part of the site up, but even leaning hard on Huggingface's API and bumping time-outs up, it looks like the site is struggling a bit. I'm going to see if there's anything I can do to keep the text-generation part available, but in the meantime, the pre-generated set should stay pretty stable. Not sure if there's much else I can do without burning a hole in my cloud bills — sorry for the troubles!

I've put up a more detailed description of how this works on the GitHub - https://github.com/thesephist/modelexicon
PS - if anyone at Huggingface is reading this and wants to help out with keeping the API up, that would be super :)

Comments (71) 35 threads

Show all comments

Showing thread 6 of 35

sillysaurusx2 replies#
As someone who has trained around 60 GPT-2s, this is damn impressive work. It’s very hard to get consistent code quality when the training corpus is so small (as this one undoubtedly was).

https://thisaidoesnotexist.com/model/MozartNet/JTdCJTIyZGVmb...
The url scheme is interesting. I wonder what it base64 decodes to. If I were at a computer I’d check. It might be a complete representation of the inputs to the model, which is then cached. Which implies you might be able to fiddle with it to get specific outputs.

Ndymium1 reply#
Looks like the URL path just contains the generated output and not the inputs.
thesephist#
Yep. I didn't want to have to host user-generated data (for all the perils that carries), so the sharable links work by embedding all the generated data in the link itself.
ALittleLight1 reply#
The base64 in the URL decodes to a URL formatted JSON blob that seems to describe the contents of the page.

    {
       "defn":"MozartNet is a sequence to sequence deep neural network trained on the music of Wolfgang Amadeus Mozart. It is used to generate music for a piano transcription in a completely unsupervised fashion. MozartNet is an instance of a more general family of networks known as 'autoregressive networks', and is trained on a synthetic dataset of about 1 million short sequences of piano notes. The network is a two layer LSTM and is trained with L2 regularization to minimize the total number of parameters. MozartNet is one of the most widely used and best-performing autoregressive networks, and is often cited as an example of using a neural network for the purpose of learning the structure of music.",
       "usage":"from nmt import \*\nnet = Model()\nnet.load_weights(\"/tmp/mozartnet.h5\")\n\n# get the source text\nsequence = net.encode(\"GDAEADBBGEDC\", output_chars=\"p\", max_length=5)\n\n# decode it\nsource_sequence = net.decode(sequence)\n\n# print it\nprint(source_sequence.as_list())"
    }
sillysaurusx#
If you insert a url, or html tags, does the site properly sanitize the output?

It’s remarkably difficult to suppress pentesting urges after doing it for a year.
And if you try to generate your own, the usage section usually fails. I wonder if it elides the usage key.
Modern websites are pretty fun. I like the simplicity here. And also the meta: https://thisaidoesnotexist.com/model/HackerNewsReplyGuy/JTdC...