Skip to main content

ridgepoint

LLM inference sizing that models the engine, not just the weights — calibrated to ~1% against real vLLM.

Every "will it fit?" calculator computes weights + KV < VRAM. That is the wrong model for paged serving engines: vLLM pre-reserves gpu_memory_utilization × VRAM at startup and pages KV into that pool. ridgepoint models what actually decides the answer — and its numbers are checked against live vLLM on A100/H100 (see calibration/CALIBRATION.md), matching measured memory to ~1% and the KV-cache formulas to the byte for both GQA and MLA.

The name is the ridge point of the roofline model: the arithmetic intensity where decode stops being memory-bandwidth-bound. It's the number this tool reasons about.

$ ridgepoint fit meta-llama/Meta-Llama-3-8B-Instruct --gpu a100-80gb:1 --ctx 8192

  ✓  SERVES        ~54 seqs @ 8192 ctx (best)
  MEMORY                low     best    high
    weights  fp16     15.0 GiB  exact
    overhead           1.5 ·   1.8 ·   2.2 GiB
    KV pool           54.2 ·  54.5 ·  54.9 GiB   ←      (vLLM measured: 55.1 GiB)
  SPEED  roofline
    decode/req          65 ·   73 ·   81 tok/s  MBU calibrated
  CAPACITY @8192       54 seqs · 1.0 GiB/seq

Why it's different

  • Engine-aware capacity — the usable KV pool after the engine's pre-grab → real max concurrent tokens. No other calculator models the allocator.
  • KV cache correct to the byte — GQA 2·n_kv·head_dim·L·kv_bytes and MLA (d_c+d_rope)·L·kv_bytes (DeepSeek-style MLA holds ~4–6× fewer bytes/token than a GQA formula would predict).
  • Calibrated, not guessed — usable VRAM in real GiB (not the marketing decimal), an overhead model fit on hardware (activation shards under tensor-parallel; per-GPU context/graphs scale with count), real quant bpw (AWQ ≈ 4.5), measured decode MBU (≈ 0.61, transfers A100↔H100).
  • Intervals, not points, with honesty — deterministic terms are exact; measured terms carry a band; every field says whether it's calibrated. TTFT/MFU is honestly a wide literature band (not yet cleanly measured).
  • Model-agnostic — pass any HuggingFace repo id; ridgepoint fetches its config and computes its guts (GQA / MLA / MoE detected automatically).

Install

pip install ridgepoint

Usage

ridgepoint fit  <model> [--gpu id:N] [--engine vllm|llamacpp] [--dtype fp16|fp8|q4_k_m|awq|...] \
                        [--kv-cache-dtype fp16|fp8] [--ctx N] [--prompt N] [--json]
ridgepoint scan <model> [same flags; sweeps context → capacity + speed frontier]
ridgepoint devices        # detect local NVIDIA GPUs

# <model> is a built-in id (llama-3-70b, deepseek-r1, mixtral-8x7b, ...) OR any HuggingFace repo:
ridgepoint fit Qwen/Qwen2.5-7B --gpu a100-80gb:1
ridgepoint fit deepseek-ai/DeepSeek-V2-Lite --gpu a100-80gb:1     # MLA·MoE, auto-detected

As a library:

import ridgepoint
print(ridgepoint.fit("llama-3-70b", "a100-80gb", count=2, dtype="fp16"))
print(ridgepoint.scan("mistralai/Mistral-7B-v0.3", "h100-80gb", as_json=True))

Architecture

A pure-math Rust core (ridgepoint._core) — depends only on numeric dimensions, never on HTTP/HF, so it stays stable as the ecosystem churns — plus a thin HuggingFace input adapter in Python (ridgepoint.hf) that turns any repo into dimensions the core sizes. The same core also ships as a Rust crate + CLI.

Status & honesty

  • Memory / capacity / decode: calibrated on vLLM 0.28 (A100 + H100). Predict-vs-measured in calibration/CALIBRATION.md.
  • TTFT / MFU: literature band (remote benchmarking can't isolate prefill from network) — flagged, not hidden.
  • n_params/active_params for HF models are estimated from metadata (documented; feed interval outputs).
  • Engines modeled: vLLM (pre-grab) and llama.cpp (incremental). More to come.

License

MIT

Metadata

Release files for ridgepoint 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ridgepoint 0.1.2
File Size Uploaded Provenance Actions
ridgepoint-0.1.2.tar.gz 476.0 kB With provenance Details for ridgepoint-0.1.2.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for ridgepoint 0.1.2
File Actions
ridgepoint-0.1.2-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details for ridgepoint-0.1.2-cp39-abi3-win_amd64.whl
ridgepoint-0.1.2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 abi3 Linux glibc 2.17+ x86-64 Details for ridgepoint-0.1.2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
ridgepoint-0.1.2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.9 abi3 Linux glibc 2.17+ ARM64 Details for ridgepoint-0.1.2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
ridgepoint-0.1.2-cp39-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl CPython 3.9 abi3 macOS 10.12+ universal2 (ARM64, x86-64), macOS 11.0+ ARM64, macOS 10.12+ x86-64 Details for ridgepoint-0.1.2-cp39-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl

Total release size: 1.7 MB

Release files / ridgepoint-0.1.2.tar.gz

Download URL ridgepoint-0.1.2.tar.gz
Size 476.0 kB
Tags Source
SHA-256 checksum
How to use checksums
40745439d1554b4dc9050b89a9482caa6164df8f1fe273fed130214a4a604bfe
BLAKE2b-256 checksum
How to use checksums
72f9cdc863ca6dc3b592c8f4fd04aeeedcb3bfb165f3a1470faf23644a68ab52
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.

Transparency log

Release files / ridgepoint-0.1.2-cp39-abi3-win_amd64.whl

Download URL ridgepoint-0.1.2-cp39-abi3-win_amd64.whl
Size 205.5 kB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
9ea03f219f3ca3dcf85c22c27de38026a584fd98d435409260ced9808e4aa2ba
BLAKE2b-256 checksum
How to use checksums
a5338e80dae1a9a8f40b41621e5576de244628b048e04d90539ad09dc44917d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.

Transparency log

Release files / ridgepoint-0.1.2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL ridgepoint-0.1.2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 270.8 kB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
150b2d11936b388430c56c3b2e4054a5b0e55748cc900d9ccc70e546f868e380
BLAKE2b-256 checksum
How to use checksums
d5df7ae6028ca68e4ad32ef64f387a3728313c566e5c47879e3a3fc8bdc2af39
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.

Transparency log

Release files / ridgepoint-0.1.2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL ridgepoint-0.1.2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 257.1 kB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
152064d950c05db8a9bdbfe517828edb3a05bcab3212b5e5a3c72b6e7bcbb38e
BLAKE2b-256 checksum
How to use checksums
bd442ff13fa2304b4d5fa8c4656757f0db50f48c51fea890404346155ee91cf0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.

Transparency log

Release files / ridgepoint-0.1.2-cp39-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl

Download URL ridgepoint-0.1.2-cp39-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Size 485.3 kB
Tags CPython 3.9 abi3 macOS 10.12+ universal2 (ARM64, x86-64) macOS 10.12+ x86-64 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
3acdcf1b5c7707caadca3ad05ae704255b533cf3849a5c53654806161aa957bf
BLAKE2b-256 checksum
How to use checksums
2a5950d43f4ca8b3a08bb4da5ac3fc522bc07f25d8cf0e00e1ff8c7fd89bc557
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.

Transparency log

Security for ridgepoint 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 5 files in this release have been uploaded with provenance metadata.

Select from 5 files

Attestation for ridgepoint-0.1.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page