Skip to content

About

Twelve-stage inference systems engineering portfolio with reproducible experiments, production serving patterns, and honest benchmark evidence.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Inference Systems: 12-Stage Portfolio

A hands-on curriculum arranged as twelve independent, GitHub-ready project folders. Each project contains a runnable experiment and a README with assumptions, reproducible commands, outcomes, limitations, and follow-up work. The shared regression suite lives in tests/.

Stage Map

Stage Project Runnable center Evidence status
01 01-gpu-systems-foundations VRAM/KV arithmetic and async wall-clock demo Calculated; async timing measured on this CPU host
02 02-inference-mechanics Attention work, KV footprint and event timing Analytical model plus synthetic event trace
03 03-serving-engines Live engine benchmark and concurrent load harness No GPU engine run on this host
04 04-quantization-precision Storage comparison and output-quality evaluator Ideal arithmetic; evaluator fixture only
05 05-kv-cache-engineering Prefix reuse and LRU/LFU replay Deterministic synthetic traces
06 06-scheduling-throughput Queue saturation and token-step batch simulator Queueing model and simulation, not GPU timing
07 07-faster-decoding Acceptance sweep and JSON contract validator Analytical model plus local validation
08 08-multi-model-serving Adapter routing and circuit breaker Deterministic route/state fixtures
09 09-latency-cost-slos Percentiles, cost and bootstrap interval Synthetic request trace
10 10-production-serving-stack HTTP gateway and retry policy Local code; no upstream deployed
11 11-inference-observability Threshold alerts and metrics parser Synthetic exposition fixture
12 12-self-hosted-portfolio Deployment recipe, load clients and arrival profiles GPU measurements pending

Run Locally

Requires Python 3.10+; experiments use the standard library. From this directory:

python .\scripts\run_all_tests.py
python .\scripts\portfolio_audit.py
python .\01-gpu-systems-foundations\src\capacity.py --json
python .\02-inference-mechanics\src\event_metrics.py
python .\04-quantization-precision\src\quality_diff.py .\04-quantization-precision\data\baseline_outputs.csv .\04-quantization-precision\data\quantized_outputs.csv
python .\05-kv-cache-engineering\src\eviction_policies.py
python .\06-scheduling-throughput\src\batch_simulator.py
python .\07-faster-decoding\src\acceptance_sweep.py
python .\08-multi-model-serving\src\router.py
python .\09-latency-cost-slos\src\report.py
python -m unittest discover -s .\tests -v

Developer Services

Use integrations/README.md for shared NVIDIA/CUDA, model registry, engine, observability, cloud, and Kubernetes setup/run instructions. Check this host without network probes using python .\integrations\service_inventory.py; add --endpoint name=http://127.0.0.1:port/health only for services you intentionally want to check. The saved inventory is a point-in-time snapshot, not a GPU benchmark.

Folder Names

The workspace sandbox denied directory rename operations with Windows WinError 5. The existing folders therefore retain their current 01-... names. These are the intended descriptive names once moved/renamed in a writable location:

Current folder Intended folder
01-gpu-systems-foundations silicon-capacity-lab
02-inference-mechanics decode-anatomy-lab
03-serving-engines engine-bakeoff
04-quantization-precision precision-tradeoffs
05-kv-cache-engineering kv-cache-workbench
06-scheduling-throughput batching-scheduler
07-faster-decoding speculative-decoding-lab
08-multi-model-serving adapter-routing-lab
09-latency-cost-slos inference-slo-lab
10-production-serving-stack serving-reliability-gateway
11-inference-observability inference-observability-lab
12-self-hosted-portfolio self-hosted-inference-capstone

Evidence Contract

Every result is one of: analytical (equations from disclosed inputs), synthetic-fixture (local test data), local-integration (HTTP behavior tested against an in-process test server), live-measurement (requests and/or telemetry captured from a running target), validation-run (actual test/build checks and host runtime metadata), or live-environment-inventory (local tool/package inventory without implicit network probes). These classes are not interchangeable. The checked-in HTTP tests prove protocol and instrumentation behavior; they do not prove GPU latency, engine throughput, quality, or cost.

The latest locally captured verification is results/validation/latest-validation.json; the tool inventory is results/validation/latest-host-inventory.json. These record validation and environment data only, not model performance.

Run python scripts/portfolio_audit.py to verify that every stage has the required documentation structure and evidence classification. The canonical quality standard is documented in docs/portfolio-quality-standards.md, and the evidence manifest template is docs/evidence-manifest-template.json.

The model-shape defaults use public Qwen2.5-7B-Instruct configuration metadata: model card and config.json. The 7.615B parameter count is an approximate sizing input; layer/head counts are the architectural values used by the arithmetic. No weights are downloaded by these labs.

The machine check found Python 3.13.1 and Git on Windows, but no nvidia-smi command. Therefore, no CUDA, engine, quantized-quality, or GPU cost result is presented as measured. Synthetic fixtures are marked as such. Engine and deployment scripts are designed to collect real measurements when run against live services. Record GPU model, driver, CUDA/runtime versions, model revision, flags, workload, warmup, concurrency, and timestamps before publishing a comparison.

Layout

Each project folder contains README.md, src/, tests/, and stage-specific data/ and results/ where useful. Run all standalone suites and syntax checks with python scripts/run_all_tests.py; the root suite checks cross-project examples. The portfolio is maintained as one repository so its shared validation and cross-project contracts remain reproducible.

See docs/benchmark-protocol.md and docs/run-manifest-template.json before publishing GPU results. CPU-only and fixture results are kept separate from live model measurements.

Suggested Sequence

Run stages 01-02 on CPU; use the GPU host notes in stage 03 before serving a model. Then measure the same model and prompts through two engines, repeat with precision/cache/scheduling variants, and use stages 09-11 to assess SLOs and operational failure modes. Stage 12 is the capstone deployment and report template, not a claimed completed GPU deployment.

About

Twelve-stage inference systems engineering portfolio with reproducible experiments, production serving patterns, and honest benchmark evidence.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages