Rockin' out with an AI

AI is all over the news these days. It’s even inspired a pretty awesome stock market rally. I’ve been doing some exploration of what is out there and one of the more interesting things I ran across was MusicGen. It does what’s on the tin: generates music using a Language Model (LM). It’s interesting even if the music isn’t great, it does fit with the description used to generate it. I haven’t played around with it yet, but I plan to see if I can generate some cool theme songs for my dogs.

Read More

More fun with GPT

I was curious to see how well ChatGPT could solve a simple programming problem, so I asked: Write a JavaScript function to return the prime factors of a number in an array. A few seconds later, it came back with a pretty good answer: function primeFactors(num) { const factors = []; // check if number is prime function isPrime(n) { if(n<2) return false; for (let i = 2; i <= Math.

Read More

GPT says

I don’t know why I bother. I’ve been following advances in AI with interest and it’s getting scary good. A big story recently is about how uncannily good ChatGPT is at writing text that is essentially indistiguishable from what a person might write. So, I tried it by generating some text on a subject like yesterday’s post: what is JavaScript spread syntax? The ChatGPT response? JavaScript spread syntax is a way to expand an array or an object into a list of items or key-value pairs, respectively.

Read More

Smarter than your average bear

The scale of the GPT-3 neural network is stunning. There are some models that are even larger, but GPT-3 is pretty much state of the art. It’s a very interesting thing to play around with. If you sign up and get a free account, you can access the Playground which has some examples of different kinds of problems (e.g., chat, explain to a second grader, translation, etc.). There is also an API that is straightforward.

Read More