zhihu/ZhiLight là dự án C++ với 908 sao trong nhóm AI Tools. A highly optimized LLM inference acceleration engine for Llama and its variants.
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
✨ ZhiLight ✨is a highly optimized LLM inference engine developed by Zhihu and ModelBest Inc. The "Zhi" in its name stands for Zhihu. ZhiLight can accelerate the inference of models like Llama and its variants, especially on PCIe-based GPUs. Compared to mainstream open-source inference engines, for example, vllm, it has significant performance advantages.
News 🔥
[2025/05] Support DeepSeek-V3/DeepSeek-R1 FP8 block-quantized model.
[2025/02] Support DeepSeek-V3/DeepSeek-R1 AWQ/GPTQ quantized model.
[2025/01] Support DeepSeek-VL2 multimodal models: deepseek-vl2-tiny, deepseek-vl2-small, deepseek-vl2.
[2025/01] Support LLaMA3 models: Llama-3.1-8B, Llama-3.1-70B, Llama-3.2-1B, Llama-3.2-3B, Llama-3.3-70B.
Roadmap
see Roadmap
🎉🎉 Main Features
Asynchronous OpenAI compatible interface adapted from vllm
Custom defined tensor and unified global memory management
🔥 Encode and all-reduce overlap, we named "dual streams"
Support Int8-quantized all-reduce to further reduce all-reduce cost.
Host all-reduce based on SIMD instructions
Optimized fused kernels, qkv, residual & layernorm etc.
🔥 Fused batch attention for decoding based on tensor core instructions
Support TP and PP on one node, TP is recommended
Support dynamic batch
Support flash attention prefill
Support chunked prefill
Support prefix cache
Support Native INT8/SmoothQuant/FP8/AWQ/GPTQ quantization
Support Marlin kernel for GPTQ
Support MoE, DeepseekV2 MoE and DeepseekV2 MLA
Support Llama/Llama2, Mixtral, Qwen2 series and similar models
🔧 Basic Usage
# Concurrently compile the wheel package, and turn off the unit test
CMAKE_BUILD_PARALLEL_LEVEL=32 TESTING=0 python setup.py bdist_wheel
# Compile with ninja backend
CMAKE_GENERATER="Ninja" python setup.py bdist_wheel
# Install directly
cd ./ZhiLight && pip install -e .
# Start OpenAI compatible server
python -m zhilight.server.openai.entrypoints.api_server [options]
✈️ Docker Image
ZhiLight only depends on the CUDA runtime, cuBLAS, NCCL, and a few Python packages in requirements.txt. You can use the image below for running or building it. You can also directly refer to docker/Dockerfile.
We conducted performance reviews on various mainstream NVIDIA GPUs with different model sizes and precisions. For dense models ranging from 2B to 110B parameters on PCIe devices, ZhiLight demonstrates significant performance advantages compared to mainstream open-source inference engines.
Test Description:
Test purpose is to demonstrate performance, applicable scenarios and limitations
Test metrics include:
QPS: Queries Per Second
TTFT (Time To First Token): First token generation latency
TPOT (Time Per Output Token): Generation latency per output token
Test environments include:
AD102 PCIe : Consumer-grade GPU for experimental research
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/zhihu/ZhiLight là nguồn chính thức.
zhihu/ZhiLight có bao nhiêu sao?
zhihu/ZhiLight có 908 sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/zhihu/ZhiLight. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
zhihu/ZhiLight có phải mã nguồn mở không?
Có — zhihu/ZhiLight phát hành theo license Apache-2.0, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/zhihu/ZhiLight.
zhihu/ZhiLight còn đang phát triển không?
Commit gần nhất trên zhihu/ZhiLight là 5 tháng trước (theo timestamp GitHub). Repo có 104 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
zhihu/ZhiLight là gì?
zhihu/ZhiLight (zhihu/ZhiLight) là dự án C++ trên GitHub. Theo mô tả gốc: A highly optimized LLM inference acceleration engine for Llama and its variants.
zhihu/ZhiLight so với các dự án AI Tools khác thế nào?
zhihu/ZhiLight được TopGit xếp vào nhóm AI Tools, với 908 sao GitHub và viết bằng C++. Xem trang chủ đề AI Tools trên TopGit để so sánh với các dự án tương tự theo số sao và mức độ hoạt động.
Đọc đầy đủ README ở tab phía trên.
ZhiLight có đáng để bạn bỏ thời gian?
ChatGPT, Claude và Perplexity đều đọc được trang này. Hỏi thử xem họ nghĩ gì về ZhiLight.