Giter Site home page Giter Site logo

hellisotherpeople / constrained-text-generation-studio Goto Github PK

View Code? Open in Web Editor NEW
206.0 206.0 11.0 2.04 MB

Code repo for "Most Language Models can be Poets too: An AI Writing Assistant and Constrained Text Generation Studio" at the (CAI2) workshop, jointly held at (COLING 2022)

License: MIT License

Python 100.00%

constrained-text-generation-studio's Introduction

Hi there πŸ‘‹

I'm a big fan of NLP, AI, debate, and rougelike video games.

My github stats

Find me on linkedin

Also, check out my webapps and models on my Huggingface Profile

Finally, I'm quite the AI artist now. See my work on Instagram

constrained-text-generation-studio's People

Contributors

hellisotherpeople avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

constrained-text-generation-studio's Issues

Conditioning via a learnable vector

Context: instead of a text-to-condition, I have directly a vector, which is an output from some other model (which is also learnable ).
In this context, how to do conditional fine-tuning of the GPT-2 model. From the GPT-2 model’s perspective, we can think that the dataset to train is a list of tuples of the form (condition_vec,text_sample). But note that condition_vec is an output from some other model that is also involved in the optimisation.

One naive approach is to feed this vector directly as the context vector (Assume dimensions match).
Will it work? (I could test it soon)
Or is there any better solution?

Dependence resolution for pandas when using pip install -r requirements.txt

The pandas is to be loaded with version >3, <=0.25. It is causing a recursive reinstall of each version

Collecting pandas<3,>=0.25 (from streamlit->-r requirements.txt (line 11))
  Using cached pandas-2.0.2-cp311-cp311-win_amd64.whl (10.6 MB)
  Using cached pandas-2.0.0-cp311-cp311-win_amd64.whl (11.2 MB)
  Using cached pandas-1.5.3-cp311-cp311-win_amd64.whl (10.3 MB)
  Using cached pandas-1.5.2-cp311-cp311-win_amd64.whl (10.3 MB)
  Using cached pandas-1.5.1-cp311-cp311-win_amd64.whl (10.3 MB)
  Using cached pandas-1.5.0-cp311-cp311-win_amd64.whl (10.3 MB)
  Using cached pandas-1.4.4.tar.gz (4.9 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
INFO: pip is looking at multiple versions of pandas to determine which version is compatible with other requirements. This could take a while.
  Using cached pandas-1.4.3.tar.gz (4.9 MB)
  Installing build dependencies ... done

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.