Cage: run local-LLM components in a network-isolated OS process, hardware access intact, with a friction-free call interface back to the rest of your app.
Project description
Cage (llm-cage)
Status: placeholder release — reserving the name while the project is designed. Not yet functional.
Cage runs a local-LLM component of your application inside a separate OS process with network access denied by default (loopback allowed, for talking to a local model server), while keeping local hardware acceleration (GPU/Metal/CUDA) intact and giving you a friction-free way to call into it from the rest of your app:
from cage import Cell
cell = Cell()
@cell.expose
def ask_local_llm(prompt: str) -> str:
import ollama
return ollama.chat(model="llama3", messages=[{"role": "user", "content": prompt}])["message"]["content"]
answer = ask_local_llm("what's 2+2?") # runs inside the network-restricted process
Design details are being worked out as a public RFC series before implementation starts. This release exists solely to reserve the package name.
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 llm_cage-0.0.1.tar.gz.
File metadata
- Download URL: llm_cage-0.0.1.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0a071a1658804ec95eb9d79e002e5de4da0c500820cf88877ba5fc4ffff3beb
|
|
| MD5 |
b29847b69de43ec74ef6f87d69ef0a5f
|
|
| BLAKE2b-256 |
90ffc2935c44371c41552c96a55b458dcd8abd86c5021375cfcb53b5d7af4b1a
|
File details
Details for the file llm_cage-0.0.1-py3-none-any.whl.
File metadata
- Download URL: llm_cage-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4adaf9877d0dd75475dd7ad2c5de23d2f9e9db3030f047d7b16d90ce83a91d1b
|
|
| MD5 |
4ec96829aaa414b983a12f0c4e7f87e3
|
|
| BLAKE2b-256 |
faeaa8eef99335cc1a2d98f3bfc4dbf3a9a85a4e01b0a2ae29f28993f199ea38
|