← Back to directory

Rough tokens per second for a model on a GPU: memory-bound decode, compute-bound...

https://denk.halowerk.com/v1/throughput-estimate

Overview

Rough tokens per second for a model on a GPU: memory-bound decode, compute-bound prefill, time to first token and batch throughput, from datasheet bandwidth and TFLOPS with stated efficiencies.

Protocol x402 (POST)
Price $0.0030
Payment Asset USD Coin
Payment Network eip155:8453
Category uncategorized
Provider denk
Source bazaar
Indexed 2026-11-20 16:11:02

Health

Status unknown
Latency (p50) —
Uptime (30d) —
Reliability Score —
Last Checked Never
Last Healthy Never
Consecutive Failures 0

x402 Payment Validation

Payment Requirements —
Asset Verified —
Facilitator —

Input Schema

{ "body": { "gpu": "rtx-4090", "head_dim": 128, "n_kv_heads": 8, "n_layers": 32, "params_b": 8.03, "quant": "Q4_K_M" }, "bodyType": "json", "method": "POST", "type": "http" }

Output Schema

{ "example": { "limitations": [ "Order-of-magnitude estimate; measured speed depends on engine, kernels, quantization kernels and scheduling.", "Attention FLOPs, communication between GPUs and CPU offload are not modelled.", "Default efficiencies (0.7 memory, 0.5 compute) are assumptions." ], "result": { "assumptions": [ "memory_efficiency 0.7, compute_efficiency 0.5 (assumptions, not measurements).", "KV cache is read in full at the given context length for every step.", "Single device." ], "decode": { "bottleneck": "memory_bandwidth", "bytes_per_step": 5449624912, "compute_time_ms": 0.194, "memory_time_ms": 7.723, "step_ms": 7.723, "tokens_per_second_per_sequence": 129.48, "tokens_per_second_total": 129.5 }, "formulas": { "compute_time": "2 × active_params × batch / (TFLOPS × compute_efficiency)", "decode_step": "max(memory_time, compute_time)", "memory_time": "(active_params × bpw / 8 + batch × kv_bytes(context)) / (bandwidth × memory_efficiency)", "prefill": "TFLOPS × compute_efficiency / (2 × active_params)" }, "gpu": { "bandwidth_gbs": 1008, "fp16_tflops_dense": 165.2, "id": "rtx-4090", "name": "NVIDIA GeForce RTX 4090", "source": "https://images.nvidia.com/aem-dam/Solutions/geforce/ada/nvidia-ada-gpu-architecture.pdf (Appendix A)", "sparsity_halved": false }, "memory_check": { "capacity_gib": 24, "fits": true, "needed_gib": 5.075 }, "model": { "active_parameters": 8029999999.999999, "bits_per_weight": 4.8944, "kv_bytes_per_sequence": 536870912, "parameters": 8029999999.999999, "quant": "Q4_K_M", "source": "input" }, "prefill": { "note": null, "time_to_first_token_s": 0.194, "tokens_per_second": 5143.2 }, "request": { "output_tokens": 256, "prompt_tokens": 1000, "total_seconds": 2.17 } }, "service": "throughput-estimate", "status": "success" }, "type": "json" }