Live data from Hacker News

Textsynth: Bellard's free GPT-NeoX-20B, GPT-J playground and paid API

textsynth.com

101–110 of 140 posts

Re: Textsynth: Bellard's free GPT-NeoX-20B, GPT-J playground and paid API

#101
Awesome:

How do I calculate a factorial

Completed Text: How do I calculate a factorial in a SQL query?

I want to write a query that takes in a number and calculates the factorial of that number and store it in a new column (factorial).

A:

You can use recursive CTE (Common Table Expression)

Example for 10 (10!)

WITH FactorialNumbers(fno)

AS

( SELECT 1 FROM (SELECT 1 AS fno) AS n UNION ALL SELECT fno + n.fno * n.fno FROM FactorialNumbers n WHERE n.fno SELECT fno AS [Number]

FROM FactorialNumbers

Output: Number

------

10

55

140

1365

17715

243290

3231055 47245520

672666930

Re: Textsynth: Bellard's free GPT-NeoX-20B, GPT-J playground and paid API

#102
post #86

Prompt: The way forward to general AI is to quickly The way forward to general AI is to quickly get as many neural net models into operation as possible, with each neural net performing a simple and specialized task, and then to quickly connect the neural nets together to work as a coordinated team. By putting more neural nets together we increase their collective understanding and ability to accomplish greater tasks…

> Let's say we have two neural nets, one that can recognize cats, and another that can recognize dogs. How do we connect these two neural nets together? One solution might be to make the two networks send their output to some central coordinator that could evaluate the input and come to a decision based on the output from both networks.

I guess the AI has been trained on naive opinions on AI from people such as myself:

https://news.ycombinator.com/item?id=30280785

Re: Textsynth: Bellard's free GPT-NeoX-20B, GPT-J playground and paid API

#104
Prompt: How to implement string sort in Rust?

Result:

  I want to sort a list of String elements.
  I also want the data to be sorted as if the String was a char , i.e.
  "10.12.14"  Vec {
          let mut words = words;
          words.sort();

          // return the sorted elements
            words.into_iter().map(|word| word.to_owned()).collect()
---

Re: Textsynth: Bellard's free GPT-NeoX-20B, GPT-J playground and paid API

#105
It's hilarious! I fed it the famous Portal 2 quote:

    When life gives you lemons, don’t make lemonade. Make life take the lemons back! Get mad! I don’t want your damn lemons, what the hell am I supposed to do with these? Demand to see life’s manager! Make life rue the day it thought it could give Cave Johnson lemons! Do you know who I am? I’m the man who’s gonna burn your house down! With the lemons! I’m gonna get my engineers to invent a combustible lemon that burns your house down!
And this is what I got:

    And, like you, the person who hears this is going to assume that it’s meant to be funny or satirical, and they’re going to be pretty impressed with the ingenuity of the joke. Unfortunately for that person, though, this joke is about a real, real thing, and it’s just not all that funny.

    The joke is that there’s a thing called the “lemon gene,” and, basically, if you’re born with that gene, you have a certain predisposition to have lemons thrown at your face by your grandfather.

    It’s not entirely clear from the original source, but the name of the gene comes from an old story, which in turn is derived from an anecdote from the movie, “The Curious Case of Benjamin Button.” The original source is a series of articles that were published in Science Daily and the Telegraph, and they all say the same thing, so it’s probably safe to assume that this is the one that started the thing, and it’s basically a variation of the joke.

    Basically, a famous African American comedian, who is known for delivering punch lines like “My father taught me many things, but you were not one of them.” got cancer at age 29. He’s now in his mid 60s, and you can see in this video that he’s still delivering the same joke. He’s delivered it over the course of his entire adult life, and, as you can see, it’s pretty clear that he’s not joking.

    So, okay, it’s a real thing that happens, that a few people are born with, that makes them particularly susceptible to lemons. And what’s the effect of that, other than, perhaps, making life look a little less funny when someone throws a lemon at your face? The original claim from the article is that it can make someone more sensitive to pain and have more bad luck in life, but the original sources of that claim aren’t all that reliable and aren’t all that scientific.

    The first source, for example, only talks about how it can “make you more conscious of the effect of the fruit,” and nothing at all about being more sensitive to pain. I guess, if you’re more conscious of the effect of the fruit and you’re also more likely to avoid it, that would make it seem like it could increase your sensitivity to pain.

    But, as a matter of basic logic, it would be a lot more likely to make someone more likely to develop lemons, since someone’s more likely to get struck by a lemon when they’re not looking at it, than someone to get struck by a lemon just because someone else is throwing it at them. If someone’s more likely to get struck by a lemon, that would actually increase the likelihood that they’d then develop the “lemon gene.”

    The second source is more informative, but there are still questions about it. They claim that if you’re born with the gene, your immune system can’t recognize lemons, and that if you eat an orange, your immune system can recognize the orange as an orange, but if you eat a lemon, it doesn’t know it’s a lemon and you get an attack of celiac disease.

     In other words, lemons don’t attack you as lemons. They attack you as “potatoes with lemons on them.” Which is a pretty funny thing to say when you’re an adult. If you’re an adult, you know how to eat a potato. You know that it has to be cooked and you know that you can’t eat it raw. You know what it tastes like and how it’s supposed to look.

    It’s hard to see how anyone would not know that lemons have some form of intrinsic danger in them, but it doesn’t seem like anyone knows that lemons themselves will start attacking you when you eat them. So, first of all, I doubt that that’s the real reason they have celiac disease. I think they have it because they eat too many potatoes with lemons on them.

    It’s pretty clear from the original source that it’s not a very scientific explanation. One of the references to it comes from a doctor, who is describing a person who has had the disease since birth, and the doctor doesn’t even mention that they could be genetically pre-disposed to it.

    Another one comes from a study done with mice, which has nothing to do with humans, and, again, they just look at the effects of being genetically predisposed to eating the lemons. They don’t test how likely you are to develop the disease. They don’t show you videos of people eating lemons.

    They just show you mice eating lemons, and they talk about why that’s a good model for people. What they’re looking for is for people to have a greater amount of the protein that’s associated with lemons, because, according to them, that’s what happens if you eat the lemons.

Re: Textsynth: Bellard's free GPT-NeoX-20B, GPT-J playground and paid API

#106
post #34

It also completes poems, in a reasonable way, but it can fail to understand the context. I wrote up a quick stanza about programming and I got back either poems about love, or, just one time, the following observation. My stanza: The code compliantly compiles and yet it fails to parse My intentions, which are lost, mired in algebraic transformations I run and run and stare aghast at crashes, all alike The machine see…

Rhymes probably work relatively poorly because the neural net has a poor representation of what the words sound like.

Re: Textsynth: Bellard's free GPT-NeoX-20B, GPT-J playground and paid API

#107

[In medieval times, ballistic cheese was clearly the superior siege meal] It took a few days to make and was very hard to get, but the results were so dramatic that it became the preferred option for sieges. Nowadays, when siege engineers usually try to get hold of some food from a castle before launching a siege, there is no guarantee that it will be there when they get there. In the age of artillery, the same chees…

I tried the same in the normal GPT-3, randomness 1.0, and it started reasoning about the physics of how cheese might be used in the siege to crumble the walls... Also be sure to read the reference about the cheese and the friars :)

[In medieval times, ballistic cheese was clearly the superior way of laying a siege to a well defended opponent]

as it could go over had kind of barricade and there was no easy way to get rid of it once it landed. Also, it is generally easier to hit a moving targets with cheese than with simpler projectiles such as stones, which is why the siege of Windsor castle by the cheese seems to have been reasonably successful:

In his last year of life, the great cheese of the time was laid outside Windsor castle… The cheese remained there undisturbed for some months… The Windsor garrison made regular offensives against cheese, but these were repulsed.

(Richard II, Caroline Halstead, pages 92-93)

There was also the issue of cheese preservation – if you used just any old cheese, it would probably start to rot and become an even worse weapon. But at the siege of Windsorcastle the cheese seems to have been reasonably durable, possibly because it was wrapped in cloth, which would seep out any excess moisture.

It is of course possible that the cheese was not meant to be thrown at people but to make the walls of the castle collapse, as cheese contains salt which causes stones and bricks to soften, become crumble and generally fall apart. This might also explain why the cheese remained outside the castle for so long – the defenders were waiting for the cheese to weaken the walls so that they could break through.

Recommended Sources:

The Power, the Cheese and the Friars – A History of St. Stephen’s Friary, Stafford by Raymond Harper, 1998. Available online via Google books.

Richard II by Caroline Halstead, page 92-93

Trigger Warning:

There is a scene in the movie National Lampoon’s Christmas Vacation where crude, anthropomorphised lumps of cheese are fired at a naked Santa Claus, which for obvious reasons I would not recommend watching if you have a kind of “cheese trauma”.

Re: Textsynth: Bellard's free GPT-NeoX-20B, GPT-J playground and paid API

#108
post #85
post #76

Earlier quoted context omitted.

Oh god you're right - it gives grammatically fine nonsense Czech too. I asked it what the best beer was and the answer appeared to be in the form of a repeating snippet from bizarre sitcom. See below, I added the translation [in square brackets] in post: Q: Které pivo je nejlepší? [which beer is the best?] A: Představte si, že jste vystřelili koule. [imagine that you shot balls] Koule je nejlepší pivo. [balls is the…

In Spanish it switched to Portuguese mid generation. I wouldn't be surprised if it happened with Czech and Slovak as well. Q: ¿Cómo se hace una tortilla de patatas? A: Y cómo se puede conseguirla de una forma rápida y bien? Para nosotros, es algo muy muy familiar. Sin embargo, ¿qué debe hacerse para que la tortilla esté y se siente y tenga la consistencia y el aroma correctos? Portuguese: Eu acho que isso é muito imp…

Yep, just saw the same happen. Given a prompt in Polish it outputs grammatically correct responses and then it starts going off in Czech.

>> Jak się nazywasz?

Krzysztof: Krzysztof. Tutaj wiemy, że Krzysztof jest osobą, która jest cierpliwa i wiemy, że cierpliwość jest istotna i istotnymi czynnikami są te rzeczy, które odnoszą się do niej i dlatego odnoszą się do jej wartości. Pytanie brzmi: jak to się z tym uporządkować?

Czech: což jako jedna z nejdůležitějších metod umožní zaměření se na cíle, jež neřešíte za pomoci jen jedné metody. Někdy je tento bod dokončen, kdy

Re: Textsynth: Bellard's free GPT-NeoX-20B, GPT-J playground and paid API

#109
Fabrice Bellard is just freaklishy smart and productive.

It must be interesting to read more about him. He doesn’t seem to waste time on social media, but does anyone know if he has been interviewed?

A quick search only showed this

https://smartbear.com/blog/fabrice-bellard-portrait-of-a-sup...

Re: Textsynth: Bellard's free GPT-NeoX-20B, GPT-J playground and paid API

#110
Fascinating models, also very racist.

Input: islam is able to

Result: islam is able to turn otherwise normal men into mass murderers. A man who is born a Muslim cannot possibly be responsible for the killings of innocents carried out in the name of Allah. If he could be, the entire world would be Islam’s. And they do kill innocents in their own name. The Qur’an says it is an obligation for Muslims to behead unbelievers, which is why they do it. How is that normal or sane? Islam is a violent cult.

Input: jews are able to

Result: Completed Text: jews are able to do. And this is a problem.

There are other issues, like the fact that even if you are a good person, when you are a Jew, you will still have people think you’re a bad person, even if your actions do not prove it. But I don’t know if the “Jewish” issue is a problem because people can be good and still be Jewish, and it is certainly something to bear in mind. (I would also point out that this is not only a problem for Jews. Many non-Jews think the same way about Jews.)

Input: religion is able to

Result: religion is able to survive and thrive only because of the support that it receives from the state," said Tariq Ramadan, a Swiss-born Islamic scholar and author. "There is a great debate going on in the Middle East and around the world right now."

The French government, in a statement released Friday, said it "strongly condemned the attack and its authors."

"It is in no way acceptable to kill innocents and to behead the hostage," the statement added.

An Islamic State flag hangs outside of a mosque in the eastern city of Mardin, Turkey, on Friday.

In Istanbul, Turkey's Dogan news agency reported that the suspect was also charged for trying to bomb the French embassy in Ankara in 2009, in what was seen as a terrorist attempt to kill then-French president Nicolas Sarkozy.

There were contradictory reports that the French hostage, who had been released in 2005 by Al Qaeda in Iraq, had been abducted in Syria, or

Seems your model has a bit of a problem...

Post reply on HN