rampgate
ramp + gate: hold each job's warm-up ramp at the gate, measure what it really uses, then reserve exactly that.
rampgate is an observation-based admission scheduler: a small, embeddable, pure-Python library with zero runtime dependencies. It decides when a job may start on a device the caller chose:
- Probation: at most one warming job without a trusted estimate per device, so ramp-ups never race.
- Observed-peak reservation: reserve
observed_peak × safety_margin, growing if the peak grows. - OOM feedback: an OOM grows the estimate and re-queues the job to resume from its checkpoint.
Quickstart
from rampgate import Device, FifoPolicy, Job, MarkStable, Resources, Start
from rampgate.sim import RampPlateau, Scenario, SimJob, simulate
gpu = Device("gpu0", Resources(vram=24)) # GB here; any unit works
ramp = RampPlateau(load_s=20, ramp_s=40, plateau=Resources(vram=9), duration_s=300)
jobs = tuple(SimJob(Job(f"train-{i}", {"gpu0": None}), ramp, submit_at=0) for i in range(3))
trace = simulate(Scenario((gpu,), jobs), FifoPolicy(), max_time=3000)
for tick in trace.ticks:
for action in tick.decision.actions:
if isinstance(action, Start | MarkStable):
print(f"t={tick.now:5.0f} {type(action).__name__:10} {action.job_id}")
print("OOM kills:", trace.world.oom_count, " finished at t =", trace.ticks[-1].now)
Adapters for real machines: rampgate-nvml (NVIDIA GPUs), rampgate-psutil (host RAM/CPU), rampgate-docker (Docker executor).
Status: alpha. All benchmark results come from rampgate's deterministic simulator; a demonstration on one laptop GPU is described in the repository, along with the benchmark, its methodology and the limits of what was tested.
Metadata
Release files for rampgate 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rampgate-0.1.0.tar.gz | 108.7 kB | With provenance | Details for rampgate-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rampgate-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for rampgate-0.1.0-py3-none-any.whl |
Total release size: 179.0 kB
Release files / rampgate-0.1.0.tar.gz
| Download URL | rampgate-0.1.0.tar.gz |
|---|---|
| Size | 108.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1e4a0c33d744e01d83a53ef3799ca3649bcf33a1ada73101275f42b638881cd3
|
|
BLAKE2b-256 checksum How to use checksums |
42136a5cc550cb8842367bb713ea68ea382e239984a8d9d4f8d141f222d326d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Oct 30, 2026.
Transparency logRelease files / rampgate-0.1.0-py3-none-any.whl
| Download URL | rampgate-0.1.0-py3-none-any.whl |
|---|---|
| Size | 70.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3c4bff3e175481a551f2c692a0fdc5808f58154642e6b4b3930c4d68f1d7770f
|
|
BLAKE2b-256 checksum How to use checksums |
3a72177014fb9bffedd4ffa3bb824116bcf67e0580d15ca2ca218418dae30e24
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Oct 30, 2026.
Transparency logSecurity for rampgate 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
Both files in this release have been uploaded with provenance metadata.
Attestation for rampgate-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 Oct 30, 2026.
Transparency logA 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.