Skip to main content

PLATO Neural Inference Engine — fine-tuned LLM for PLATO knowledge scoring, generation, and Q&A

Project description

PLATO Neural v0.2.0

Neural inference engine for the PLATO knowledge network. Fine-tuned Qwen2.5-0.5B for tile scoring, Q&A, gap detection, and tile generation.

Install

pip install plato-neural

CLI Usage

# Ask a question
plato-neural ask "What is constraint theory?"

# Score a tile (neural — requires GPU)
plato-neural score -q "What is a tile?" -a "A 256-byte knowledge unit..."

# Score a tile (heuristic — no GPU needed)
plato-neural score -q "What is a tile?" -a "A knowledge unit..." --heuristic

# Check model health
plato-neural health

# Start REST API
plato-neural serve --port 5050

REST API

# Health
curl http://localhost:5050/health

# Ask
curl -X POST http://localhost:5050/ask -H 'Content-Type: application/json' \
  -d '{"question": "What is constraint theory?"}'

# Score
curl -X POST http://localhost:5050/score -H 'Content-Type: application/json' \
  -d '{"question": "...", "answer": "..."}'

# Batch score
curl -X POST http://localhost:5050/batch_score -H 'Content-Type: application/json' \
  -d '{"tiles": [{"question": "...", "answer": "..."}]}'

# Generate tile
curl -X POST http://localhost:5050/generate_tile -H 'Content-Type: application/json' \
  -d '{"room": "ct"}'

# Find knowledge gaps
curl -X POST http://localhost:5050/find_gaps -H 'Content-Type: application/json' \
  -d '{"tiles": [...], "threshold": 50}'

Python API

from plato_neural import PlatoBrain

brain = PlatoBrain("Qwen/Qwen2.5-0.5B")

# Q&A
result = brain.ask("What is constraint theory?")
print(result["answer"])

# Score tiles
score = brain.score("What is a tile?", "A 256-byte knowledge unit...")
print(f"PPL: {score['perplexity']}, Tier: {score['tier']}")

# Generate new tiles
tile = brain.generate_tile("ct")
print(tile["question"], tile["answer"])

# Find gaps in knowledge
gaps = brain.find_gaps(tiles, threshold=50)

Performance (RTX 4050, exp8 LoRA)

Metric Value
Avg perplexity ~5-7
Tile recognition ~98%
Confidence 0.97+
Generation speed 70+ tok/s
VRAM ~1.0GB (bf16), ~545MB (INT8)

Changelog

v0.2.0

  • REST API server with 6 endpoints
  • Heuristic scorer (no GPU required)
  • CLI with ask/score/health/serve commands
  • PlatoBrain class with ask/score/generate/batch_score/find_gaps
  • PlatoScorer class for lightweight heuristic scoring

v0.1.0

  • Initial release: PlatoBrain + PlatoScorer

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

plato_neural-0.2.0.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

plato_neural-0.2.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file plato_neural-0.2.0.tar.gz.

File metadata

  • Download URL: plato_neural-0.2.0.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for plato_neural-0.2.0.tar.gz
Algorithm Hash digest
SHA256 cd815b971676d42d7e5e55b6026e67d3b3f79971f20bd293f91b4775331c5b36
MD5 2704227c7c07c3f874715e260606d3a3
BLAKE2b-256 f8822bf80e5583358538533cd82aad09ed1d1d3a2a1a97b7cca54774d626db36

See more details on using hashes here.

File details

Details for the file plato_neural-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: plato_neural-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for plato_neural-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1d541070861c877fe92e6da1143b53778824ffcb57ef8d6df760a656b30b1f3c
MD5 7dd8ee851dc9a4b87102dd759cf60e2e
BLAKE2b-256 62f64cb10af75dcae33375512719fa57b3cc04942e316636bdf17bfeda3d5781

See more details on using hashes here.

Supported by

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