GPTWorld / README.md
Sasha Rush
save
b893f76
---
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