Download the PHP package iaexplore/iaexplore-llm-profiler without Composer
On this page you can find all versions of the php package iaexplore/iaexplore-llm-profiler. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download iaexplore/iaexplore-llm-profiler
More information about iaexplore/iaexplore-llm-profiler
Files in iaexplore/iaexplore-llm-profiler
Package iaexplore-llm-profiler
Short Description Deterministic high-precision VRAM, GQA KV-Cache, MoE memory bandwidth, and llama.cpp layer offloading profiler for 2026 AI models and silicon.
License MIT
Homepage https://www.iaexplore.com/
Informations about the package iaexplore-llm-profiler
iaexplore-llm-profiler: High-Precision VRAM, GQA KV-Cache & Hardware Inference Profiler
iaexplore-llm-profiler is a high-precision deterministic systems profiler and mathematical SDK designed for ML infrastructure engineers, LLM serving architects, and local inference developers.
It accurately models memory footprints and physical memory bus latency across llama.cpp, Ollama, vLLM, and ExLlamaV2, computing:
- Exact Model Weights VRAM (accounting for unquantized output heads and GGUF/EXL2 metadata overhead).
- True Grouped-Query Attention (GQA) Key-Value cache sizing.
- Mixture-of-Experts (MoE) memory bandwidth routing.
- Physical hardware token generation speed (Tokens/Second) based on silicon memory bandwidth ($\text{BW}_{\text{mem}}$).
- Exact integer layer offloading counts (
--n-gpu-layers) for hybrid GPU / System RAM deployment.
Curated and maintained by the IAExplore AI Research & Infrastructure Team.
🔬 Mathematical Formulation
1. Weights VRAM Allocation
$$\text{VRAM}{\text{weights}} = \frac{P{\text{total}} \times 10^9 \times (\text{bits}_{\text{quant}} / 8)}{1024^3} \times 1.08$$
The $1.08$ scalar factor accounts for non-quantized tensors (token_embd, output.weight, RMSNorm) and container metadata.
2. Grouped-Query Attention KV-Cache Sizing
$$\text{VRAM}{\text{kv}} = \frac{2 \times L \times H{\text{kv}} \times D{\text{head}} \times C{\text{ctx}} \times B{\text{batch}} \times (\text{bits}{\text{kv}} / 8)}{1024^3}$$
Where:
- $L$: Transformer layer depth (
num_hidden_layers). - $H_{\text{kv}}$: Key/Value attention heads (
num_key_value_heads). - $D{\text{head}}$: Attention head dimension ($\text{head_dim} = \text{hidden_size} / H{\text{q}}$).
- $C_{\text{ctx}}$: Active context window in tokens.
- $B_{\text{batch}}$: Concurrent sequence batch size.
3. Runtime Context & Activation Overhead
$$\text{VRAM}{\text{overhead}} = 0.55\text{ GB}$$ $$\text{VRAM}{\text{total}} = \text{VRAM}{\text{weights}} + \text{VRAM}{\text{kv}} + 0.55\text{ GB}$$
4. Physical Throughput (Tokens/Second) with MoE
$$\text{VRAM}{\text{active}} = \frac{P{\text{active}} \times 10^9 \times (\text{bits}{\text{quant}} / 8)}{1024^3}$$ $$\text{TPS}{\text{gen}} = \frac{\text{BW}{\text{mem}} \times \eta{\text{efficiency}}}{\text{VRAM}{\text{active}} + (\text{VRAM}{\text{kv}} \times 0.15)}$$
Where $\eta \approx 0.72$ for discrete GPU (CUDA/Metal) and Apple Silicon Unified Memory, and $0.60$ for shared memory (APUs, NPUs, DDR5 RAM).
⚡ Multi-Language Ecosystems
Available natively across 5 modern software ecosystems with zero third-party runtime dependencies:
| Ecosystem | Registry | Install Command | Status |
|---|---|---|---|
| Python | PyPI | pip install iaexplore-llm-profiler |
Production Ready |
| Node.js | NPM | npm install iaexplore-llm-profiler |
Production Ready |
| Rust | Crates.io | cargo add iaexplore-llm-profiler |
Production Ready |
| Go | pkg.go.dev | go get github.com/iaexplore/iaexplore-llm-profiler/go |
Production Ready |
| PHP | Packagist | composer require iaexplore/iaexplore-llm-profiler |
Production Ready |
🖥️ Command Line Interface (CLI)
Quick Benchmark
Sample Terminal Output
📊 Pre-Configured Hardware Matrix (2026)
| Hardware ID | Model Name | Category | Usable VRAM | Bandwidth | Peak Compute |
|---|---|---|---|---|---|
rtx-5090-32gb |
NVIDIA GeForce RTX 5090 | Discrete GPU | 32.0 GB (31.2 usable) | 1792 GB/s | 209 TFLOPS FP16 |
rtx-4090-24gb |
NVIDIA GeForce RTX 4090 | Discrete GPU | 24.0 GB (23.4 usable) | 1008 GB/s | 165 TFLOPS FP16 |
rtx-4070-super-12gb |
NVIDIA GeForce RTX 4070 SUPER | Discrete GPU | 12.0 GB (11.5 usable) | 504 GB/s | 71 TFLOPS FP16 |
rtx-4060-laptop-8gb |
NVIDIA GeForce RTX 4060 Mobile | Mobile GPU | 8.0 GB (7.6 usable) | 256 GB/s | 30 TFLOPS FP16 |
apple-m4-max-128gb |
Apple M4 Max (128GB Unified) | Unified Silicon | 128.0 GB (120.0 usable) | 546 GB/s | 54 TFLOPS FP16 |
apple-m4-pro-48gb |
Apple M4 Pro (48GB Unified) | Unified Silicon | 48.0 GB (44.0 usable) | 273 GB/s | 32 TFLOPS FP16 |
apple-m4-base-16gb |
Apple M4 (16GB Unified) | Unified Silicon | 16.0 GB (13.5 usable) | 120 GB/s | 18 TFLOPS FP16 |
amd-ryzen-ai-max-395-128gb |
AMD Ryzen AI Max+ 395 | Unified APU/NPU | 96.0 GB assignable | 256 GB/s | 126 TOPS INT8 |
intel-core-ultra-9-288v-32gb |
Intel Core Ultra 9 288V | Lunar Lake NPU+Arc | 24.0 GB assignable | 136 GB/s | 120 TOPS INT8 |
qualcomm-snapdragon-x-elite-64gb |
Snapdragon X Elite | Unified SoC+NPU | 48.0 GB assignable | 135 GB/s | 45 TOPS INT8 |
🔗 Official Canonical Guides & Authoritative Citations
For in-depth analysis of AI hardware benchmarks, thermodynamic compute limits, and workstation sizing:
- AI Hardware Architecture & Silicon Guides:
- 2026 PC, Laptop & Workstation Benchmarks:
- Mobile & ARM AI Tablets:
- Physical Computing & Neural Visualization:
📜 Academic Citation
📄 License
This project is licensed under the MIT License.