Skip to main content

Run a socket server for AI models.

Project description

AI Runner Nexus

Run Mistral LLM offline on your computer using a socket server.


Features

  • Offline friendly - works completely locally with no internet connection (must first download models)
  • Sockets: handles byte packets of an arbitrary size
  • Threaded: asynchronously handle requests and responses
  • Queue: requests and responses are handed off to a queue

Limitations

Data between server and client is not encrypted

This only matters if someone wants to create a production ready version of this server which would be hosted on the internet. This server is not designed for that purpose. It was designed with a single use-case in mind: the ability to run Stable Diffusion (and other AI models) locally. It was designed for use with the Krita Stable Diffusion plugin, but can work with any interface provided someone writes a client for it.

Only works with Mistral

This library was designed to work with the Mistral model, but it can be expanded to work with any LLM.


Installation

pip install airunner-nexus
cp src/airunner_nexus/default.settings.py src/airunner_nexus/settings.py

Modify settings.py as you see fit.


Run server and client

See src/airunner_nexus/server.py for an example of how to run the server and src/airunner_nexus/client.py for an example of how to run the client. Both of these files can be run directly from the command line.

The socket client will continuously attempt to connect to the server until it is successful. The server will accept connections from any client on the given port.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

airunner_nexus-1.5.0.tar.gz (27.3 kB view details)

Uploaded Source

Built Distribution

airunner_nexus-1.5.0-py3-none-any.whl (29.2 kB view details)

Uploaded Python 3

File details

Details for the file airunner_nexus-1.5.0.tar.gz.

File metadata

  • Download URL: airunner_nexus-1.5.0.tar.gz
  • Upload date:
  • Size: 27.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for airunner_nexus-1.5.0.tar.gz
Algorithm Hash digest
SHA256 13d6572e04a245bfd77beeb842ff81eaefe0229b5ee1f7f60379ba4e4449a543
MD5 8144358f5bac05d78822f778eda3c880
BLAKE2b-256 ad83505375e8c11dbe1fee94cc5dc497d0b1dda10a5127d614a3103774117d1b

See more details on using hashes here.

File details

Details for the file airunner_nexus-1.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for airunner_nexus-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fdc923c6605d3d4d0c50789da97a2f983975d6d5d6604d34129a0edc631e6508
MD5 91d7d3d9eb04c644cbe3b5c7e2cc592c
BLAKE2b-256 9bb7c4240eba7c4e45027a3b75fb6584e2f1e3c7c0c76dfa8a6563dceb5bc90e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page