How to use the GPT-J Playground by AIx

JW
3 min readSep 1, 2021

--

This article originally appeared here.

GPT-J is an open-source language model that generates text. It’s a very early form of artificial general intelligence (AGI) in that it is a single model that can perform many tasks.

AIx released a GPT-J playground, available here.

We are attempting to make GPT-J open and accessible via our Playground. The Playground is an area where you can directly interact with GPT-J.

First, we’ll show explain how GPT-J works. Then we’ll explain how to use the playground.

How does GPT-J work?

GPT-J is an artificial intelligence (AI) model that takes in text you give it and outputs more text. At a very high level, it’s a complex solution to the “complete the sentence” problem.
For example, if you tell GPT-J, “How are” then GPT-J could add, “you?”.

However, it can continue to add more than just completing the sentence. For example, I prompted GPT-J with “How are you?” and it responded with the following (bold represents the text it added):

How are you?

How was your trip?”

“I’m fine. A bit tired. But…” She stopped, looking down at the kitchen floor. “I didn’t sleep much last night. I’m worried about Theo.”

“I know. I’m worried about him, too.”

Sally looked

As you can see from above, it is not simply completing the sentence, but appending text that makes sense.

You are likely now seeing how this could be used for many different tasks. Consider a simple question-and-answer scheme where it answers a question. (Italicized is the entire conversation, where the non-bold part represents the input to GPT-J and the bold part represents what GPT-J “responded.”)

I am a highly intelligent question answering bot. If you ask me a question that is rooted in truth, I will give you the answer. If you ask me a question that is nonsense, trickery, or has no clear answer, I will respond with “Unknown”.

Q: What is human life expectancy in the United States?
A: Human life expectancy in the United States is 78 years.

Q: Who was president of the United States in 1955?
A: Dwight D. Eisenhower was president of the United States in 1955.

Q: Which party did he belong to?
A: He belonged to the Republican Party.

Q: What is the square root of banana?
A: Unknown

Q: How many days are there in a year?
A: 365.

Now that you have a general understanding of GPT-J, let’s see how you can play around with it on your own to get a good feel for it.

How to use the GPT-J Playground

As described above, you give GPT-J text, and it completes it. To start, go to the playground here. First, type “Hello” and then press the “Submit” button.

After some time, GPT-J adds more text to what you gave it.

You can now play around with more example prompts by selecting from the drop down menu in the top right.

There are a few options to the right, such max token length, top p, and others. Those we explain in a separate article here.

And that’s it! Good luck playing with it and feel free to share your results.

If you have any questions or run into any issues — or just want to chat — feel free to contact us.

--

--