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.0

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.0
File Size Uploaded Provenance Actions
ridgepoint-0.1.0.tar.gz 33.7 kB With provenance Details for ridgepoint-0.1.0.tar.gz

Built distributions (wheels)

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

Total release size: 1.2 MB

Release files / ridgepoint-0.1.0.tar.gz

Download URL ridgepoint-0.1.0.tar.gz
Size 33.7 kB
Tags Source
SHA-256 checksum
How to use checksums
78a33b7d98cd2fc1aad57ece35197eb626e3f1376209015dc0d6e7e18a49c3b0
BLAKE2b-256 checksum
How to use checksums
bc667a16461950a35f7c45521861bcbe9bd472c92261f85244cf7cb78551eb13
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 7, 2026.

Transparency log

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

Download URL ridgepoint-0.1.0-cp39-abi3-win_amd64.whl
Size 204.0 kB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
d1a2fd903e720d5ad091e44e0fc6a624af49a96500c91dfd5fedc02dfa3f8160
BLAKE2b-256 checksum
How to use checksums
f6075f4d3df54a2ecf302114d9e462b7016f968816c6e774f6f9309b014d9097
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 7, 2026.

Transparency log

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

Download URL ridgepoint-0.1.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 269.3 kB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
a8fb295316d48912a3658fe59715f40f7d9c886725f5d49029778a36776116e8
BLAKE2b-256 checksum
How to use checksums
06db79b55bfb24a55c650e3f55e752fc4deba282fa85176296982a4dad2cbd53
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 7, 2026.

Transparency log

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

Download URL ridgepoint-0.1.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 255.5 kB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
78af720eac34937c974c743f815b3ceaeb752588efa478b54eb96093d98c8d1d
BLAKE2b-256 checksum
How to use checksums
d18f52139982c46eaead1064ae927ff3597685b30296ea3e162ff7016977aa07
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 7, 2026.

Transparency log

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

Download URL ridgepoint-0.1.0-cp39-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Size 483.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
75399759050de4503266e54dcc7d8f211578bfbe11c6775879da40cdd46380fb
BLAKE2b-256 checksum
How to use checksums
05c03acf5f6d81ca58618d0b72fa8ca08c584fd077ac93667eedb700bd375384
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 7, 2026.

Transparency log

Security for ridgepoint 0.1.0

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.0.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 7, 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