Skip to content

About

Hi, Consumers this is a "Full-Stack Application" for All GPU - LLM Computer and Memory Requirement Calculator.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

ย 

History

111 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿš€ LLM Hardware Calculator ๐Ÿง ๐Ÿ’ป

Your ultimate VRAM estimator & GPU matchmaker for LLM inference, training, and quantization.

React TypeScript Vite TailwindCSS

License: MIT PRs Welcome Contributor Covenant Security Policy

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.


โœจ Key Features

๐Ÿง  1. Inference Mode

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.

๐Ÿ‹๏ธโ€โ™‚๏ธ 2. Training Mode

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.

๐Ÿ—œ๏ธ 3. Quantization Mode

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.

๐Ÿ“ค 4. Export & Sharing

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!

๐Ÿ› ๏ธ Tech Stack

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.

๐Ÿš€ Getting Started

Ready to run this locally? Let's get you set up in seconds.

๐Ÿ“‹ Requirements

  • Node.js (v20+ LTS recommended)
  • npm (We respect the package-lock.json!)

๐Ÿ’ป Installation & Commands

# 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

๐Ÿ“‚ Repository Structure

.
โ”œโ”€โ”€ .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

๐Ÿ’พ State Persistence

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!


๐Ÿงฎ The Calculation Model (How it works)

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/!


๐ŸŽจ Design Philosophy

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)


๐Ÿค Contributing & Community

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.

๐Ÿ“š Citation

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}
}

๐Ÿ—บ๏ธ Roadmap

  • ๐Ÿค– 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.

๐Ÿ”’ Security & ๐Ÿ“„ License

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.

About

Hi, Consumers this is a "Full-Stack Application" for All GPU - LLM Computer and Memory Requirement Calculator.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages