Avatar

stingpie

stingpie@lemmy.world
Joined
2 posts • 111 comments
Direct message
Deleted by creator
permalink
report
parent
reply

There are bindings in java and c++, but python is the industry standard for AI. The libraries for machine learning are actually written in c++, but use python language bindings. Python doesn’t tend to slow things down since machine learning is gpu-bound anyway. There are also library specific programming languages which urges the user to make pythonic code that can be compiled into c++.

permalink
report
parent
reply

I completely agree that it’s a stupid way of doing things, but it is how openai reduced the vocab size of gpt-2 & gpt-3. As far as I know–I have only read the comments in the source code– the conversion is done as a preprocessing step. Here’s the code to gpt-2: https://github.com/openai/gpt-2/blob/master/src/encoder.py I did apparently make a mistake, as the vocab reduction is done through a lut instead of a simple mod.

permalink
report
parent
reply

Can’t find the exact source–I’m on mobile right now–but the code for the gpt-2 encoder uses a utf-8 to unicode look up table to shrink the vocab size. https://github.com/openai/gpt-2/blob/master/src/encoder.py

permalink
report
parent
reply

This might be happening because of the ‘elegant’ (incredibly hacky) way openai encodes multiple languages into their models. Instead of using all character sets, they use a modulo operator on each character, to make all Unicode characters represented by a small range of values. On the back end, it somehow detects which language is being spoken, and uses that character set for the response. Seeing as the last line seems to be the same mathematical expression as what you asked, my guess is that your equation just happened to perfectly match some sentence that would make sense in the weird language.

permalink
report
reply

I don’t know about that guy, but I used to have a speech impediment that meant I couldn’t pronounce the letter R. I went to several speech therapists, so I started to annunciate every other letter, but that made people think I had a British accent. Anyway, I eventually learned how to say R, so now I have a speech impediment that makes me sound like a British person doing a fake American accent.

permalink
report
parent
reply

If course it’s written in lisp. Though I’d expect it to be more like EURISKO or Cyc, instead of a more conversational ai.

permalink
report
parent
reply

Episode 1736362: “Mr. Burns stands up and waves his hands while yelling”

permalink
report
reply
Deleted by creator
permalink
report
reply

Yeah, mine. EYYYYOOOOO! (I may or may not have ED)

permalink
report
parent
reply