// local-llm · GeeeekExplorer/nano-vllm

nano-vllm

nano-vllm — проект с открытым исходным кодом из категории «Локальные LLM» от GeeeekExplorer (GeeeekExplorer/nano-vllm на GitHub). У него 15 743 звезды на GitHub и 2 666 форков, он распространяется по лицензии MIT и последний раз обновлялся на GitHub 26 апреля 2026.

A lightweight vLLM implementation built from scratch in about 1,200 readable lines of Python.

★ 15,7 тыс. звёзд⑂ 2,7 тыс. форковMITобновлено апр. 2026
▦ визуал — в README этого проекта нет встраиваемого скриншота,
поэтому здесь заглушка. Руководство ниже в любом случае полное.
// факты о проекте

Факты о проекте

Репозиторий
GeeeekExplorer/nano-vllm
Звёзды GitHub
15 743
Форки
2 666
Лицензия
MIT
Последнее обновление на GitHub
26 апреля 2026
Категория
Локальные LLM
Тип страницы
Полное руководство по установке
// как это работает

Как это работает

  1. Decide if you want speed or understanding

    Choose nano-vllm to run offline inference with a codebase small enough to read fully, or to prototype engine ideas quickly.

  2. Install the package

    Install nano-vllm directly from its GitHub repository with pip.

  3. Download model weights

    Fetch a model such as Qwen3-0.6B from Hugging Face to a local directory.

  4. Generate text

    Load the model with the LLM class, set SamplingParams, and call generate on your prompts, as in example.py.

// возможности

Почему его любят

Readable from-scratch engine

The whole implementation is about 1,200 lines of clean Python, so you can actually read how inference works.

Fast offline inference

The README benchmark shows output throughput comparable to vLLM on the tested setup (Qwen3-0.6B, RTX 4070 Laptop).

Prefix caching

Reuses cached prefixes across requests to avoid recomputing shared prompt beginnings.

Tensor parallelism

Splits a model across multiple GPUs with the tensor_parallel_size setting when one GPU is not enough.

Torch compilation and CUDA graphs

Uses torch compilation and CUDA graphs as part of its optimization suite to cut inference overhead.

vLLM-like API

The LLM and SamplingParams interface mirrors vLLM, so existing vLLM-style code needs only minor changes.

Advertisement
// запустите сами

Запустите сами

  1. Clone the repository

    Clone nano-vllm to read the source and run the included example and benchmark scripts.

    git clone https://github.com/GeeeekExplorer/nano-vllm.git
    cd nano-vllm
  2. Install from GitHub

    Install the package directly from the repository with pip.

    pip install git+https://github.com/GeeeekExplorer/nano-vllm.git
  3. Download a model and generate

    Download Qwen3-0.6B weights, then run example.py-style code with the LLM class and SamplingParams.

    huggingface-cli download --resume-download Qwen/Qwen3-0.6B --local-dir ~/huggingface/Qwen3-0.6B/ --local-dir-use-symlinks False
// сценарии использования

Что можно создать

Advertisement
// вопросы и ответы

Вопросы и ответы

Who maintains nano-vllm?

It is a project by GeeeekExplorer with open-source contributors.

Is nano-vllm free to use?

Yes. It is released under the MIT license.

Does it need a paid API key?

No. It runs models locally on your GPU; you only download open model weights from Hugging Face.

How does it compare with vLLM itself?

Nano-vLLM trades vLLM's breadth (serving features, model coverage, production hardening) for a tiny, readable codebase with comparable offline throughput on the README's tested setup.

How do I get started?

pip install it from GitHub, download Qwen3-0.6B, and run the example in example.py.

// продолжить изучение

Похожие инструменты

Локальные LLM

code-context-engine

Code-context-engine, in Python — built for save 94% on ai coding tokens. index your cod...

★ 425 звёздMIT
Смотреть руководство →
Локальные LLM

GoModel

Go-built AI gateway unifying many providers with routing and guardrails.

★ 1,2 тыс. звёздMIT
Смотреть руководство →
Локальные LLM

vllm-omni

vLLM-Omni — efficient inference for omni-modality models: image, audio, video, diffusion and policies.

★ 7,1 тыс. звёздApache-2.0
Смотреть руководство →
Локальные LLM

WebMCP

Early proposal and implementation for connecting LLMs to web pages.

★ 883 звездыMIT
Смотреть руководство →
Локальные LLM

chatgpt-subtitle-translator

Token efficient translation utility built on ChatGPT or any OpenAI compatible LLM.

★ 389 звёздMIT
Смотреть руководство →
Локальные LLM

gemma

Google DeepMind's Gemma open-weight LLM library — install, load and chat with Gemma models in Python.

★ 5,8 тыс. звёздApache-2.0
Смотреть руководство →
// альтернативы

Альтернативы: Локальные LLM

Другие проекты из категории «Локальные LLM» с наибольшим числом звёзд в каталоге LibreAI — реалистичный список альтернатив, если nano-vllm вам не подходит.

// ещё в категории local-llm

Больше проектов: Локальные LLM

Соседние проекты из категории «Локальные LLM» в каталоге, ближайшие по числу звёзд к nano-vllm — продолжайте изучать полку по обе стороны от него.

Получить nano-vllm

Бесплатно и открыто — забирайте исходный код, ставьте звезду репозиторию и начинайте создавать.