LibreAI / LLM locaux / nano-vllm
// local-llm · GeeeekExplorer/nano-vllm

nano-vllm

nano-vllm est un projet de LLM locaux open source, créé par GeeeekExplorer (GeeeekExplorer/nano-vllm sur GitHub). Il compte 15 743 étoiles sur GitHub et 2 666 forks, il est publié sous la licence MIT et a été mis à jour pour la dernière fois sur GitHub le 26 avril 2026.

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

★ 15,7 k étoiles⑂ 2,7 k forksMITmis à jour avr. 2026
▦ visuel — le README de ce projet ne contient aucune capture intégrable,
voici donc un emplacement réservé. Le guide ci-dessous est complet malgré tout.
// détails du projet

Détails du projet

Étoiles GitHub
15 743
Forks
2 666
Licence
MIT
Dernière mise à jour sur GitHub
26 avril 2026
Catégorie
LLM locaux
Type de fiche
Guide d'installation complet
// fonctionnement

Comment ça marche

  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.

// fonctionnalités

Pourquoi on l'adore

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
// lancez-le

Lancez-le vous-même

  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
// cas d'usage

Ce que vous pouvez créer

Advertisement
// faq

Questions fréquentes

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.

// continuez l'exploration

Outils similaires

LLM locaux

code-context-engine

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

★ 425 étoilesMIT
Voir le guide →
LLM locaux

GoModel

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

★ 1,2 k étoilesMIT
Voir le guide →
LLM locaux

vllm-omni

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

★ 7,1 k étoilesApache-2.0
Voir le guide →
LLM locaux

WebMCP

Early proposal and implementation for connecting LLMs to web pages.

★ 883 étoilesMIT
Voir le guide →
LLM locaux

chatgpt-subtitle-translator

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

★ 389 étoilesMIT
Voir le guide →
LLM locaux

gemma

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

★ 5,8 k étoilesApache-2.0
Voir le guide →
// alternatives

Alternatives en LLM locaux

Les autres projets de la catégorie LLM locaux avec le plus d'étoiles du catalogue LibreAI — la sélection réaliste d'alternatives si nano-vllm ne vous convient pas.

// plus en local-llm

Plus en LLM locaux

Projets de la catégorie LLM locaux proches dans le catalogue, les plus proches en étoiles de nano-vllm — continuez à explorer de part et d'autre.

Obtenir nano-vllm

Gratuit et ouvert : récupérez le code source, mettez une étoile au dépôt et commencez à créer.