Code Monkey home page Code Monkey logo

ai-redditor's Introduction

ai-redditor (This Post Does Not Exist).

A text generation Transformer model (finetuned GPT2 model) trained on Reddit posts.

Screenshots

ai-redditor's People

Contributors

galacticglum avatar

Stargazers

Ty avatar  avatar Martin Csongor László avatar Kibill avatar  avatar Eamon Ma avatar  avatar Bhaskoro Muthohar avatar  avatar Aseem Yadav avatar Joshua Pollack avatar filip avatar Bander Alsulami avatar saw avatar Ido Rosen avatar

Watchers

James Cloos avatar  avatar

Forkers

ensamblador

ai-redditor's Issues

Use celery for model inference task queueing

As GPT2 models are computationally demanding, generating a decent amount of text with them can take a couple of minutes (on a CPU), which if done inside a Flask route is not ideal. Rather than having a long-running request, we can use celery to queue up a task to generate the text, which means we can immediately return a response to the user containing the id of the task and it can display some sort of visual feedback (e.g. a spinner) while a worker completes the task. Meanwhile, the client periodically polls the server for the status of the task (using the id it was given).

Make generator script support multiple subreddit prompts

Currently, the generator script assumes that writing prompts should be generated; however, since the generator script can be used on any casual language model, this assumption doesn't make such sense. Thus, we need to allow the script to take in any form of prompt with the proper tokenization and formatting.

This is already (sort of) implement using the prompt argument; however, this argument does not prepend the beginning of sentence token which is required. Since this token may be unknown before loading in the tokenizer, we need to add in a prompt argument that DOES have the BOS token prepended to it.

Resume scraping

Currently, if you stop scraping a subreddit (or if there is an error and the program crashes), you have to restart scraping from scratch (including everything you've already scraped). It would be very useful if the scrapper CLI had an option to continue from file. Where it would skip all the submissions it has already scraped.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.