Runtime glue between PLATO Room Server and model — pure stdlib
Project description
🔗 Plato Mythos Glue
Runtime glue between PLATO Room Server and model — pure stdlib, zero dependencies
Bridges PLATO rooms and neural models without requiring PyTorch or HuggingFace. Room loading, tile encoding/decoding, and JSONL export — all pure Python stdlib.
Install
pip install plato-mythos-glue
Quick Start
Load Rooms
from plato_mythos_glue import load_rooms, room_to_expert_config
rooms = load_rooms("http://localhost:8847")
for room in rooms:
config = room_to_expert_config(room)
print(f"Room {config['room_id']}: {len(config['weights'])} domains")
Encode/Decode Tiles
from plato_mythos_glue import encode_tile, decode_output
encoded = encode_tile({"question": "What is justice?", "answer": "Harmony of the soul"})
print(f"Domain ID: {encoded['domain_id']}, Tokens: {len(encoded['token_ids']['question'])}")
decoded = decode_output(encoded)
print(f"Q: {decoded['question']}")
Export as JSONL
from plato_mythos_glue import export_tiles_as_hf
path = export_tiles_as_hf("http://localhost:8847", output_dir="./dataset")
print(f"Exported to {path}")
Part of Cocapn · Agent Infrastructure
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 plato_mythos_glue-0.1.1.tar.gz.
File metadata
- Download URL: plato_mythos_glue-0.1.1.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49f0610f310eb0f10a484d9ff4c847c103ad3edef0f01acbbfae7b1b7c61edbc
|
|
| MD5 |
f5b2b8e7417cebc6a77e952a9fed6342
|
|
| BLAKE2b-256 |
194d84dd581d553742fa68610d3319e9a98a8ac5f226d1319325d3131794567e
|
File details
Details for the file plato_mythos_glue-0.1.1-py3-none-any.whl.
File metadata
- Download URL: plato_mythos_glue-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0cca37afcde412316fe20f4fc5aa479aca14af971dd50cc629d4311a21c7977
|
|
| MD5 |
83e197ccd6b50248703c2c986ab46fa5
|
|
| BLAKE2b-256 |
6b3f5f16e806916e2cd449d2fd389667cd5df3f0ec5720be22089c0408e5552a
|