Skip to content
interactive explorer for language models
Branch: master
Clone or download
Latest commit d640561 Mar 16, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.skiff
lm_explorer turn off cache (#5) Mar 4, 2019
loadtest Add simple load testing script. Mar 4, 2019
static Update app.js Mar 5, 2019
templates Fix issue with the background. Mar 5, 2019
.dockerignore
.gitignore
Dockerfile
LICENSE Create LICENSE Mar 15, 2019
README.md
app.py
requirements.txt lm explorer Feb 26, 2019

README.md

lm-explorer

interactive explorer for language models (currently only OpenAI GPT-2)

Running with Docker

# This creates a local directory where the model can be cached so you don't
# have to download it everytime you execute 'docker run'.
$ mkdir -p /$HOME/.pytorch_pretrained_bert
$ docker build -t lm-explorer:latest .
$ docker run -p 8000:8000 \
    -v /$HOME/.pytorch_pretrained_bert:/root/.pytorch_pretrained_bert \
    -v $(pwd):/local \
    lm-explorer:latest \
    python app.py --port 8000 --dev

Running without Docker

First create and activate a Python 3.6 (or later) virtual environment. Then install the requirements

$ pip install -r requirements.txt

and start the app

$ python app.py --port 8000 --dev
You can’t perform that action at this time.