sageLLM Control Plane - Intelligent request routing, scheduling, and engine lifecycle management
Project description
sageLLM Control Plane
Intelligent request routing, scheduling, and engine lifecycle management for sageLLM.
Features
- 🎯 Scheduling Policies - FIFO, Priority, SLO-aware, Cost-optimized, Adaptive
- ⚖️ Load Balancing - Intelligent request routing across multiple engine instances
- 📈 Autoscaling - SLA-based autoscaling for Prefill/Decode instances
- 🔄 Engine Lifecycle - Spawn, stop, health check, auto-restart
- 📊 Observability - Metrics collection, performance monitoring
- 🧩 Parallelism - TP, PP, DP, EP strategy optimization
Installation
pip install isagellm-control-plane
# With GPU monitoring
pip install isagellm-control-plane[gpu]
# With Prometheus metrics
pip install isagellm-control-plane[metrics]
Quick Start
from sagellm_control import ControlPlaneManager
# Create manager with mock mode (no GPU required)
manager = ControlPlaneManager(
scheduling_policy="adaptive",
routing_strategy="load_balanced",
mode="local", # Use local async executor
)
# Register a mock engine
manager.register_engine(
engine_id="engine-001",
model_id="mock-model",
host="localhost",
port=8000,
)
# Schedule a request
decision = await manager.schedule_request(
request_id="req-001",
prompt="Hello, world!",
max_tokens=128,
)
print(f"Scheduled to: {decision.instance_id}")
Architecture
sagellm_control/
├── types.py # Core data types (RequestMetadata, EngineInfo, etc.)
├── strategies/ # Scheduling policies (FIFO, Priority, SLO, etc.)
├── executors/ # Execution coordinators (HTTP, LocalAsync, Mock)
├── router.py # Request routing and load balancing
├── autoscaler.py # SLA-based autoscaling
├── parallelism.py # Parallelism strategy optimization
├── manager.py # Main ControlPlaneManager
└── engine_lifecycle.py # Engine lifecycle management
Mock-First Development
All modules support mock mode for testing without GPU:
from sagellm_control.executors import MockExecutionCoordinator
# Use mock executor for CI/CD
executor = MockExecutionCoordinator()
result = await executor.execute(request)
License
Proprietary - IntelliStream
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
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 isagellm_control_plane-0.1.0-cp311-none-any.whl.
File metadata
- Download URL: isagellm_control_plane-0.1.0-cp311-none-any.whl
- Upload date:
- Size: 21.2 kB
- Tags: CPython 3.11
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c9686f5486b3e1d1f57e5dc8b2b7ca0cce764b8d96b103fd3e87f411fb7c77e
|
|
| MD5 |
908f8f94bbf18163796759abadbb5ef0
|
|
| BLAKE2b-256 |
aef51ad30e261526ff68116fcd13d50cabfaecc47e3b51f65c3ad8093782899c
|