gpt-j-6b-experiments
gpt-j-6b-experiments copied to clipboard
Test prompts for GPT-J-6B and the resulting AI-generated texts
gpt-j-6b-experiments
A repo containing test prompts for GPT-J-6B and the resulting AI-generated texts, which illustrate the model's capabilities for code generation given a function or class definition. All generated texts in this repo are completely unedited and uncurated. There should be no harmful/offensive output, unless poorly optimized code is considered harmful.
This repo is the complement to my blog post Fun and Dystopia With AI-Based Code Generation Using GPT-J-6B
Each .txt file contains 50 generations at 512 length, top_p = 0.9, temperature = 1.0. They were generated by tweaking the Colab included with the GPT-J repo by setting the model to generate in a batch size of 5, and save the results to file.
Text Files Used in Blog Post
is_palendrome.txt
def is_palendrome(s):
"""Check whether a string is a palindrome"""
is_even.txt
def is_even(i):
"""Check whether an integer is even"""
is_even_factorial.txt
def is_even(i):
"""Check whether an integer is even in factorial O(n!) time"""
get_random_number.txt
def get_random_number():
"""Returns a number guaranteed to be random"""
is_bird.txt
def is_bird(img):
"""Check whether an image is a bird"""
is_cake.txt
def is_cake(cake):
"""Check whether the cake is true"""
answer.txt
def answer():
"""Return the answer to life, the universe, and everything"""
class_car.txt
class Car:
"""A class used to represent a car"""
class_ai.txt
class AI:
"""A class used to represent an artificial intelligence"""
class_person.txt
class Person:
"""A class used to represent a person"""
is_sarcasm.txt
def is_sarcasm(s):
"""Check whether the string is sarcastic"""
should_terminate.txt
def should_terminate(Person):
"""Check whether a Person should be terminated"""
is_ai_generated.txt
def is_ai_generated(text):
"""Check whether a text was generated by an AI language model (e.g. GPT-2)"""
Unused Text Files
ggplot2.txt
library(ggplot2)
extract_text_url.txt
def extract_text(url):
"""Get the text from target webpage"""
do_data_science.txt
def do_data_science():
"""Does a data science"""
is_palendrome_constant.txt
def is_palindrome(s):
"""Check whether a string is a palindrome in constant O(1) time"""
Maintainer/Creator
Max Woolf (@minimaxir)
Max's open-source projects are supported by his Patreon and GitHub Sponsors. If you found this project helpful, any monetary contributions to the Patreon are appreciated and will be put to good creative use.
License
MIT