Inference infrastructure
Skotergy
Route requests. Keep execution local.
An LLM inference engine for request-level GPU routing. Scale across independent model replicas while keeping prefill, decode and KV cache on the assigned device.
Reported end-to-end latency change
Llama-3.1-8B-Instruct · BF16 · same host · Test details
Architecture
Route requests, keep decode local
The documented CUDA path scales out using replicated model instances. A single request stays on one replica through generation.
Assign an available replica
The router assigns each request to one model replica. Each device has its own queue and concurrency limit. Length-aware dispatch groups similar prompts, and optional microbatching can improve packing at the cost of queueing time.
Run prefill and decode locally
Prefill, decode and the KV cache stay co-located. Documented Triton kernel patches fuse normalization and enforce device-resident contiguous tensors.
Scale with independent replicas
Adding a device adds a replica. Each device needs room for a model copy and its request KV cache, so capacity planning includes both weights and concurrent state.
Evaluation
Deployment measurements
Skotergy 1.0.1 package results cover two workloads: single-GPU request latency and two-GPU aggregate output throughput.
View the PyPI release resultsThe single-GPU comparison uses Llama-3.1-8B-Instruct at BF16 on the same host.
| Metric | CUDA / Transformers | Skotergy | Change |
|---|---|---|---|
| p50 | 6,093.2 ms | 4,689.4 ms | −23.04% |
| p95 | 11,218.1 ms | 8,580.4 ms | −23.51% |
| Metric | Skotergy |
|---|---|
| Workload | 16 × 64 new tokens |
| Total elapsed time | ≈ 3.02–3.12 s |
| Aggregate output throughput | ≈ 330–340 tokens/s |
Compare the latency values within the single-GPU test. Calculating GPU scaling efficiency requires matched single- and dual-GPU throughput runs.
Deployment compatibility
- Distribution
- PyPI 1.0.1 · Python ≥ 3.9 · Apache-2.0
- Model input
- Local decoder-only causal LM compatible with the framework stack. Supply the model and tokenizer separately.
- Runtime dependencies
- Provide a PyTorch build that matches the target accelerator and driver.
- CUDA optimization
- Documented Triton RMSNorm path for contiguous device tensors.
- Other backends
- MPS, XPU and CPU use framework fallbacks where supported by the installed stack.
- Replica sizing
- Budget weights, KV cache and runtime overhead per device. Additional replicas serve independent requests.
- Command-line tools
- skote-generate for local generation, skote-router for a router smoke test, skote-eval for evaluation
- Deployment fit
- Replicas scale request concurrency. Plan for each model copy and its KV cache to fit on one device.
Start with one local model on one device, then add replicas for concurrent requests. The CUDA benchmark describes a specific configuration. Package metadata and backend fallbacks establish the compatibility scope.
Install Skotergy
Install the inference engine from PyPI. The quickstart covers runtime requirements and generation with a local model.
python -m pip install skotergy==1.0.1