LLManim¶
Reusable Manim components for creating LLM and Transformer explanation videos.
Installation¶
pip install llmanim
Usage¶
from manim import *
from llmanim.base.shapes import MatrixBox, VectorBar, TokenBox
Reference¶
llmanim/base/shapes.py Reusable base shapes and mobjects for the llmanim library. |
|
llmanim/base/animations.py Reusable animation functions for the llmanim library. These are standalone functions (not classes) — call them inside self.play(). |
|
llmanim/base/utils.py Pure utility helpers for the llmanim library. No Manim scene or animation logic here — only: :5: (ERROR/3) Unexpected indentation. Math helpers (softmax, scaled dot-product, positional encoding, etc.) Layout helpers (auto-arrange, grid positions, bounding-box arithmetic) Color helpers (value-to-color mapping, interpolation, heatmap palette) Text helpers (number formatting, LaTeX builders, truncation) Timing helpers (run-time calculators, lag schedules) Data helpers (fake token sequences, random weight matrices, sample logits) Logging (scene step printer, shape inspector) |
|