Skip to main content

A sovereign local kernel with dynamic hardware scaling.

Project description

██████╗ ███████╗██████╗ ██╗██████╗  ██████╗ ████████╗
██╔══██╗██╔════╝██╔══██╗██║██╔══██╗██╔═══██╗╚══██╔══╝
██████╔╝█████╗  ██████╔╝██║██║  ██║██║   ██║   ██║   
██╔═══╝ ██╔══╝  ██╔══██╗██║██║  ██║██║   ██║   ██║   
██║     ███████╗██║  ██║██║██████╔╝╚██████╔╝   ██║   
╚═╝     ╚══════╝╚═╝  ╚═╝╚═╝╚═════╝  ╚═════╝    ╚═╝   

SOVEREIGN AI KERNEL — v1.2 BETA

STATUS PLATFORM PRIVACY LICENSE Python


⚠️ BETA
Medical research module under validation. Report issues.


Engineered by uncoalesced

GPU-accelerated, air-gapped AI runtime. Zero telemetry. Zero cloud dependency.



> OVERVIEW

Local LLM runtime with permission-based function calling. Runs on your hardware. Logs all actions.

┌─────────────────────────────────────────────────────────┐
│  USER QUERY                                             │
│     │                                                   │
│     ▼                                                   │
│  PERMISSION LAYER  ──── constitution.json               │
│     │                        │                          │
│     │              (block / allow / modify)             │
│     │                                                   │
│     ▼                                                   │
│  INFERENCE ENGINE  ──── localhost:5000 (air-gapped)     │
│  Llama-3-8B-Instruct                                    │
│     │                                                   │
│     ▼                                                   │
│  AUDIT LOG  ──── immutable, SHA-256 verified            │
└─────────────────────────────────────────────────────────┘

> PERFORMANCE

Hardware: NVIDIA GeForce RTX 5050 Laptop GPU (8GB VRAM)
Model: Llama-3-8B-Instruct · Q4_K_M Quantization
Context: 2048 tokens (n_ctx_per_seq)

Raw Inference Benchmark

Task Output Tokens Speed
Short Response 50 58.76 t/s
Medium Response 150 59.77 t/s
Long Response 512 57.71 t/s

Sovereign VRAM Handoff Benchmarks

Testing the latency of dynamic resource reallocation between background research processes and active LLM inference via WebSocket signaling.

VRAM Handoff Benchmark

  • WebSocket Handoff Latency: 21.10 ms
  • Sustained Inference Post-Handoff: 57.04 t/s

Research Benchmark

Technical note: The 21.10ms WebSocket handoff latency and 13.08ms VRAM purge demonstrate efficient state transitions on the Blackwell (sm_120) architecture. CPU threads are strictly isolated (0 threads allocated to background tasks) to ensure zero drop in generation speed during active inference.


> ARCHITECTURE


[1] — Inference Engine

Core LLM runtime. llama-cpp-python with cuBLAS acceleration.

Model:     Llama-3-8B-Instruct (GGUF · Q4_K_M)
Backend:   llama-cpp-python + cuBLAS
Endpoint:  localhost:5000 (no external routing)
Context:   Sliding Window (VRAM-aware)
Precision: 4-bit quantization

[2] — Sensory Subsystems

Local audio. No cloud APIs.

Auditory SystemOpenAI Whisper

Voice-to-text transcription.
Hands-free command input.
No external audio transmission.

[3] — Permission Layer

Function-call interceptor. Blocks execution before action runs.

# constitution.json
{
  "allow_file_read":    true,
  "allow_web_fetch":    true,
  "allow_code_execute": false,
  "blocked_domains":    ["example.com"],
  "approved_domains":   ["arxiv.org", "pubmed.ncbi.nlm.nih.gov"]
}

Delete constitution.json to remove restrictions.


[4] — Audit Log

Append-only log. All queries, actions, permission decisions.

[2026-02-08 14:32:01] QUERY     "analyze my bloodwork results"
[2026-02-08 14:32:01] PERMISSION read(bloodwork.pdf) → ALLOWED
[2026-02-08 14:32:01] ACTION    file_read(bloodwork.pdf) → OK
[2026-02-08 14:32:03] RESPONSE  delivered (312 tokens, 5.52s)
[2026-02-08 14:32:03] HASH      sha256: a3f9c2...

SHA-256 hashing at shutdown for integrity verification.


[5] — Sovereign VRAM State Machine (Medical Research)

Dynamic hardware orchestration via local WebSockets (Port 7396). The kernel hot-swaps GPU VRAM between active inference and background medical research (Folding@home) without OS-level process fighting or manual intervention.

State: IDLE (15s threshold) └─ Socket Signal: {"cmd": "state", "state": "fold"} └─ GPU VRAM fully allocated to Folding@home. └─ CPU Threads: Isolated (0 threads to FAH to prevent bottlenecking).

State: ACTIVE (Prompt Detected) └─ Socket Signal: {"cmd": "state", "state": "pause"} └─ VRAM Yield: 21.10ms (WebSocket) + 13.08ms (purge) = 34.18ms total. └─ LLM takes absolute priority with zero inference latency penalty.

Disabled by default. Opt-in via research enable. Targets: Alzheimer's, Cancer, Parkinson's.


[6] — Interface

Custom tkinter UI. High-DPI. Terminal aesthetic.

  • Hardware telemetry (CPU/RAM/VRAM)
  • Drag-and-drop image input
  • Conversation history
  • Research status

> HARDWARE SUPPORT

Tier Hardware Mode Speed
Full Support NVIDIA RTX 3060+ (6GB+) Standard 40–70 t/s
Full Support NVIDIA RTX 4050+ (8GB+) Standard 50–80 t/s
Full Support NVIDIA RTX 5050 (8GB) Standard 58 t/s (tested)
CPU Fallback Any modern x64 CPU-Only 8–12 t/s
Lite Mode AMD Radeon 680M / 780M Phi-3 8–15 t/s
Lite Mode Intel Iris Xe Phi-3 5–10 t/s
Community AMD RX 6000/7000 ROCm (Linux) 35–50 t/s
Community Intel Arc A750/A770 Vulkan 25–40 t/s

Lite mode: Phi-3 Mini, 2048-token context.
Community builds: See COMMUNITY_INSTALL.md.


> INSTALLATION

Prerequisites

OS:      Windows 10/11 (64-bit)
GPU:     NVIDIA RTX Series, 6GB+ VRAM
Python:  3.11
Storage: ~10GB free (SSD recommended)

Setup

1. Clone

git clone https://github.com/uncoalesced/Peridot.git
cd Peridot

2. Environment

python -m venv venv
.\venv\Scripts\activate

3. Installer

python setup.py
PERIDOT SETUP WIZARD
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[✓] NVIDIA GPU detected: RTX 5050 (8.0GB VRAM)
[✓] CUDA 12.1 compatible
[✓] Recommended model: Llama-3-8B-Instruct (Q4_K_M)
[✓] Installing CUDA-enabled llama-cpp-python...
[✓] Downloading model (4.7GB)...
[✓] Writing config...

Setup complete. Run: python launcher.py
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

> USAGE

Launch

python launcher.py

Wait for:

[OK] Inference engine online — localhost:5000
[OK] Visual Cortex mounted
[OK] Auditory System mounted
[OK] Peridot ready.

Commands

Directive Action
system status Diagnostic across all subsystems
read [file.py] Ingest local file into context
research enable Activate medical research module
research stats Display Folding@home stats
analyze this image Invoke Visual Cortex

Configuration

constitution.json controls behavior and permissions.

{
  "system_prompt": "You are Peridot...",
  "allow_file_read": true,
  "allow_web_fetch": true,
  "allow_code_execute": false,
  "approved_domains": ["arxiv.org", "pubmed.ncbi.nlm.nih.gov"],
  "blocked_content": []
}

Delete file to reset. Auto-regenerates on launch.


> ROADMAP

[████████████████████] v1.0  Core Inference Engine (NVIDIA/Windows)
[████████████████████] v1.1  Performance Optimization (BETA)
[████████████████████] v1.2  Stability Fixes + VRAM Handoff & Medical Research testing
[█████░░░░░░░░░░░░░░░] v1.3  RAG Engine Implemenation
[░░░░░░░░░░░░░░░░░░░░] v1.5  Linux Support (Ubuntu/Debian)
[░░░░░░░░░░░░░░░░░░░░] v1.6  AMD Radeon (ROCm)
[░░░░░░░░░░░░░░░░░░░░] v1.7  macOS Support (Apple Silicon)
[░░░░░░░░░░░░░░░░░░░░] v2.0  WebUI (FastAPI + React)

> PHILOSOPHY

See PHILOSOPHY.md for design rationale and project principles.


> LICENSE & DISCLAIMER

License: MIT — free for personal and commercial use.

Disclaimer: Experimental software. User assumes responsibility for all commands, content, and hardware usage. Provided as-is, no warranty.


PERIDOT · SOVEREIGN AI KERNEL · v1.2 BETA

Engineered by uncoalesced

Your hardware. Your model. Your rules.

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

peridot_local-1.2.0b1.tar.gz (26.4 kB view details)

Uploaded Source

Built Distribution

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

peridot_local-1.2.0b1-py3-none-any.whl (30.7 kB view details)

Uploaded Python 3

File details

Details for the file peridot_local-1.2.0b1.tar.gz.

File metadata

  • Download URL: peridot_local-1.2.0b1.tar.gz
  • Upload date:
  • Size: 26.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for peridot_local-1.2.0b1.tar.gz
Algorithm Hash digest
SHA256 ac5c58dd128b410a5c02931ad24cdd8b91747dd9efebbb690d8b2cfa999c023b
MD5 02e9a986f97337f1ce603f88e91bc8aa
BLAKE2b-256 6ef50bf8a64927eb3dbcd81940cd087f580d45552116403a80c6a6b00fe5ef31

See more details on using hashes here.

Provenance

The following attestation bundles were made for peridot_local-1.2.0b1.tar.gz:

Publisher: submit-pypi.yml on uncoalesced/Peridot

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file peridot_local-1.2.0b1-py3-none-any.whl.

File metadata

File hashes

Hashes for peridot_local-1.2.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 0c44d70067150eaf21d76960c53c51febe57ada91872a6021cb911563d77f8da
MD5 a3fbfb33ed55344cc5bcd3fa3ae7412f
BLAKE2b-256 928bffb70b4d8154496e55ff70de0295344aef49b05f276304273afcf311befe

See more details on using hashes here.

Provenance

The following attestation bundles were made for peridot_local-1.2.0b1-py3-none-any.whl:

Publisher: submit-pypi.yml on uncoalesced/Peridot

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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