{
  "gem": {
    "slug": "transformer-flops-memory-calculator-vg-2847",
    "name": "Transformer FLOPs & Memory Calculator",
    "description": "Browser calculator that turns a transformer's layers, width, heads, sequence length, batch size and precision into parameter count, training and inference FLOPs, KV-cache size and a training VRAM breakdown.",
    "url": "https://ml0x.com/tools/transformer-flops-memory-calculator",
    "domain": "ml0x.com",
    "author": "Michael Lip (ml0x)",
    "license": "Free hosted-tool access; no open-source license granted.",
    "category": "Dev Utilities & Vibe-Coding Tooling",
    "subcategory": "Browser utilities",
    "tags": [
      "machine-learning",
      "transformers",
      "gpu-memory",
      "calculator"
    ],
    "whyGem": "It shows the arithmetic rather than a single number: 12·L·d_model² block parameters plus embeddings, the ~6N training / ~2N inference FLOPs-per-token rule with the attention and FFN terms, and optimizer-state bytes per precision, with GPT-2 to GPT-3 presets. Handy for checking whether a model fits a GPU before renting one. Runs entirely client-side.",
    "sourceType": null,
    "image": "/api/public/library/og/VG-2847-card.svg",
    "pageUrl": "https://vibing.inc/library/transformer-flops-memory-calculator-vg-2847"
  }
}