Skip to content

Project Structure & Dependency Map ​

File Hierarchy ​

15-llm-inference-scheduler/
├── backend/
│   ├── src/
│   │   ├── api/                # FastAPI application entry & HTTP/SSE routers
│   │   │   └── app.py          # REST & Server-Sent Events endpoints
│   │   ├── batching/           # Continuous iteration-level batching engine
│   │   │   └── continuous.py   # Iteration scheduler & token budget allocator
│   │   ├── coordination/       # Worker replica registration & heartbeats
│   │   ├── gpu/                # GPU memory tracking & simulated device state
│   │   ├── kv/                 # Paged KV-cache memory allocator & page tables
│   │   │   └── paged.py        # Block allocator, page tables, prefix sharing
│   │   ├── models/             # Request, token, and worker data schemas
│   │   ├── observability/      # TTFT & ITL metrics exporter (Prometheus format)
│   │   ├── routing/            # Multi-worker load-balancing router
│   │   ├── scheduler/          # Admission control, FIFO & priority queues
│   │   └── security/           # Token quotas, prompt length limits
│   └── tests/                  # 29 test files (99 passing pytest unit/integration tests)
├── frontend/
│   ├── src/
│   │   ├── App.tsx             # Root React dashboard layout
│   │   ├── LatencyCharts.tsx   # TTFT, ITL, and p99 latency visualization
│   │   ├── LiveRequestView.tsx # Real-time SSE token stream viewer
│   │   ├── QueueDashboard.tsx  # In-flight queue depth & preemption metrics
│   │   └── SchedulerDashboard.tsx # Worker replica health & memory allocation
│   └── package.json            # React 18, TypeScript, Tailwind dependencies
├── legacy_scaffold/            # Preserved initial scaffolding stubs
├── FEATURES.csv                # 100 feature matrix
├── PROGRESS.md                 # Implementation milestone log
└── SPEC.txt                    # System design specification

Tech Stack & Runtime Dependencies ​

TierTechnologyVersionPurpose
Backend RuntimePython3.13Asynchronous control plane runtime
FrameworkFastAPI0.115+REST and Server-Sent Events streaming endpoints
Numerical EngineNumPy2.0+Fast page table lookups and latency array math
Data ModelsPydantic2.10+Strict type validation for token requests and worker state
Test EnginePytest / Pytest-Asyncio8.3+99 unit and integration tests
Frontend UIReact18.3.1Component-driven telemetry and streaming token UI
BundlerVite6.0+High-speed ESM development and production bundling