Your ultimate VRAM estimator & GPU matchmaker for LLM inference, training, and quantization.
Say goodbye to unexpected Out-Of-Memory (OOM) errors! ๐ฅ A modern, lightning-fast web application that helps ML engineers and developers quickly estimate GPU VRAM requirements for Large Language Models and identify the perfect hardware to run (or train) them.
Get straight to generation. Find out exactly what it takes to serve your model.
- ๐ฏ Model Presets: Fast starting points for popular models (Llama, Mistral, Gemma, DeepSeek, Qwen).
- ๐๏ธ Configurable Inputs: Tweak parameter count (B), precision (FP16, INT8, INT4, FP8), context length, and optimizations.
- ๐ Granular Breakdown: See exactly where your VRAM goes (Weights + KV Cache + Overhead).
- ๐ GPU Matchmaker: Get a ranked list of GPUs that fit your setup.
Plan your next fine-tuning job without the guesswork.
- โ๏ธ Approach Selection: Full Fine-Tune, LoRA, or QLoRA.
- ๐งช Deep Configuration: Set optimizer choice, batch sizes, and gradient accumulation.
- ๐ Memory Anatomy: Detailed breakdown including weights, gradients, optimizer states, activations, and overhead.
- ๐ Hardware Recommendations: Ranked by fitness for your specific training workload.
Weighing speed vs. quality? Compare them side-by-side.
- โ๏ธ Format Showdown: Compare FP32, FP16, INT8, and INT4 instantly.
- ๐ก Practical Guidance: Actionable advice on the tradeoffs between memory footprint, inference speed, and model quality.
Flex your setup or share it with your team.
- ๐ Export to PDF: Generates a beautiful, print-ready specs sheet.
- ๐ Shareable Links: Your entire configuration is encoded in the URL. Copy, paste, and share!
We built this with a modern, snappy, and beautiful stack:
- โ๏ธ React 19 + TypeScript: Rock-solid UI and type safety.
- โก Vite: Blazing fast builds and HMR.
- ๐จ Tailwind CSS v4: Next-gen utility styling with custom CSS variables.
- ๐งฉ Radix UI & shadcn-style: Accessible, unstyled primitives turned beautiful.
- โจ Framer Motion: Buttery-smooth micro-interactions and layout transitions.
- ๐ Sonner: The best toast notifications in the game.
- ๐พ GitHub Spark KV: (
@github/spark/hooks) Seamless persistence for all your UI state.
Ready to run this locally? Let's get you set up in seconds.
- Node.js (v20+ LTS recommended)
- npm (We respect the
package-lock.json!)
# 1. Clone & Install dependencies
git clone https://github.com/abhijeetjha/Hardware-Inference.git
cd Hardware-Inference
npm install
# 2. Fire up the dev server ๐ฅ
npm run dev
# 3. Build for production ๐๏ธ
npm run build
# 4. Preview the production build ๐
npm run preview
# 5. Keep it clean โจ
npm run lint.
โโโ .github/ # Issue forms, PR template, CI workflows, Dependabot
โ โโโ ISSUE_TEMPLATE/ # Interactive GitHub issue forms
โ โโโ workflows/ # GitHub Actions CI & PR linting
โ โโโ CODEOWNERS # Code ownership definitions
โ โโโ dependabot.yml # Automated dependency updates
โ โโโ PULL_REQUEST_TEMPLATE.md # Standard PR checklist
โโโ .editorconfig # Cross-IDE code style configuration
โโโ .env.example # Development environment variables
โโโ .gitattributes # Line ending normalization
โโโ CHANGELOG.md # Semantic release notes & changelog
โโโ CITATION.cff # Academic and project citation format
โโโ CODE_OF_CONDUCT.md # Contributor Covenant v2.1
โโโ CONTRIBUTING.md # Developer contribution guide
โโโ CONTRIBUTORS.md # Project creators and contributors list
โโโ LICENSE # MIT License
โโโ PRD.md # Product & design requirements
โโโ SECURITY.md # Vulnerability reporting & security policy
โโโ SUPPORT.md # Community support and FAQ guide
โโโ package.json # Scripts & dependencies
โโโ vite.config.ts # Vite bundler configuration
โโโ src/
โโโ components/ # Calculators, panels, export tools
โโโ data/ # Hardware specs & model presets
โโโ hooks/ # Custom React hooks & state persistence
โโโ lib/ # Core calculation algorithms & VRAM math
Nobody likes losing their inputs. The app uses GitHub Spark KV to remember your selected settings (like your active tab and config values) between sessions.
Peek at useKV(...) in src/App.tsx to see the magic happen!
We focus on practical, real-world sizing estimates by modeling the heavy hitters of VRAM:
- Weights:
Parameter Count ร Bytes-per-parameter(precision-dependent). - KV Cache: Scales dynamically with your context length and runtime assumptions.
- Training Multipliers: Gradients, optimizer states (Adam vs. 8-bit), activations, and buffer overhead.
โ ๏ธ Disclaimer: Results are estimates based on standard assumptions. Actual VRAM usage varies with framework (PyTorch/JAX), runtime (vLLM/TGI), kernels (FlashAttention), sequence packing, and offloading.Want to dive deep? Check out the logic in
src/lib/!
This isn't just a spreadsheet; it's AI Infrastructure Tooling. Expect a dark, high-contrast, futuristic purple & cyan aesthetic, strong monospace typography for numeric clarity, and subtle Framer Motion animations to make calculations feel alive.
(Read the full design direction in PRD.md)
We love contributions! Want to make the math better? Add more GPUs? Let's do it.
Please read our Contributing Guide and Code of Conduct before submitting a pull request or opening an issue.
Helpful Resources:
- ๐ Contribution Guidelines โ Setup, branch conventions, and PR workflow.
- ๐ Code of Conduct โ Contributor Covenant 2.1 community pledge.
- ๐ฌ Support & FAQ โ Where to get help and troubleshoot calculations.
- ๐ Contributors โ Project creators and community members.
If you use Hardware-Inference in your research, academic work, or benchmark evaluations, please cite it using our CITATION.cff file:
@software{jha_hardware_inference_2026,
author = {Jha, Abhijeet},
title = {Hardware-Inference: LLM Hardware & VRAM Memory Calculator},
year = {2026},
url = {https://github.com/abhijeetjha/Hardware-Inference}
}- ๐ค CI/CD & Repository Automation: GitHub Actions CI, Dependabot, and PR validation.
- ๐ Community Health & Licensing: Contributor covenant, security policy, and MIT license.
- ๐งน Formatting: Introduce Prettier and strict linting rules.
- ๐งช Testing: Write robust unit tests for the calculator engine.
- ๐ Deployment: Add a live demo link and hosting guide.
Please report security issues responsibly via SECURITY.md.
This project is open-source software licensed under the MIT License.
Built with โค๏ธ for the Open Source AI Community.