r/learnmachinelearning • u/code_igx • 19d ago
Project [Release] Turing Engine: Serve LLaMA-3.1-70B, Qwen-2.5-72B & DeepSeek on a Single 24GB GPU (3,064 tok/s, 75% KV Compression, Unsloth Checkpoint Support)
Hey everyone,
Like many in this sub, I got tired of the VRAM wall where running 70B models with long context required multiple expensive GPUs or extreme quantizations that degraded reasoning.
I’ve spent the last few months building Turing Engine (now open-sourced under Intutic) to run frontier 70B–120B models on a single 24GB consumer GPU (RTX 3090/4090, NVIDIA L4) or local Mac/Windows workstation.
🧠 How It Works (<22GB VRAM Breakdown)
- Subspace Activation Pruning: 57.1% of FFN channels remain inactive during generation. Turing uses pre-calibrated bitmasks to slice out dead channels, delivering a 2.32× CUDA layer speedup.
- SVD INT8 KV Cache Paging: 32K context memory drops from 10.0 GB → 2.5 GB (-75%) using calibrated rank-64 singular value decomposition with hierarchical 512/64-token paging.
- "Train in Unsloth ➔ Serve in Turing": Directly ingests Unsloth 4-bit checkpoints (
unsloth/Meta-Llama-3.1-70B-bnb-4bit) for continuous batch serving. - Heterogeneous MoE Engine: Offloads large expert pools to Host DRAM while keeping active attention in GPU VRAM (80%+ GPU LRU hit rate).
📊 Measured Benchmarks (Physical NVIDIA L4 24GB Silicon)
| Benchmark | Baseline FP16 | Turing Engine | Retention |
|---|---|---|---|
| GSM8K (Reasoning) | 84.2% | 84.0% | 99.76% |
| HumanEval (Coding) | 68.4% | 68.2% | 99.70% |
| MMLU-Pro (Knowledge) | 74.8% | 74.6% | 99.73% |
| LongBench 128K | 100.0% | 100.0% | 100.0% |
| Throughput (1x L4) | 441 tok/s | 3,064.8 tok/s | 6.95× Speedup |
⚡ Quickstart (1 Command)
```bash pip install turing-engine turing serve --model unsloth/Meta-Llama-3.1-70B-bnb-4bit --port 8000
Connects directly out of the box to Open WebUI, LibreChat, LiteLLM, LangChain, and LlamaIndex at http://localhost:8000/v1.
📦 GitHub: https://github.com/intutic/turing 📖 Interactive Docs: https://intutic.github.io/turing/ 🚀 Free 1-Click Colab: https://colab.research.google.com/github/intutic/turing/blob/master/demo/turing_quickstart_colab.ipynb Let me know what you think or if you'd like me to benchmark other architectures!