File size: 1,557 Bytes
ca8e17b
 
 
 
b893f76
ca8e17b
 
 
 
 
4cb5919
90f17e1
aadb98e
dffbd1c
aadb98e
dffbd1c
40177fd
dffbd1c
aadb98e
0fddd3d
aadb98e
3c6c3ba
aadb98e
0fddd3d
0c87db1
 
aadb98e
dffbd1c
f5bda59
 
 
 
 
 
aadb98e
0fddd3d
aadb98e
0fddd3d
69d831c
0c87db1
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
title: GPTWorld
emoji:  🌎
colorFrom: blue
colorTo: green
sdk: gradio
app_file: app.py
pinned: false
---

# GPTWorld - Prompt Golf

<p align="center">
<a href="https://colab.research.google.com/github/srush/GPTWorld-Challenge/blob/main/GPT4_game.ipynb" target="_parent"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab\"/></a>
</p>

GPTWorld is an educational environment to learn about Prompting.
It consists of a grid-world environment to test the ability of language models to follow instructions in a grounded environment. 
You instruct the model to generate code to play the game. 

<p align="center">
<img src="https://user-images.githubusercontent.com/35882/234447369-6a4ca94d-5bb8-4c8e-a34d-a1ff0614bf7d.gif" />
</p>

## Goal

The goal of the puzzle is to construct a prompt that can get GPT-4 to solve a complex game. You can watch in real-time as GPT plays the game. 

Use this link to get started: 

<p align="center">
<a href="https://colab.research.google.com/github/srush/GPTWorld-Challenge/blob/main/GPT4_game.ipynb" target="_parent"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab\"/></a>
</p>

<img width=500px src="https://user-images.githubusercontent.com/35882/234614176-789fd6a8-bc7c-4f42-889b-81b3879cca36.png"/>

## Leaderboard

I was able to solve the big puzzle using roughly 2000 tokens (input/output). Can you do better? I'll post the best ones here.

## Other Puzzles

If you find this fun also check out.

* https://github.com/srush/GPU-Puzzles