Giter Club home page Giter Club logo

llm-webapp's Introduction

LLM text generation webapp

Web application for LLM text generation backends. Supports the following tasks:

  • text generation

Build

Configure your website using lib/config.dart. After that build it using flutter build web --release, or if you do not have flutter installed use docker build -t <image-name> . which creates a nginx docker image hosting the website. Run it using docker run -p <port>:80 <image-name>.

Endpoints

Endpoints required for all question answering backends:

  • [GET] /models
  returns:
    {
      "task": "text generation", 
      "models": [
        {
          "name": "best_model_v1", 
          "description": "this model is so good", 
          "tags": ["arch::transformer", "speed::fast", "lang::en", ...]
        }, 
        ...
      ]
    }
  • [GET] /info
  returns:
    {
      "gpu": ["GTX 1080Ti", "RTX 2080Ti", ...],
      "cpu": "Intel i7 9700K",
      "timeout": 10.0
    }

Also all endpoints should support arbitrary leading base URLs, e.g. /api/v1/llm/info

In particular, for this webapp, the tasks should be run with the following base URLs:

  • Text generation: /api

Endpoints required for text generation:

  • [POST] /generation
  requires:
    {
      "model": "best_model_v1", 
      "texts": ["who is albert einstein?", "how old is angela merkel?"]
    }
  optional:
    {
      "search_strategy": "greedy",
      "beam_width": 5,
      "labels": false,
      "regex": "[0-9]+",
      "cfg": {
        "grammar": "...",
        "lexer": "...",
        "exact": false
      }
    }
  returns:
    {
      "text": ["Albert Einstein is a physicist", "Angela Merkel is 65 years old"], 
      "runtime": {"s": 10, "b": 20}
    } 

llm-webapp's People

Contributors

bastiscode avatar

Watchers

 avatar

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.