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

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.1
File Size Uploaded Provenance Actions
ridgepoint-0.1.1.tar.gz 34.1 kB With provenance Details for ridgepoint-0.1.1.tar.gz

Built distributions (wheels)

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

Download URL ridgepoint-0.1.1.tar.gz
Size 34.1 kB
Tags Source
SHA-256 checksum
How to use checksums
2219c6d73097a63140b3cc73178b0eb11c8a02164c6516f69ea30f3be240c97d
BLAKE2b-256 checksum
How to use checksums
defb9330e0c0fe8807436892b7a49d514ebd4e07cc6d52884e0c249760a6a9b4
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.1-cp39-abi3-win_amd64.whl

Download URL ridgepoint-0.1.1-cp39-abi3-win_amd64.whl
Size 204.3 kB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
7ca516515d0c5d01456815a54f7c37223a56201ee6fc32b0ed855007be3ba6dd
BLAKE2b-256 checksum
How to use checksums
0765434f3844c49419387031ed3b130397580e487f8ea6df149b3bd9044589e4
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.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL ridgepoint-0.1.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 269.7 kB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
dad7edd260d121a68bf0fd0a6501ebb6046e4d303aadfbb683b7dbb009ad3c1f
BLAKE2b-256 checksum
How to use checksums
b7acc53b6ecf7d4edeef048170358bb6dd1d8788a805c5cb7a37bae3e9c2e2cc
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.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL ridgepoint-0.1.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 255.9 kB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
dfdb50d99219ba35acd5956ebd1454905a5dcb2812292c3a2b40300ff2d96a97
BLAKE2b-256 checksum
How to use checksums
43215f26fed5ae2265302eac4a035f18776597e8376787ea44016f92af68f6eb
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.1-cp39-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl

Download URL ridgepoint-0.1.1-cp39-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Size 483.8 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
40b52313471e328bb8505eebac820b788358125f7265c7abcee13d4917a8a3cc
BLAKE2b-256 checksum
How to use checksums
046096d8e6536f7ed95b70edfaf6ce2511fa0de92f4a1752eb6a533334e07bf3
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.1

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