π Ecosystem Integrations¶
Turing Engine integrates with agent frameworks, model routers, and deployment runtimes.
1. LangChain & LangGraph¶
Turing Engine provides native drop-in support via langchain-openai or built-in ChatTuring:
2. LiteLLM Proxy & Router¶
Configure Turing Engine as a backend in your litellm config.yaml:
model_list:
- model_name: turing/deepseek-r1
litellm_params:
model: openai/deepseek-r1-7b
api_base: http://localhost:8000/v1
api_key: turing-local
extra_headers:
X-Turing-Sparsity: "0.57"
X-Turing-SVD-Rank: "64"
3. LlamaIndex RAG & Agents¶
from turing.integrations.llamaindex import Turing
llm = Turing(
model="deepseek-r1-7b",
api_base="http://localhost:8000/v1",
sparsity_ratio=0.57, # 57% FFN channel pruning
svd_rank=64 # Calibrated SVD INT8 KV cache
)
response = llm.complete("Summarize the main architectural trade-offs of microservices:")
print(response.text)
4. Open WebUI, Continue.dev & Ollama Frontends¶
Turing Engine provides native support for both Ollama and OpenAI connection protocols:
- In Open WebUI: Go to Settings β Connections β Ollama API.
- Set Ollama Base URL:
http://localhost:8000 - Click Verify Connection β all loaded models will automatically sync via
/api/tags. - In Continue.dev (
~/.continue/config.json):
- Open your chat UI Settings β OpenAI API.
- Set Base URL:
http://localhost:8000/v1 - Set API Key:
turing-local - Models will automatically appear in your model selector dropdown.
5. Kubernetes Deployment (KServe, Helm & llm-d)¶
Turing Engine provides production manifests for Kubernetes orchestration:
- βΈοΈ Full llm-d & Kubernetes Distributed Serving Guide β Prefix-cache aware routing, InferencePools, and P/D disaggregation.
- π¦ Turing Serving Helm Chart β Configurable deployment with Prometheus metrics and GPU limits.
- π KServe
ServingRuntime:
apiVersion: serving.kserve.io/v1alpha1
kind: ServingRuntime
metadata:
name: turing-runtime
labels:
llm-d.ai/engine-type: "turing"
spec:
supportedModelFormats:
- name: turing-subspace
version: "1"
autoSelect: true
- name: huggingface
version: "1"
autoSelect: false
containers:
- name: kserve-container
image: ghcr.io/intutic/turing:v1.0.0-cuda
command: ["python3", "-m", "turing.cli", "serve"]
args: ["--model", "$(MODEL_NAME)", "--port", "8080", "--device", "cuda"]
resources:
limits:
nvidia.com/gpu: "1"
memory: 32Gi
cpu: "8"
requests:
nvidia.com/gpu: "1"
memory: 24Gi
cpu: "4"