nano-vllm
nano-vllm is a lightweight vLLM project implemented from scratch, aiming to provide offline inference speed comparable to vLLM while keeping the code concise and readable, with the entire implementation being about 1200 lines of Python code. It integrates optimization techniques such as prefix caching, tensor parallelism, Torch compilation, and CUDA graph, making it suitable for developers who need to understand the internal implementation of large model inference engines or perform lightweight deployment.