Easily distribute language models across multiple systems
Project description
Language Pipes (Beta)
Distribute language models across multiple systems
Language Pipes is an open-source distributed network application designed to increase access to local language models.
Disclaimer: This software is currently in Beta. Please be patient and if you encounter an error, please fill out a github issue!
Over the past few years open source language models have become much more powerful yet the most powerful models are still out of reach of the general population because of the extreme amounts of RAM that is needed to host these models. Language Pipes allows multiple computer systems to host the same model and move computation data between them so that no one computer has to hold all of the data for the model.
Features
- Quick Setup
- Peer to peer network
- OpenAI compatible API
- Privacy-preserving architecture
- Download and use models by HuggingFace ID
What Does Language Pipes do?
In a basic sense, language models work by passing information through many layers. At each layer, several matrix multiplicatitons between the layer weights and the system state are performed and the data is moved to the next layer. Language pipes works by hosting different layers on different machines to split up the RAM cost across the system.
Installation
Ensure that you have Python 3.10.18 (or any 3.10 version) installed. For an easy to use Python version manager use pyenv. This specific version is necessary for the transformers library to work properly.
If you need gpu support, first make sure you have the correct pytorch version installed for your GPU's Cuda compatibility using this link:
https://pytorch.org/get-started/locally/
To download the models from Huggingface, ensure that you have git and git lfs installed.
To start using the application, install the latest version of the package from PyPi.
Using Pip:
pip install language-pipes
Quick Start
The easiest way to get started is with the interactive setup wizard:
language-pipes
This launches a menu where you can create, view, and load configurations:
Main Menu
[0] View Config
[1] Load Config
[2] Create Config
[3] Delete Config
Select number of choice:
Select Create Config to walk through the setup wizard, which guides you through:
- Node ID — A unique name for your computer on the network
- Model selection — Choose a HuggingFace model ID (e.g.,
Qwen/Qwen3-1.7B) - Device & memory — Where to run the model and how much RAM to use
- API server — Enable an OpenAI-compatible endpoint
- Network settings — Ports and encryption options
After creating a config, select Load Config to start the server.
For detailed wizard documentation, see Interactive Setup Guide.
Two Node Example
This example shows how to distribute a model across two computers using the interactive wizard.
Node 1 (First Computer)
language-pipes
-
Select Create Config
-
Enter a name (e.g.,
node1) -
Follow the prompts:
- Node ID:
node-1 - Model ID:
Qwen/Qwen3-1.7B(press Enter for default) - Device:
cpu - Max memory:
1(loads part of the model) - Load embedding/output layers:
Y - Enable OpenAI API:
Y - API port:
8000 - First node in network:
Y - Encrypt network traffic:
Y(save the generated key!)
- Node ID:
-
Select Load Config → choose
node1to start the server
Node 2 (Second Computer)
Install Language Pipes, then:
language-pipes
-
Select Create Config
-
Enter a name (e.g.,
node2) -
Follow the prompts:
- Node ID:
node-2 - Model ID:
Qwen/Qwen3-1.7B - Device:
cpu - Max memory:
3(loads remaining layers) - Load embedding/output layers:
N(node-1 has them) - Enable OpenAI API:
N - First node in network:
N - Bootstrap node IP:
192.168.0.10(node-1's local IP) - Bootstrap port:
5000 - Encrypt network traffic:
Y - Network key: paste the key from node-1
- Node ID:
-
Select Load Config → choose
node2to start the server
Node-2 connects to node-1 and loads the remaining model layers. The model is now ready for inference!
Test the API
The model is accessible via an OpenAI-compatible API. Using the OpenAI Python library:
from openai import OpenAI
client = OpenAI(
base_url="http://127.0.0.1:8000/v1", # node-1 IP address
api_key="not-needed" # API key not required for Language Pipes
)
response = client.chat.completions.create(
model="Qwen/Qwen3-1.7B",
max_completion_tokens=100,
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Write a haiku about distributed systems."}
]
)
print(response.choices[0].message.content)
Install the OpenAI library with: pip install openai
Models Supported
- Llama 2 & Llama 3.X
- Qwen3
- More to come!
Dependencies
Documentation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file language_pipes-0.17.0.tar.gz.
File metadata
- Download URL: language_pipes-0.17.0.tar.gz
- Upload date:
- Size: 65.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a2fc1de759f3586beda0e707c5b2f0f59363bd6a133b3a0f21545f61af12f828
|
|
| MD5 |
0f43187846288a961da9d94280ffe393
|
|
| BLAKE2b-256 |
d45f291c7d2234b75609eecb0f8ed8c06a18984a336c3338093f0aa111a5fb5b
|
Provenance
The following attestation bundles were made for language_pipes-0.17.0.tar.gz:
Publisher:
publish.yml on erinclemmer/language-pipes
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
language_pipes-0.17.0.tar.gz -
Subject digest:
a2fc1de759f3586beda0e707c5b2f0f59363bd6a133b3a0f21545f61af12f828 - Sigstore transparency entry: 833755322
- Sigstore integration time:
-
Permalink:
erinclemmer/language-pipes@99e50b802ca9471eb908491c720f65797691aef4 -
Branch / Tag:
refs/tags/B0.17.0 - Owner: https://github.com/erinclemmer
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@99e50b802ca9471eb908491c720f65797691aef4 -
Trigger Event:
release
-
Statement type:
File details
Details for the file language_pipes-0.17.0-py3-none-any.whl.
File metadata
- Download URL: language_pipes-0.17.0-py3-none-any.whl
- Upload date:
- Size: 54.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce6bb8c93f4a3b106b9709174271c6fa12beb0001f1578f1b60d2cdb6bd0ce7a
|
|
| MD5 |
aac0b55b3ffbf85c028ae963953eeeab
|
|
| BLAKE2b-256 |
18e8fdd2812d5d2250c18a80ba06c719da7529711a2efbb5ffa0a118346cad9d
|
Provenance
The following attestation bundles were made for language_pipes-0.17.0-py3-none-any.whl:
Publisher:
publish.yml on erinclemmer/language-pipes
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
language_pipes-0.17.0-py3-none-any.whl -
Subject digest:
ce6bb8c93f4a3b106b9709174271c6fa12beb0001f1578f1b60d2cdb6bd0ce7a - Sigstore transparency entry: 833755324
- Sigstore integration time:
-
Permalink:
erinclemmer/language-pipes@99e50b802ca9471eb908491c720f65797691aef4 -
Branch / Tag:
refs/tags/B0.17.0 - Owner: https://github.com/erinclemmer
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@99e50b802ca9471eb908491c720f65797691aef4 -
Trigger Event:
release
-
Statement type: