Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/woctezuma/sample-steam-descriptions
Sample Steam descriptions with the GPT-2 language model.
https://github.com/woctezuma/sample-steam-descriptions
117m 345m game games gpt-2 gpt2 half-life-3 half-life-3-description openai steam steam-api steam-descriptions steam-game steam-games steam-store-descriptions text-generation textgenrnn
Last synced: 21 days ago
JSON representation
Sample Steam descriptions with the GPT-2 language model.
- Host: GitHub
- URL: https://github.com/woctezuma/sample-steam-descriptions
- Owner: woctezuma
- License: mit
- Created: 2019-06-01T22:12:03.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-03-14T22:16:58.000Z (10 months ago)
- Last Synced: 2024-03-15T12:06:36.450Z (10 months ago)
- Topics: 117m, 345m, game, games, gpt-2, gpt2, half-life-3, half-life-3-description, openai, steam, steam-api, steam-descriptions, steam-game, steam-games, steam-store-descriptions, text-generation, textgenrnn
- Language: Jupyter Notebook
- Homepage:
- Size: 19.9 MB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sample Steam Descriptions
[![Build status][build-image]][build]
[![Code coverage][codecov-image]][codecov]
[![Code Quality][codacy-image]][codacy]This repository contains Python code to sample Steam store descriptions, with the GPT-2 language model.
![Generated description, using GPT-2](https://github.com/woctezuma/sample-steam-descriptions/wiki/img/cover.png)
## Requirements
- Install the latest version of [Python 3.X](https://www.python.org/downloads/).
- Install the required packages:```bash
pip install -r requirements.txt
```## Usage
### Download app details, which include Steam store descriptions
Store descriptions are parsed from app details, which can be downloaded with `steam_spy.py` in my [`steam-api`](https://github.com/woctezuma/steam-api) repository.
A data snapshot is available in my [`steam-api-data`](https://github.com/woctezuma/steam-api-data) Github repository.
### Concatenate Steam store descriptions in a large text file
```
python export_description_data.py
```A data snapshot is available in [`data/`](data/).
### Fine-tune a pre-trained GPT-2 model
Run the [`gpt_2_for_descriptions.ipynb`][gpt_2_for_descriptions] notebook on [Google Colab](https://colab.research.google.com/), which relies on the [`gpt_2_simple`](https://github.com/minimaxir/gpt-2-simple) package.
[![Open In Colab][colab-badge]][gpt_2_for_descriptions]## Results
Results obtained after 5000 steps using the 117M model:
- [Unconditional generation](https://github.com/woctezuma/sample-steam-descriptions/wiki/Unconditional_Generation)
- [Half-life 3](https://github.com/woctezuma/sample-steam-descriptions/wiki/Half_Life_3)
- [Spelunky 2](https://github.com/woctezuma/sample-steam-descriptions/wiki/Spelunky_2)Results obtained after 1000 steps using the 345M model:
- [Unconditional generation](https://github.com/woctezuma/sample-steam-descriptions/wiki/Unconditional_Generation_345M)
- [Half-life 3](https://github.com/woctezuma/sample-steam-descriptions/wiki/Half_Life_3_345M)
- [Spelunky 2](https://github.com/woctezuma/sample-steam-descriptions/wiki/Spelunky_2_345M)## References
- [OpenAI, a blog post about GPT-2, 2019](https://openai.com/blog/better-language-models/)
- [Max Woolf, API for GPT-2, 2019](https://github.com/minimaxir/gpt-2-simple)
- [GPT-2 Neural Network Poetry, 2019](https://www.gwern.net/GPT-2)
- My repositories to sample reviews for Steam games:
- [`sample-steam-reviews`](https://github.com/woctezuma/sample-steam-reviews)
- [`sample-steam-reviews-with-gpt-2`](https://github.com/woctezuma/sample-steam-reviews-with-gpt-2)[build]:
[build-image]:[pyup]:
[dependency-image]:
[python3-image]:[codecov]:
[codecov-image]:[codacy]:
[codacy-image]:[gpt_2_for_descriptions]:
[colab-badge]: