Skip to content
Projetos

Sobre

Can your machine run it? Ultra-lightweight (920 KB), zero-dependency native C17/C++23 AI model compatibility checker, memory calculator, hardware profiler & benchmark utility.

IA e aprendizado de máquina

Como estes números são medidos

O que você pode fazer

  • CPU: Raw __cpuidex vendor/model/codename, physical/logical core & NUMA topology, L1/L2/L3 caches, frequencies, and AI SIMD ISA flags (SSE4.2, AVX, AVX2, FMA3, F16C, AVX-VNNI, AVX-512, AMX).
  • GPU: Multi-GPU DXGI 1.6 enumeration (NVIDIA, AMD, Intel, dedicated & integrated), real live available VRAM (QueryVideoMemoryInfo), optional dynamic nvml.dll CUDA compute capability & driver info, precision support (FP32/FP16/BF16/FP8/INT8/INT4/Tensor Cores).
  • Memory: GlobalMemoryStatusEx + raw SMBIOS Type 17 per-DIMM DDR generation, MT/s speed, manufacturer, ECC, and channel bandwidth.
  • NPU & Storage: SetupAPI PCI NPU detection (Intel AI Boost, AMD XDNA, Qualcomm Hexagon) and IOCTL_STORAGE_QUERY_PROPERTY NVMe/SATA/HDD detection.

Crescimento medido de estrelas

em 24 h
0
em 7 dias
Coletando histórico
em 15 dias
Coletando histórico
em 1 mês
Coletando histórico

Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.

README.md

Original

Quanta Logo

Quanta

Can your machine run it?
Ultra-lightweight, zero-dependency, native C17 / C++23 AI model compatibility checker, memory calculator, hardware profiler, and benchmark utility for Windows.
Project Website · Download v1.0.0 · Report Bug

C17 + C++23 Classic Native Win32 920 KB Portable Zero Dependencies MIT License

Quanta Overview Screenshot

Quanta Model Analyzer Screenshot

Quanta Interactive Memory Calculator Screenshot


Overview

Quanta is the "Can You Run It?" utility for artificial intelligence models. It tells you which AI models your computer can run, exactly how much VRAM and RAM they need, how to configure your runtime (llama.cpp, Ollama, etc.), and what token generation speed you can realistically expect — all locally, offline-first, and without installing any AI runtime.

Built in pure C17 and C++23 with zero third-party dependencies and statically linked CRT (/MT), Quanta follows the timeless, no-nonsense desktop utility tradition of HWiNFO64, CPU-Z, GPU-Z, CrystalDiskInfo, and IronSight. No Electron, no Node.js, no Python, no telemetry, and no administrator privileges required.

Build Targets

  • quanta_core: Modular static C17/C++23 library (CPUID/SMBIOS/DXGI/NVML/SetupAPI hardware detection, zero-execution GGUF/Safetensors/ONNX/Transformers parsers, WinHTTP Hugging Face range-header client, architecture-aware compatibility & memory engine, roofline performance estimator, D3D11/SIMD benchmark suite, recommendation engine, runtime config generator, HTML/JSON/CSV/TXT exporter).
  • Quanta.exe: Classic native Win32 + ComCtl32 + GDI+ desktop application (920 KB portable single binary).
  • quanta-cli.exe: Headless CLI sharing 100% of quanta_core (734 KB portable single binary).
  • quanta_tests.exe: Automated 9-suite verification + 250-iteration binary parser fuzzing harness.

Measured Footprint & Real-Hardware Benchmarks

Measured on Windows 11 Pro 25H2 (Build 26200), AMD Ryzen 9 5900X (12C/24T), NVIDIA GeForce RTX 3060 Ti 8 GB, 64 GB DDR4-3200, Crucial P3 Plus NVMe:

Metric Measured Value Notes
Portable GUI Binary (Quanta.exe) 920 KB Static CRT (/MT), zero external DLLs or VC++ redistributable
Portable CLI Binary (quanta-cli.exe) 734 KB Full CLI + JSON/CSV/TXT/HTML reporting
Idle GUI CPU Usage 0.00% Zero background polling when idle
Idle GUI Private Memory 25.7 MB Native Win32 controls (no browser engine overhead)
Native CPU Compute Benchmark 120.9 GFLOPS FP32 / 235.5 GOPS INT8 Multi-threaded SIMD compute proxy
Native RAM Bandwidth Benchmark 32.6 GB/s Read / 21.5 GB/s Triad 192 MB buffer (>L3) — calibrates CPU decode tok/s
Native GPU Direct3D 11 Benchmark 14.51 TFLOPS FP32 / 388.6 GB/s VRAM Pure cs_5_0 compute shader + 25.7 GB/s PCIe H2D
Native Uncached Disk Read 2,162 MB/s 64 MB FILE_FLAG_NO_BUFFERING — calibrates model load time

Key Capabilities

  1. Automatic Native Hardware Detection:
    • CPU: Raw __cpuidex vendor/model/codename, physical/logical core & NUMA topology, L1/L2/L3 caches, frequencies, and AI SIMD ISA flags (SSE4.2, AVX, AVX2, FMA3, F16C, AVX-VNNI, AVX-512, AMX).
    • GPU: Multi-GPU DXGI 1.6 enumeration (NVIDIA, AMD, Intel, dedicated & integrated), real live available VRAM (QueryVideoMemoryInfo), optional dynamic nvml.dll CUDA compute capability & driver info, precision support (FP32/FP16/BF16/FP8/INT8/INT4/Tensor Cores).
    • Memory: GlobalMemoryStatusEx + raw SMBIOS Type 17 per-DIMM DDR generation, MT/s speed, manufacturer, ECC, and channel bandwidth.
    • NPU & Storage: SetupAPI PCI NPU detection (Intel AI Boost, AMD XDNA, Qualcomm Hexagon) and IOCTL_STORAGE_QUERY_PROPERTY NVMe/SATA/HDD detection.
    • Inference Backends: Distinguishes Hardware Supported vs Installed vs Ready for CUDA, ROCm, Vulkan, DirectML, OpenVINO, Metal, CPU, ONNX Runtime, llama.cpp, and Ollama.
  2. Universal Zero-Execution Model Analyzer:
    • Inspects GGUF v2/v3, Safetensors (single & sharded directories), ONNX (bounded protobuf wire scan), Hugging Face config.json, GPTQ, AWQ, and EXL2.
    • Remote GGUF HTTP Range Peek: Inspects Hugging Face GGUF repositories by fetching only the first 256 KB header — never downloads multi-gigabyte weights!
    • Security-First: Refuses to deserialize unsafe PyTorch pickle files (.pt/.pth/.pkl/.bin), enforces strict bounds/overflow checks, and clearly labels Verified vs Inferred metadata.
  3. Architecture-Aware Compatibility & Interactive Memory Calculator:
    • Evaluates weights + quantization metadata overhead + MHA / GQA / MQA / DeepSeek MLA / Sliding Window KV cache (FP32/FP16/Q8_0/Q4_0) + activations + backend runtime overhead + layer-level GPU/CPU offloading + multi-GPU splits.
    • Returns 6 transparent statuses (Excellent, Compatible, Conditional, Limited, Incompatible, Unknown) with plain-English explanations, bottleneck tags, and optimization tips.
  4. Calibrated Performance Estimator & Safe Hardware Benchmarks:
    • Roofline decode & prefill ranges (min - max tok/s), TTFT, cold load time, MoE active-parameter modeling, and context-length degradation curves.
    • Run built-in cancellable native benchmarks to replace theoretical specs with measured local calibration.
  5. Model Explorer, Side-by-Side Comparison, Upgrade Simulator & Runtime Config Generator:
    • Curated built-in catalog of 40+ verified models (General, Coding, Reasoning, Math, Vision, Embeddings, Reranking, Speech, Image Gen) + optional live Hugging Face search.
    • Compare models or quantizations side by side; simulate hypothetical GPU/RAM/Multi-GPU upgrades; copy validated llama-cli, llama-server, and Ollama Modelfile configs.

Supported Hardware & Model Format Matrices

Hardware Support Matrix

Vendor / Platform Detection Memory / Bandwidth Precision Matrix Benchmarks
NVIDIA GPUs (Windows) Confirmed (DXGI + dynamic NVML) Confirmed (live free VRAM + D3D11 measured BW) Confirmed (CC-based) Confirmed (D3D11 cs_5_0)
AMD Radeon GPUs (Windows) Confirmed (DXGI) Confirmed (live free VRAM + D3D11 measured BW) Spec-table (RDNA 2/3/4) Confirmed (D3D11 cs_5_0)
Intel Arc / Integrated (Windows) Confirmed (DXGI) Confirmed (live free VRAM + D3D11 measured BW) Spec-table (Alchemist/Battlemage) Confirmed (D3D11 cs_5_0)
x86-64 CPUs (AMD / Intel) Confirmed (CPUID + Win32 + SMBIOS) Confirmed (SMBIOS + 192MB RAM bench) Confirmed (AVX2/AVX-512/AMX) Confirmed (FP32 + INT8)
NPUs (Intel/AMD/Qualcomm) PCI/SetupAPI Detection N/A (Shared RAM) Reported as framework-dependent Not benchmarked
Linux / macOS Planned (Milestone 3) Modular core ready Planned Planned

Model Format Matrix

Format Local File / Folder Remote Hugging Face Exact Tensor Sizes Safe (No Code Exec)
GGUF (v2 / v3) Yes Yes (HTTP Range Peek) Yes Yes
Safetensors (Single / Sharded) Yes Yes (api/models + tree) Yes Yes
Transformers config.json Yes Yes Inferred from arch Yes
GPTQ / AWQ / EXL2 Yes (quantize_config.json / measurement.json) Yes Yes (with Safetensors) Yes
ONNX (.onnx) Yes (Bounded Protobuf) Partial (file size) Yes (inline initializers) Yes
PyTorch Pickle (.pt/.pth/.bin) File size only (Blocked) File size only No (Blocked for safety) Yes (Refused)

Installation & Build from Source

Download Portable Release (Windows 10/11 x64)

  1. Download Quanta-1.0.0-win64.zip from GitHub Releases and extract anywhere.
  2. Run Quanta.exe directly (portable, zero installation required), or run .\install.ps1 for per-user Start Menu / PATH installation (no administrator privileges required).

Build from Source (MSVC + CMake + Ninja)

# Configure, compile (0 warnings at /W4, static CRT), run all 9 test & fuzz suites, and launch GUI
.\build.ps1 -Test -RunGui

CLI Quick Reference

# Detect CPU, GPU(s), RAM, NPU, Storage & Inference Backends
quanta-cli hardware
quanta-cli hardware --json

# Analyze a local GGUF / Safetensors / ONNX file or folder
quanta-cli analyze model.gguf

# Inspect a Hugging Face model remotely (metadata & GGUF range header only!)
quanta-cli analyze --hf bartowski/Llama-3.2-1B-Instruct-GGUF
quanta-cli analyze --hf Qwen/Qwen2.5-7B-Instruct --quant Q4_K_M --context 8192

# Interactive-grade memory calculator
quanta-cli calculate --params 8B --quant Q4_K_M --context 8192 --kv Q8_0

# Compare models or compare all quantizations of one model
quanta-cli compare llama-3.1-8b qwen2.5-14b qwen3-30b-a3b
quanta-cli compare --quants llama-3.1-8b

# Recommend best models for your machine by task & priority
quanta-cli recommend --task coding --priority balance --limit 10

# Run native safe benchmarks & calibrate estimates
quanta-cli benchmark all

# Generate validated llama.cpp & Ollama configs
quanta-cli config llama-3.1-8b

# Export full report (JSON, CSV, TXT, HTML)
quanta-cli export --format html --model llama-3.1-8b --out report.html

Known Limitations

  • Performance estimates are analytical/calibrated ranges, not guarantees; actual tok/s varies with runtime version, flash-attention kernels, thermal throttling, and prompt cache hits.
  • NPU acceleration is detected and reported honestly, but universal GGUF execution on NPUs is not assumed (requires NPU-compiled ONNX/OpenVINO/QNN graphs).
  • Direct3D 11 GPU benchmark measures FP32 compute and VRAM bandwidth reliably across NVIDIA/AMD/Intel without vendor SDKs, but does not directly benchmark NVIDIA INT4/FP8 Tensor Cores.
  • Linux and macOS support is cleanly architected (src/platform/) for a future milestone; v1.0.0 targets Windows 10 & 11 x64 first.

See docs/FORMULAS.md for all memory & performance equations, ARCHITECTURE.md for system design, DEPENDENCIES.md for the zero-dependency audit, and SECURITY.md for our security policy.


License

Released under the MIT License.

Explore projetos relacionados

Carregando…