whatisgithub

What is llmviz?

h9-tec/llmviz — explained in plain English

Analysis updated 2026-05-18

23PythonAudience · researcherComplexity · 2/5LicenseSetup · easy

In one sentence

A Python tool that generates publication-quality diagrams of LLM architectures straight from a model's config.json, no weights or GPU needed.

Mindmap

mindmap
  root((repo))
    What it does
      Draws LLM architecture figures
      Reads config.json only
    Tech stack
      Python
      PyPI package
    Use cases
      Diagram Hugging Face models
      Publication ready figures
    Audience
      ML researchers
      Educators

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Generate an architecture diagram for any Hugging Face model using just its config.json.

USE CASE 2

Visualize a local GGUF or Ollama-installed model's architecture without loading weights.

USE CASE 3

Create publication-ready figures for a paper or blog post explaining an LLM's structure.

USE CASE 4

Compare the architecture of two models side by side using generated diagrams.

What is it built with?

PythonPyPI

How does it compare?

h9-tec/llmvizaaravkashyap12/advise-project-approachabu-rayhan-alif/django-saas-kit
Stars232323
LanguagePythonPythonPython
Setup difficultyeasyeasymoderate
Complexity2/52/53/5
Audienceresearcherdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min
Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

So what is it?

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.

Copy-paste prompts

Prompt 1
Show me how to install llmviz and generate a diagram for a Hugging Face model id.
Prompt 2
Explain how llmviz computes parameter counts from a config.json without loading weights.
Prompt 3
Help me generate an architecture figure for a model I have running in Ollama.
Prompt 4
Describe how llmviz's generic parser handles architectures it wasn't specifically built for.

Frequently asked questions

What is llmviz?

A Python tool that generates publication-quality diagrams of LLM architectures straight from a model's config.json, no weights or GPU needed.

What language is llmviz written in?

Mainly Python. The stack also includes Python, PyPI.

What license does llmviz use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is llmviz to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is llmviz for?

Mainly researcher.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.