Skip to content

πŸ”Œ 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:

from langchain_openai import ChatOpenAI

llm = ChatOpenAI(
    base_url="http://localhost:8000/v1",
    api_key="turing-local",
    model="deepseek-r1-7b"
)
response = llm.invoke("Explain quantum computing in simple terms:")
print(response.content)
from turing.integrations.langchain import ChatTuring

llm = ChatTuring(
    model="deepseek-r1-7b",
    base_url="http://localhost:8000/v1",
    sparsity_ratio=0.57, # 57% FFN channel pruning
    svd_rank=64          # Rank-64 SVD INT8 KV cache
)
print(llm.invoke("Write a quick C++ SIMD routine:")["content"])

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)
from llama_index.llms.openai_like import OpenAILike

llm = OpenAILike(
    model="deepseek-r1-7b",
    api_base="http://localhost:8000/v1",
    api_key="turing-local",
    is_chat_model=True
)
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:

  1. In Open WebUI: Go to Settings βž” Connections βž” Ollama API.
  2. Set Ollama Base URL: http://localhost:8000
  3. Click Verify Connection β€” all loaded models will automatically sync via /api/tags.
  4. In Continue.dev (~/.continue/config.json):
    {
      "models": [
        {
          "title": "Turing Engine DeepSeek-R1",
          "provider": "ollama",
          "model": "deepseek-ai/DeepSeek-R1-Distill-Qwen-7B",
          "apiBase": "http://localhost:8000"
        }
      ]
    }
    
  1. Open your chat UI Settings βž” OpenAI API.
  2. Set Base URL: http://localhost:8000/v1
  3. Set API Key: turing-local
  4. Models will automatically appear in your model selector dropdown.

5. Kubernetes Deployment (KServe, Helm & llm-d)

Turing Engine provides production manifests for Kubernetes orchestration:

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"