ashhart / TensorFold

Dual-backend LLM inference engine delivering OpenAI-compatible serving with per-model kernel optimization across Apple Silicon and NVIDIA GPUs

活跃维护 Apache 2.0 Zig Tracked
1.5k 305 7 分钟前
PyPI
ai ai-tools llm llm-inference llm-tools

星标趋势

数据积累中,暂无足够数据生成趋势图

AI 分析

项目摘要

TensorFold is a high-performance LLM inference engine that serves language models on both Apple Silicon (via MLX) and NVIDIA GPUs through an OpenAI-compatible API. It provides per-model custom kernels and draft verification techniques like MTP heads and context copies to optimize decoding speed, supporting multiple model families including Nemotron, Qwen, GLM, Gemma, and DeepSeek.

为什么值得关注

TensorFold stands out for its dual-backend architecture that delivers optimized inference across both Apple Silicon and NVIDIA GPUs from a single codebase, with per-model kernel specialization and integrated draft verification for faster decoding. Its OpenAI-compatible endpoint makes it a drop-in replacement for cloud APIs while leveraging local hardware acceleration.

优势

  • Dual backend support for Apple Silicon (MLX) and NVIDIA CUDA from unified codebase
  • Per-model custom kernels and draft verification (MTP heads, context copies, DFlash2) for optimized decoding
  • OpenAI-compatible API with additional Anthropic Messages API support
  • Active development with 12 releases in 6 months and 14 contributors
  • Vision/multimodal input support for compatible models

局限性

  • No CI pipeline configured despite having tests
  • No Docker support for containerized deployment
  • No examples directory for quick-start guidance
  • Hardware restrictions: requires Apple Silicon or NVIDIA GPUs with compute capability 8.9+

使用场景

  • Local LLM serving on Apple Silicon Macs with OpenAI-compatible API
  • High-performance NVIDIA GPU inference with custom kernel optimization
  • Multi-modal text and image inference on supported models
  • Drop-in local replacement for OpenAI/Anthropic APIs in development workflows
目标用户: Developers and ML engineers who need optimized local LLM inference on Apple Silicon or NVIDIA hardware with a familiar OpenAI-compatible interface
学习曲线: 中
分析模型:LongCat-2.0 | 分析时间:20 天前