Generate an architecture diagram for any Hugging Face model using just its config.json.
Visualize a local GGUF or Ollama-installed model's architecture without loading weights.
Create publication-ready figures for a paper or blog post explaining an LLM's structure.
Compare the architecture of two models side by side using generated diagrams.
| h9-tec/llmviz | aaravkashyap12/advise-project-approach | abu-rayhan-alif/django-saas-kit | |
|---|---|---|---|
| Stars | 23 | 23 | 23 |
| Language | Python | Python | Python |
| Setup difficulty | easy | easy | moderate |
| Complexity | 2/5 | 2/5 | 3/5 |
| Audience | researcher | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
llmviz generates publication quality diagrams of large language model architectures directly from a model's config.json file. It does not need the model's weights, a GPU, or even the transformers library installed. Point it at a Hugging Face model id, a local GGUF file, or a model already installed in Ollama, and it produces a hand drawn style architecture figure in the visual language popularized by Sebastian Raschka's LLM Architecture Gallery, including the decoder tower with labeled callouts, the mixture of experts router, and the SwiGLU module, with parameter counts calculated directly from the config file rather than pulled from a model card. The README explains the motivation: hand drawn architecture galleries are valuable references but they are made by hand and only cover a snapshot of models. llmviz instead generates the same style of figure automatically, in milliseconds, for any model, as soon as its config file becomes available, even for architectures that did not exist when the tool was written. The parser is described as generic first, meaning it looks for field name synonyms and detects model capabilities automatically rather than hard coding support for specific known models, so it can degrade gracefully on unfamiliar architectures including hybrid Mamba mixers, linear attention, multi head latent attention, and sandwich normalization. The project is written in Python, distributed as a PyPI package, requires Python 3.11 or newer, is licensed under Apache 2.0, and has continuous integration configured through GitHub Actions. Given the audience of the README, this tool is aimed at machine learning researchers, engineers, and anyone writing about or teaching LLM architectures who wants clear, consistent diagrams without manually drawing them in a design tool.
A Python tool that generates publication-quality diagrams of LLM architectures straight from a model's config.json, no weights or GPU needed.
Mainly Python. The stack also includes Python, PyPI.
Use freely for any purpose, including commercial use, as long as you keep the copyright notice.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly researcher.
This repo across BitVibe Labs
Don't trust strangers blindly. Verify against the repo.