From f2ed6c8069a9a98d9224f8c36703430a4662027c Mon Sep 17 00:00:00 2001 From: AccidentallyOnPurpose <4935931+AccidentallyOnPurpose@users.noreply.github.com4935931+AccidentallyOnPurpose@users.noreply.github.com> Date: Tue, 24 Dec 2019 19:43:45 +0800 Subject: [PATCH] tidy --- .github/ISSUE_TEMPLATE/bug-report.md | 29 ---------------- .github/ISSUE_TEMPLATE/feature-request.md | 20 ------------ .github/ISSUE_TEMPLATE/feature_request.md | 20 ------------ README.md | 16 ++++----- new-requirements.txt | 12 ------- newREADME.md | 40 ----------------------- 6 files changed, 7 insertions(+), 130 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE/bug-report.md delete mode 100644 .github/ISSUE_TEMPLATE/feature-request.md delete mode 100644 .github/ISSUE_TEMPLATE/feature_request.md delete mode 100644 new-requirements.txt delete mode 100644 newREADME.md diff --git a/.github/ISSUE_TEMPLATE/bug-report.md b/.github/ISSUE_TEMPLATE/bug-report.md deleted file mode 100644 index 41f951d..0000000 --- a/.github/ISSUE_TEMPLATE/bug-report.md +++ /dev/null @@ -1,29 +0,0 @@ ---- -name: Bug report -about: Create a report to help us improve -title: "[BUG] " -labels: bug -assignees: '' - ---- - -**Describe the bug** -A clear and concise description of what the bug is. - -**To Reproduce** -Steps to reproduce the behavior: -1. Go to '...' -2. Click on '....' -3. Scroll down to '....' -4. See error - -**Expected behavior** -A clear and concise description of what you expected to happen. - -**Screenshots** -If applicable, add screenshots to help explain your problem. - -**Additional context** -- OS, environment -- Game settings -- Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/feature-request.md b/.github/ISSUE_TEMPLATE/feature-request.md deleted file mode 100644 index 8403b86..0000000 --- a/.github/ISSUE_TEMPLATE/feature-request.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -name: Feature request -about: Suggest an idea for this project -title: "[FEATURE] " -labels: enhancement -assignees: '' - ---- - -**Is your feature request related to a problem? Please describe.** -A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] - -**Describe the solution you'd like** -A clear and concise description of what you want to happen. - -**Describe alternatives you've considered** -A clear and concise description of any alternative solutions or features you've considered. - -**Additional context** -Add any other context or screenshots about the feature request here. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md deleted file mode 100644 index 8403b86..0000000 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -name: Feature request -about: Suggest an idea for this project -title: "[FEATURE] " -labels: enhancement -assignees: '' - ---- - -**Is your feature request related to a problem? Please describe.** -A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] - -**Describe the solution you'd like** -A clear and concise description of what you want to happen. - -**Describe alternatives you've considered** -A clear and concise description of any alternative solutions or features you've considered. - -**Additional context** -Add any other context or screenshots about the feature request here. diff --git a/README.md b/README.md index 4721068..ef994a1 100644 --- a/README.md +++ b/README.md @@ -9,15 +9,13 @@ In 2016, Donald Trump ran for president on a campaign of Making Anime Real. Four ![img](https://i.4cdn.org/v/1576564400002.png) ![img](http://i.imgur.com/NqC0lxG.png) ---insert screenshots here-- -A fork of AIDungeon2, now with huggingface's transformers repo using pytorch gpt2. +A fork of AIDungeon2, now driven by huggingface's transformers repository using PyTorch GPT2. #### Features: ------------------------ -* Half precision floating point using less GPU memory * Complete rewrite of the user interface * Color text output * Suggested actions @@ -27,6 +25,7 @@ A fork of AIDungeon2, now with huggingface's transformers repo using pytorch gpt * Ability to save custom prompts * A much larger library of fan made starting prompts * Better config file +* Half precision floating point using less GPU memory (you still need 8GB+) * Eventually hope to improve the AI itself, but this will take some time #### Installation Instructions: @@ -54,14 +53,13 @@ Windows users *may* want to install another module called "colorama". Though it Then to install just download this repo. Github has a download option somewhere. Or you can use the git command `git clone "https://github.com/cloveranon/Clover-Edition/"` -Then you will need to download the model. Put it in the models folder. Rename it to `pytorch-gpt2-xl-aid2-v5` until we support arbitrary model names. The current torrent file and magnet links are here: +Then you will need to download the model. Put it in the models folder. Rename it to `pytorch-gpt2-xl-aid2-v5` until we support arbitrary model names. The current torrent file and magnet links are here, please seed them if you have a seedbox or homelab: -[Torrent File](https://github.com/AccidentallyOnPurpose/pytorch-AIDungeon/blob/f692e39d84/generator/gpt2/models/model_v5_pytorch.torrent?raw=true) [Magnet Link](magnet:?xt=urn:btih:17dcfe3d12849db04a3f64070489e6ff5fc6f63f&dn=model_v5_pytorch&tr=udp%3a%2f%2ftracker.opentrackr.org%3a1337%2fannounce&tr=udp%3a%2f%2fopen.stealth.si%3a80%2fannounce&tr=udp%3a%2f%2fp4p.arenabg.com%3a1337%2fannounce&tr=udp%3a%2f%2ftracker.coppersurfer.tk%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.cyberia.is%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.moeking.me%3a6969%2fannounce&tr=udp%3a%2f%2f9.rarbg.me%3a2710%2fannounce&tr=udp%3a%2f%2ftracker3.itzmx.com%3a6961%2fannounce) +[Torrent File](https://github.com/AccidentallyOnPurpose/pytorch-AIDungeon/blob/f692e39d84/generator/gpt2/models/model_v5_pytorch.torrent?raw=true) -``` -magnet:?xt=urn:btih:17dcfe3d12849db04a3f64070489e6ff5fc6f63f&dn=model_v5_pytorch&tr=udp%3a%2f%2ftracker.opentrackr.org%3a1337%2fannounce&tr=udp%3a%2f%2fopen.stealth.si%3a80%2fannounce&tr=udp%3a%2f%2fp4p.arenabg.com%3a1337%2fannounce&tr=udp%3a%2f%2ftracker.coppersurfer.tk%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.cyberia.is%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.moeking.me%3a6969%2fannounce&tr=udp%3a%2f%2f9.rarbg.me%3a2710%2fannounce&tr=udp%3a%2f%2ftracker3.itzmx.com%3a6961%2fannounce -``` -Your model folder should look like this: +[Magnet Link](magnet:?xt=urn:btih:17dcfe3d12849db04a3f64070489e6ff5fc6f63f&dn=model_v5_pytorch&tr=udp%3a%2f%2ftracker.opentrackr.org%3a1337%2fannounce&tr=udp%3a%2f%2fopen.stealth.si%3a80%2fannounce&tr=udp%3a%2f%2fp4p.arenabg.com%3a1337%2fannounce&tr=udp%3a%2f%2ftracker.coppersurfer.tk%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.cyberia.is%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.moeking.me%3a6969%2fannounce&tr=udp%3a%2f%2f9.rarbg.me%3a2710%2fannounce&tr=udp%3a%2f%2ftracker3.itzmx.com%3a6961%2fannounce) + +Once downloaded your model folder should look like this: ``` ./models └── pytorch-gpt2-xl-aid2-v5 diff --git a/new-requirements.txt b/new-requirements.txt deleted file mode 100644 index d631dd3..0000000 --- a/new-requirements.txt +++ /dev/null @@ -1,12 +0,0 @@ -google-cloud-storage -gsutil -numpy -profanityfilter -pyyaml==5.2.0 -regex -tracery -transformers==2.3.0 -torch==1.2.0 -colorama -textwrap -pyjarowinkler diff --git a/newREADME.md b/newREADME.md deleted file mode 100644 index f21190a..0000000 --- a/newREADME.md +++ /dev/null @@ -1,40 +0,0 @@ -# Pytorch AI Dungeon2 - -A Fork of Nick Walton's [AI Dungeon2](https://github.com/AIDungeon/AIDungeon) and pytorch as a backend. - -Uses prompts and play.py from the [Clover edition](https://github.com/cloveranon/Clover-Edition) - -I did this because tensorflow is annoying to compile for my xeon processor an it was actually faster to port the generation code. - -No colab yet. - -If you want the converted model, just ask in the issues and I'll make it available. - -Content warning: This model is trained on the internet which means there will be lots of toxic and offensive content along with the funny and wierd. - -## Screenshot - -![](http://i.imgur.com/4Ox8zDX.png) - -## Changes - -- user: - - added suggested actions from the AI player - - roll a d20 for speech or action to make it harder - - d01: You fail to X - - dX: You try to X - - d20: You successfully X - - use Clover edition ui, prompts, config -- technical: - - use half precision for smaller model, (but this might lead to lower quality, I need to test more) - - better logging - - use pytorch - - set top_k to zero and just use top p - - change clover config file to yaml - -# Model - -magnet link to pytorch model torrent - - ```magnet:?xt=urn:btih:17dcfe3d12849db04a3f64070489e6ff5fc6f63f&dn=model_v5_pytorch&tr=udp%3a%2f%2ftracker.opentrackr.org%3a1337%2fannounce&tr=udp%3a%2f%2fopen.stealth.si%3a80%2fannounce&tr=udp%3a%2f%2fp4p.arenabg.com%3a1337%2fannounce&tr=udp%3a%2f%2ftracker.coppersurfer.tk%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.cyberia.is%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.moeking.me%3a6969%2fannounce&tr=udp%3a%2f%2f9.rarbg.me%3a2710%2fannounce&tr=udp%3a%2f%2ftracker3.itzmx.com%3a6961%2fannounce``` -