Agenten commited on
Commit
5a5e33b
·
verified ·
1 Parent(s): a17c723

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +264 -0
README.md ADDED
@@ -0,0 +1,264 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: Inference Capacity Planner
3
+ emoji: ⚡
4
+ colorFrom: purple
5
+ colorTo: yellow
6
+ sdk: static
7
+ app_file: index.html
8
+ pinned: false
9
+ license: mit
10
+ short_description: Plan LLM inference capacity, VRAM, throughput and cost.
11
+ ---
12
+
13
+ # ⚡ Inference Capacity Planner
14
+
15
+ **Plan LLM serving capacity before you deploy.**
16
+
17
+ A lightweight, local-first tool for estimating **model memory, sustainable throughput, required replicas, and serving cost** for LLM inference workloads.
18
+
19
+ Built by the independent Hugging Face organization **Inferencing**.
20
+
21
+ ---
22
+
23
+ ## What it helps you estimate
24
+
25
+ Use the planner to get a quick first-pass view of:
26
+
27
+ - model weight memory
28
+ - approximate runtime memory
29
+ - tokens per request
30
+ - sustainable requests per second
31
+ - required replicas
32
+ - total GPU count
33
+ - approximate generation time
34
+ - daily token volume
35
+ - hourly infrastructure cost
36
+ - daily infrastructure cost
37
+ - monthly infrastructure cost
38
+ - approximate cost per 1M tokens
39
+ - capacity headroom
40
+
41
+ ---
42
+
43
+ ## Configure your workload
44
+
45
+ The Space lets you adjust:
46
+
47
+ ### Model
48
+
49
+ - parameter count
50
+ - weight precision
51
+ - runtime memory multiplier
52
+
53
+ ### Traffic
54
+
55
+ - input tokens per request
56
+ - output tokens per request
57
+ - target requests per second
58
+
59
+ ### Serving performance
60
+
61
+ - aggregate tokens per second
62
+ - target utilization
63
+ - time to first token
64
+
65
+ ### Infrastructure
66
+
67
+ - GPUs per replica
68
+ - GPU price per hour
69
+
70
+ ---
71
+
72
+ ## Quick presets
73
+
74
+ The interface includes starting profiles for:
75
+
76
+ - **~8B models**
77
+ - **~30B models**
78
+ - **~70B models**
79
+
80
+ These presets are intentionally generic.
81
+
82
+ They are not tied to a specific model, GPU, inference engine, or provider.
83
+
84
+ ---
85
+
86
+ ## Local-first
87
+
88
+ > 🔒 **All calculations happen directly in your browser.**
89
+
90
+ The Space does not upload or store:
91
+
92
+ - workload assumptions
93
+ - model settings
94
+ - token volumes
95
+ - infrastructure costs
96
+ - pricing inputs
97
+
98
+ No backend or external API is required.
99
+
100
+ ---
101
+
102
+ ## Core formulas
103
+
104
+ ### Model weight memory
105
+
106
+ ```text
107
+ weight_memory_GB
108
+ =
109
+ parameters_billions × bytes_per_weight
110
+ ```
111
+
112
+ ### Runtime memory estimate
113
+
114
+ ```text
115
+ runtime_memory_GB
116
+ =
117
+ weight_memory_GB × runtime_overhead
118
+ ```
119
+
120
+ ### Sustainable requests per second
121
+
122
+ ```text
123
+ tokens_per_second × utilization
124
+ ────────────────────────────────
125
+ input_tokens + output_tokens
126
+ ```
127
+
128
+ ### Required replicas
129
+
130
+ ```text
131
+ target_requests_per_second
132
+ ──────────────────────────
133
+ sustainable_RPS_per_replica
134
+ ```
135
+
136
+ The result is rounded up.
137
+
138
+ ### Estimated infrastructure cost
139
+
140
+ ```text
141
+ hourly_cost
142
+ =
143
+ replicas × GPUs_per_replica × GPU_hourly_price
144
+ ```
145
+
146
+ ---
147
+
148
+ # Why this Space exists
149
+
150
+ Model quality is only one part of production AI.
151
+
152
+ A useful inference system must also balance:
153
+
154
+ ```text
155
+ QUALITY
156
+ ▲
157
+ │
158
+ │
159
+ └────────────► SPEED
160
+ \
161
+ \
162
+ COST
163
+ ```
164
+
165
+ The largest model is not always the best deployment choice.
166
+
167
+ Inference planning is often about finding the right operating point between:
168
+
169
+ **quality · latency · throughput · memory · reliability · cost**
170
+
171
+ ---
172
+
173
+ ## Useful for
174
+
175
+ This Space can help with:
176
+
177
+ - early architecture discussions
178
+ - deployment planning
179
+ - cost estimation
180
+ - comparing model sizes
181
+ - comparing quantization profiles
182
+ - capacity sanity checks
183
+ - estimating scale requirements
184
+ - teaching inference economics
185
+ - planning benchmarks
186
+ - prototyping
187
+
188
+ ---
189
+
190
+ ## Important limitations
191
+
192
+ This is a **planning calculator**, not a hardware benchmark.
193
+
194
+ Real-world inference performance can vary substantially depending on:
195
+
196
+ - model architecture
197
+ - exact quantization format
198
+ - GPU model
199
+ - inference runtime
200
+ - context length
201
+ - KV cache usage
202
+ - batching
203
+ - concurrency
204
+ - tensor parallelism
205
+ - memory bandwidth
206
+ - speculative decoding
207
+ - CUDA configuration
208
+ - framework overhead
209
+ - prompt distribution
210
+ - output length
211
+
212
+ For production decisions, benchmark your **exact model + runtime + hardware + workload**.
213
+
214
+ ---
215
+
216
+ ## Future directions
217
+
218
+ Possible extensions include:
219
+
220
+ - GPU comparison
221
+ - multi-GPU planning
222
+ - KV-cache estimation
223
+ - concurrency modeling
224
+ - provider cost comparison
225
+ - batch-size simulation
226
+ - quantization comparison
227
+ - latency targets
228
+ - model routing scenarios
229
+ - edge inference profiles
230
+ - downloadable deployment reports
231
+
232
+ ---
233
+
234
+ ## About Inferencing
235
+
236
+ **Inferencing** explores the infrastructure layer that turns AI models into usable systems.
237
+
238
+ Topics include:
239
+
240
+ - model serving
241
+ - latency
242
+ - throughput
243
+ - batching
244
+ - caching
245
+ - quantization
246
+ - routing
247
+ - edge inference
248
+ - serving economics
249
+ - observability
250
+ - deployment efficiency
251
+
252
+ ---
253
+
254
+ ## Independent project
255
+
256
+ **Inferencing is an independent Hugging Face community organization.**
257
+
258
+ It is not an official Hugging Face organization, cloud provider, model provider, benchmark authority, or infrastructure vendor.
259
+
260
+ ---
261
+
262
+ # Inferencing
263
+
264
+ ### **Serve faster. Route smarter. Scale intelligence.**