mstdn-ebooks but with gpt2
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Julia Luna d1135923d3
chore: add readme
6 months ago
src initial commit 6 months ago
.gitignore initial commit 6 months ago initial commit 6 months ago chore: add readme 6 months ago initial commit 6 months ago
requirements.txt initial commit 6 months ago


... is (or will be) a gpt2-based bot based on someone's mastodon posts. WIP.

getting started

(these steps assume you have python installed. this has only been tested with python 3.10, but it should work with >=3.8)

grab an archive of your fedi data. in the mastodon web interface this is under settings / import and export / data export. unzip the file, locate outbox.json

create a virtual environment, activate it, and install requirements

python -m venv env
source env/bin/activate
pip install -r requirements.txt

(optionally) edit the file in the root of this repo

run the init command:

python src/ init /path/to/outbox.json

this will take a while, depends on your settings; assuming default settings it should take an hour or two on modern cpus

then you can generate:

python src/ generate

this will print a generated text snippet to stdout, which you can then pipe into a piece of software that posts it to fedi, or you could contribute to this project and implement posting directly

enjoy and have fun :D