GithubHelp home page GithubHelp logo

anthonywww / gpt4all-box Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 284 KB

GPT4ALL Docker box for internal groups or teams

License: MIT License

Dockerfile 0.92% Shell 0.21% HTML 18.77% JavaScript 42.75% CSS 4.99% Python 32.38%
chat docker gpt gpt4all

gpt4all-box's Introduction

gpt4all-box

Gpt4All Q/A prompt session service-in-a-box. (for internal-use only, not meant for public servers, yet...)

Screenshot of the gpt4all-box client web user interface

Usage

First build the Docker image:

./docker-build.sh

Next run the image as a container, see examples below.

You can open the examples/ui.html on your local web browser to access the client chat UI.

Development

This will run a development container WebSocket server on TCP port 8184.

You can connect to this via the the UI or CLI HTML page examples located in examples/.

Why are we not specifying -u "$(id -u):$(id -g)" ?

Because the ~/.cache/gpt4all directory must exist, and therefore it needs a user internal to the docker container. Apparently the value model_path can be set in our gpt.py, but we're not doing that right now.

docker run --rm -it \
	-e SYSTEM_MESSAGE="This is an example!" \
	-e HEARTBEAT_INTERVAL=5000 \
	-p 8184:8184 \
	-v "$(pwd):/mnt" \
	gpt4all-box

Production

docker run --name gpt4all-box \
	--detach \
	--publish 8184:8184 \
	--volume "$(pwd):/mnt" \
	gpt4all-box

Environment Variables

Name Default Description
MODEL_THREADS 4 Number of CPU threads for the LLM agent to use.
SYSTEM_MESSAGE Set an announcement message to send to clients on connection.
HEARTBEAT_INTERVAL 5000 How often events are processed internally, such as session pruning.
MAX_IDLE_SESSION_DURATION 180000 Execute stale session purge after this period.
SSL_KEY Path to SSL key file in PEM format.
SSL_CERT Path to SSL cert file in PEM format.

gpt4all-box's People

Contributors

anthonywww avatar

Stargazers

 avatar  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.