open source · cloud-agnostic · bioinformatics-first

The right machine
for every
workload

cloudfit scores and ranks cloud instances against your workload profile, explains every pick, and stays current as providers reprice, deprecate, and release machine types. GCP and AWS are both live, ranked side by side.

terminal
$ pip install cloudfit-core
Successfully installed cloudfit-core-0.11.0
$ python
>>> from cloudfit import rank, WorkloadProfile, MachineType
>>> profile = WorkloadProfile(vcpu=60, ram_gb=224, archetype="io", optimize_for="balanced")
>>> rank(profile, candidates)[0].instance.id
't2d-standard-60'█

01

Try it now

Two ways to try cloudfit right now. The one-click Gradio UI takes a workload profile through a form and returns ranked instance recommendations. The FastAPI service serves the same scoring engine over HTTP for programmatic use. Both run on bundled snapshots of 875 GCP machine types (us-central1, us-east1, us-west1, europe-west4, asia-southeast1; on-demand, spot, and 1-year committed-use prices from the live GCP billing catalog) and about 6,000 AWS EC2 types (us-east-1, us-east-2, us-west-2, eu-west-1, ap-southeast-1; on-demand and 1-year reserved prices from AWS's public price list), with per-family speed factors and GPU types, refreshed weekly. Both clouds are ranked together, or one at a time. Every pick comes with a one-line reason. No credentials needed.

Open the UI ↗   Swagger UI ↗   /health ↗

The Space sleeps when idle, so the first request may take 30 to 60 seconds to wake the container. Subsequent requests are instant.

POST /recommend  ·  rank machine types
$curl -sX POST https://chaitanyakasaraneni-cloudfit-api.hf.space/recommend \
  -H 'content-type: application/json' \
  -d '{
    "workload": {"vcpu": 32, "ram_gb": 128, "optimize_for": "balanced", "pricing_mode": "spot"},
    "region": "us-central1",
    "top_k": 3
  }'
→ top 3 instances in us-central1, scored on spot prices, each with per-component contributions and a one-line reason
GET /instances  ·  browse the catalog
$# filter by region, vCPU, GPU, status
$curl 'https://chaitanyakasaraneni-cloudfit-api.hf.space/instances?region=europe-west4&min_vcpu=64&limit=5'
$# asia-southeast1 has fewer families in the bundled snapshot
$curl 'https://chaitanyakasaraneni-cloudfit-api.hf.space/instances?region=asia-southeast1&limit=5'
→ matching instances with full specs and pricing
GET /providers  ·  snapshot summary
$curl 'https://chaitanyakasaraneni-cloudfit-api.hf.space/providers'
→ per-provider instance count, regions present, and status breakdown (active / deprecated / tombstoned)
$# useful for "what's in the snapshot right now?"
POST /diff  ·  compare two workloads
$curl -sX POST https://chaitanyakasaraneni-cloudfit-api.hf.space/diff \
  -H 'content-type: application/json' \
  -d '{
    "a": {"workload": {"vcpu": 16, "ram_gb": 64}},
    "b": {"workload": {"vcpu": 64, "ram_gb": 256}}
  }'
→ top pick for each + price/hr, monthly cost, vCPU, RAM deltas

02

How it works

1
Describe your workload
Declare vCPU, RAM, archetype, disk requirements, GPU needs, and pricing mode (on-demand, spot, or 1-year committed use) in a WorkloadProfile or a YAML file. cloudfit understands five resource archetypes: I/O, CPU, memory, GPU, and burst-parallel.
2
Score every candidate
Hard floor filters eliminate instances that can't meet your minimum requirements. The scoring engine then weights cost, performance, and availability according to your optimize_for mode, accounting for how fast each machine family really is. No cloud credentials needed.
3
Get a ranked recommendation
Receive a ranked list with composite scores, sub-scores, and a one-line reason explaining each pick. Feed the result into Terraform, Nextflow, or any IaC pipeline. The GCP and AWS provider plugins keep the catalog current as instance families are repriced, deprecated, and released.

03

Features

Hard floors with reasons
Region, vCPU, RAM, GPU presence, GPU VRAM, and lifecycle status are checked before scoring. Anything that cannot run your workload is disqualified with a plain-language reason, such as RAM 192 GB < required 224 GB.
Effective capacity
Every GCP machine family and AWS EC2 family carries a documented perf_factor on one scale (GCP n2 is the 1.0 baseline), so a c3 core is not treated like a t2d core, and a Graviton4 core not like a 2013 Xeon. vCPU fit uses vCPU × perf_factor, and cost is scored per unit of work, so a faster family can win at a higher hourly price.
Spot and committed-use pricing
Score on on_demand, spot, or 1-year committed-use (cud_1yr) prices. Burst workloads default to spot because they are restart-tolerant, and so do jobs marked scheduling.spot. When an instance has no price for the chosen mode, cost falls back to on-demand rather than looking free.
GPU-aware
VRAM is a hard floor, and the GPU archetype scores accelerator throughput from a documented GPU_CLASS table, so an A100 outranks a T4 at equal VRAM. H100, H200, L40S, A100, V100, L4, A10G, T4 (and T4G), P100, Radeon Pro V520, P4, M60, and K80 are covered, across GCP and AWS.
Explainable picks
Every result carries contributions (exactly what cost, perf, and availability added to the score) and a one-line reason, for example Led by performance fit; c2d cores ~8% faster than baseline; priced on 1-year committed use.
Headroom
Ask for spare capacity above what you declare (headroom=0.25 targets 1.25x). In hard mode instances without the buffer are disqualified; in soft mode they lose fit credit but can still win on cost.
Archetypes, modes, and weights
Five archetypes (I/O, CPU, memory, GPU, burst) set the perf weighting; four optimize_for modes (cost, balanced, performance, availability) set the score weights; custom weights override both. Profiles can be written in YAML, including pricing mode and region, and loaded with from_yaml.
Disk sizing from the run
compute_disk_tb estimates scratch disk from sequencer, flowcell, and lane count (MiSeq, NextSeq, NovaSeq 6000, NovaSeq X, HiSeq) with a configurable safety margin, and feeds it straight into the profile.
Current catalog
Machine types carry a lifecycle status: deprecated instances score lower and tombstoned ones are disqualified, so IaC configs warn instead of break. Spot, committed-use, and on-demand prices are refreshed weekly from the GCP billing catalog and land as reviewed pull requests.

04

Bioinformatics pipelines

I/O
I/O bound
disk-saturating
CPU
CPU bound
thread-parallel
MEM
Memory bound
large index
GPU
GPU / ML
inference
BURST
Burst parallel
scatter-gather

05

Scoring model

score = w_cost × cost_score  +  w_perf × perf_score  +  w_avail × avail_score

cost_score is cost per unit of work (price in the chosen pricing mode divided by the family's perf_factor), relative to the cheapest qualifying instance (which scores 1.0; one costing twice as much per unit of work scores 0.5), so a faster family can win even at a higher hourly price. perf_score fits effective capacity (vCPU × perf_factor) to your request, and for GPU workloads scores accelerator throughput, so an A100 outranks a T4 at equal VRAM. archetype sets the per-component performance weighting (e.g. mem weights RAM, io weights local SSD against the requested scratch disk), so it shapes the ranking on top of optimize_for and the hard floors. Each result carries contributions (exactly what each term added to the score) and a one-line reason.

Mode w_cost w_perf w_avail Best for
cost
0.70
0.20
0.10
Batch jobs, dev environments
balanced
0.33
0.34
0.33
Default for production workloads
performance
0.10
0.80
0.10
Latency-sensitive, GPU inference
availability
0.10
0.20
0.70
Long-running, deprecation-sensitive
python example.py
from cloudfit import rank, WorkloadProfile, MachineType

profile = WorkloadProfile(
    vcpu=60,
    ram_gb=224,
    workload="io-intensive",
    archetype="io",
    optimize_for="balanced",
)

# supply candidates yourself, or fetch them live with cloudfit-provider-gcp / -aws
candidates = [
    MachineType(id="c2-standard-60", provider="gcp", vcpu=60, ram_gb=240, price_hr=3.13),
    MachineType(id="c3d-standard-60-lssd", provider="gcp", vcpu=60, ram_gb=240, price_hr=3.39),
    MachineType(id="c7i.24xlarge", provider="aws", vcpu=96, ram_gb=192, price_hr=4.28),
]

for r in rank(profile, candidates):
    print(f"{r.instance.id:<30} score={r.score:.2f} ${r.instance.price_hr:.2f}/hr {r.reason}")
#1c2-standard-60         score=1.00  $3.13/hr  Led by performance fit.
#2c3d-standard-60-lssd   score=0.97  $3.39/hr  Led by performance fit.
#3c7i.24xlarge           score=0.00  $4.28/hr  RAM 192 GB < required 224 GB

06

What's new

Each package keeps its own changelog, and every tagged release is published to GitHub Releases automatically, so this list is always current. Full history: core · provider-gcp · provider-aws · api · ui.


07

Ecosystem

● live
cloudfit-core
Scoring engine: workload profiles, hard floors, effective capacity, spot and committed-use pricing, GPU throughput, explainable picks, dynamic disk sizing. Pure Python (3.10 to 3.14), no cloud credentials needed.
pip install cloudfit-core
● live
cloudfit-provider-gcp
Fetches GCP Compute Engine machine types, availability, and on-demand, spot, and 1-year committed-use pricing, and normalizes them for cloudfit-core. A scheduled job refreshes the bundled snapshot prices weekly.
pip install cloudfit-provider-gcp
● live
cloudfit-provider-aws
Reads AWS's public EC2 price list (no AWS account or credentials) and normalizes every Linux instance type for cloudfit-core: on-demand and 1-year reserved prices, per-family speed factors, GPU model and memory, and previous generations marked deprecated. A scheduled job rebuilds the bundled snapshot weekly.
pip install cloudfit-provider-aws
● live
cloudfit-api
REST API (service, not a library). /recommend · /instances · /providers · /diff, with a pricing mode and a reason for every pick. GCP and AWS snapshots (5 regions each) refreshed weekly; workload.providers picks the clouds. FastAPI with OpenAPI docs. Self-host with Docker, or use the live demo on Hugging Face Spaces.
→ open /docs to try it
● live
cloudfit-ui
One-click Gradio demo over the scoring engine. Workload profile in, ranked GCP and AWS machine types out. Pick a pricing mode and the clouds, and see why each machine was chosen. Five example workloads (BWA-MEM2, Cell Ranger, AlphaFold, Nextflow burst, Spark ETL) built in.
→ open the demo
samplesheet-parser
Format-agnostic Illumina SampleSheet parser. Auto-detection, V1↔V2 conversion, Hamming distance validation.
pip install samplesheet-parser
clinops
Clinical ML data quality library. MIMIC-III dataset support and reproducible quality checks for clinical research.
pip install clinops

Author
Chaitanya Krishna
Kasaraneni

Software engineer focused on cloud-based data infrastructure for batch and bioinformatics workloads. Published researcher across AI/ML, medical imaging, and computational drug discovery.

Publications