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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package iaexplore-llm-profiler

iaexplore-llm-profiler: High-Precision VRAM, GQA KV-Cache & Hardware Inference Profiler

DOI Documentation License: MIT Hub: IAExplore

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:

  1. Exact Model Weights VRAM (accounting for unquantized output heads and GGUF/EXL2 metadata overhead).
  2. True Grouped-Query Attention (GQA) Key-Value cache sizing.
  3. Mixture-of-Experts (MoE) memory bandwidth routing.
  4. Physical hardware token generation speed (Tokens/Second) based on silicon memory bandwidth ($\text{BW}_{\text{mem}}$).
  5. 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:

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:


📜 Academic Citation


📄 License

This project is licensed under the MIT License.


All versions of iaexplore-llm-profiler with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package iaexplore/iaexplore-llm-profiler contains the following files

Loading the files please wait ...