-
Notifications
You must be signed in to change notification settings - Fork 650
Expand file tree
/
Copy pathhardware.ts
More file actions
429 lines (423 loc) · 8.4 KB
/
hardware.ts
File metadata and controls
429 lines (423 loc) · 8.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
import { NVIDIA_SKUS } from "./hardware-nvidia.js";
/**
* Biden AI Executive Order (since revoked by President Trump):
* https://web.archive.org/web/20250105222429/https://www.whitehouse.gov/briefing-room/presidential-actions/2023/10/30/executive-order-on-the-safe-secure-and-trustworthy-development-and-use-of-artificial-intelligence/
*/
export const TFLOPS_THRESHOLD_WHITE_HOUSE_MODEL_TRAINING_TOTAL = 10 ** 14;
export const TFLOPS_THRESHOLD_WHITE_HOUSE_MODEL_TRAINING_TOTAL_BIOLOGY = 10 ** 11;
export const TFLOPS_THRESHOLD_WHITE_HOUSE_CLUSTER = 10 ** 8;
/**
* EU AI Act
* https://ec.europa.eu/commission/presscorner/detail/en/qanda_21_1683
*/
export const TFLOPS_THRESHOLD_EU_AI_ACT_MODEL_TRAINING_TOTAL = 10 ** 13;
export interface HardwareSpec {
/**
* Approximate value, in FP16 whenever possible for GPUs and FP32 for CPUs.
* This is only approximate/theoretical and shouldn't be taken too seriously.
* Currently the CPU values are from cpu-monkey.com
* while the GPU values are from techpowerup.com
*
* Note to reviewers: I got fed up with data entry,
* and HuggingChat running Llama3 with Web search was failing a bit,
* so some of those values might be slightly inaccurate. Forgive me and please feel free to improve.
*/
tflops: number;
/**
* If an array is specified, options of memory size (can be VRAM, unified RAM)
* e.g. an A100 exists in 40 or 80 GB.
*/
memory?: number[];
}
export const DEFAULT_MEMORY_OPTIONS = [
8, 16, 24, 32, 40, 48, 64, 80, 96, 128, 192, 256, 384, 512, 768, 1024, 1536, 2048,
];
export const SKUS = {
GPU: {
NVIDIA: NVIDIA_SKUS,
AMD: {
MI300: {
tflops: 383.0,
memory: [192],
},
MI250: {
tflops: 362.1,
memory: [128],
},
MI210: {
tflops: 181.0,
memory: [64],
},
MI100: {
tflops: 184.6,
memory: [32],
},
MI60: {
tflops: 29.5,
memory: [32],
},
MI50: {
tflops: 26.5,
memory: [16, 32],
},
"R9700 PRO": {
tflops: 95.7,
memory: [32],
},
"RX 9070 XT": {
tflops: 97.32,
memory: [16],
},
"RX 9070": {
tflops: 72.25,
memory: [16],
},
"RX 7900 XTX": {
tflops: 122.8,
memory: [24],
},
"RX 7900 XT": {
tflops: 103.0,
memory: [20],
},
"RX 7900 GRE": {
tflops: 91.96,
memory: [16],
},
"RX 7800 XT": {
tflops: 74.65,
memory: [16],
},
"RX 7700 XT": {
tflops: 70.34,
memory: [12],
},
"RX 7600 XT": {
tflops: 45.14,
memory: [16, 8],
},
"RX 6950 XT": {
tflops: 47.31,
memory: [16],
},
"RX 6800": {
tflops: 32.33,
memory: [16],
},
"RX 6700 XT": {
tflops: 26.43,
memory: [12],
},
"RX 6700": {
tflops: 22.58,
memory: [10],
},
"RX 6650 XT": {
tflops: 21.59,
memory: [8],
},
"RX 6600 XT": {
tflops: 21.21,
memory: [8],
},
"RX 6600": {
tflops: 17.86,
memory: [8],
},
"RX 5500 XT": {
tflops: 10.39,
memory: [4, 8],
},
"Radeon Pro VII": {
tflops: 26.11,
memory: [16, 32],
},
"Ryzen AI Max+ 395": {
tflops: 59.4,
memory: [64, 96, 128],
},
},
INTEL: {
"Arc A750": {
tflops: 34.41,
memory: [8],
},
"Arc A770": {
tflops: 39.32,
memory: [8, 16],
},
"Arc B570": {
tflops: 23.04,
memory: [10],
},
"Arc B580": {
tflops: 27.34,
memory: [12],
},
"Arc B50": {
tflops: 21.3,
memory: [16],
},
"Arc B60": {
tflops: 24.58,
memory: [24, 48],
},
},
QUALCOMM: {
"Snapdragon X Elite X1E-00-1DE": {
tflops: 4.6,
},
"Snapdragon X Elite X1E-84-100": {
tflops: 4.6,
},
"Snapdragon X Elite X1E-80-100": {
tflops: 3.8,
},
"Snapdragon X Elite X1E-78-100": {
tflops: 3.8,
},
"Snapdragon X Plus X1P-64-100": {
tflops: 3.8,
},
},
},
CPU: {
Intel: {
"Xeon 4th Generation (Sapphire Rapids)": {
tflops: 1.3,
},
"Xeon 3th Generation (Ice Lake)": {
tflops: 0.8,
},
"Xeon 2th Generation (Cascade Lake)": {
tflops: 0.55,
},
"Xeon E5v4 (Broadwell)": {
tflops: 0.25,
},
"Xeon E5v3 (Haswell)": {
tflops: 0.2,
},
"Xeon E5v2 (Ivy Bridge)": {
tflops: 0.15,
},
"Intel Core Ultra 7 265KF": {
tflops: 1.53,
},
"Intel Core 14th Generation (i7)": {
tflops: 0.8,
},
"Intel Core 13th Generation (i9)": {
tflops: 0.85,
},
"Intel Core 13th Generation (i7)": {
tflops: 0.82,
},
"Intel Core 13th Generation (i5)": {
tflops: 0.68,
},
"Intel Core 13th Generation (i3)": {
tflops: 0.57,
},
"Intel Core 12th Generation (i9)": {
tflops: 0.79,
},
"Intel Core 12th Generation (i7)": {
tflops: 0.77,
},
"Intel Core 12th Generation (i5)": {
tflops: 0.65,
},
"Intel Core 12th Generation (i3)": {
tflops: 0.53,
},
"Intel Core 11th Generation (i9)": {
tflops: 0.7,
},
"Intel Core 11th Generation (i7)": {
tflops: 0.6,
},
"Intel Core 11th Generation (i5)": {
tflops: 0.5,
},
"Intel Core 11th Generation (i3)": {
tflops: 0.35,
},
"Intel Core 10th Generation (i9)": {
tflops: 0.46,
},
"Intel Core 10th Generation (i7)": {
tflops: 0.46,
},
"Intel Core 10th Generation (i5)": {
tflops: 0.46,
},
"Intel Core 10th Generation (i3)": {
tflops: 0.44,
},
},
AMD: {
"EPYC 5th Generation Zen 5 (Turin)": {
tflops: 13.8,
},
"EPYC 4th Generation Zen 4 (Genoa)": {
tflops: 5,
},
"EPYC 3th Generation Zen 3 (Milan)": {
tflops: 2.4,
},
"EPYC 2th Generation Zen 2 (Rome)": {
tflops: 0.6,
},
"EPYC 1st Generation Zen (Naples)": {
tflops: 0.6,
},
"Ryzen Threadripper Zen 5 9000 (Shimada Peak)": {
tflops: 14.0,
},
"Ryzen Threadripper Zen 4 7000 (Storm Peak)": {
tflops: 10.0,
},
"Ryzen Threadripper Zen 3 5000 (Chagall)": {
tflops: 4.6,
},
"Ryzen Threadripper Zen 2 3000 (Castle Peak)": {
tflops: 3.2,
},
"Ryzen Threadripper Zen 1000 (Whitehaven)": {
tflops: 0.6,
},
"Ryzen 7 3800X (16)": {
tflops: 1.73,
},
"Ryzen Zen 5 9000 (Ryzen 9)": {
tflops: 0.56,
},
"Ryzen Zen 5 9000 (Ryzen 7)": {
tflops: 0.56,
},
"Ryzen Zen 5 9000 (Ryzen 5)": {
tflops: 0.56,
},
"Ryzen Zen 4 7000 (Ryzen 9)": {
tflops: 0.56,
},
"Ryzen Zen 4 7000 (Ryzen 7)": {
tflops: 0.56,
},
"Ryzen Zen 4 7000 (Ryzen 5)": {
tflops: 0.56,
},
"Ryzen Zen 3 5000 (Ryzen 9)": {
tflops: 1.33,
},
"Ryzen Zen 3 5000 (Ryzen 7)": {
tflops: 1.33,
},
"Ryzen Zen 3 5000 (Ryzen 5)": {
tflops: 0.72,
},
"Ryzen Zen 2 3000 (Ryzen 9)": {
tflops: 0.72,
},
"Ryzen Zen 2 3000 (Ryzen 7)": {
tflops: 0.72,
},
"Ryzen Zen 2 3000 (Ryzen 5)": {
tflops: 0.72,
},
"Ryzen Zen 2 3000 (Ryzen 3)": {
tflops: 0.72,
},
"Ryzen AI 300 (Ryzen AI 9 HX)": {
tflops: 5.52,
},
"Ryzen AI 300 (Ryzen AI 9)": {
tflops: 5.2,
},
"Ryzen AI 300 (Ryzen AI 7)": {
tflops: 4.34,
},
"Ryzen AI 300 (Ryzen AI 5)": {
tflops: 1.57,
},
},
},
"Apple Silicon": {
"-": {
"Apple M1": {
tflops: 2.6,
memory: [8, 16],
},
"Apple M1 Pro": {
tflops: 5.2,
memory: [16, 24, 32],
},
"Apple M1 Max": {
tflops: 10.4,
memory: [16, 24, 32, 64],
},
"Apple M1 Ultra": {
tflops: 21,
memory: [16, 24, 32, 64, 96, 128],
},
"Apple M2": {
tflops: 3.6,
memory: [8, 16, 24],
},
"Apple M2 Pro": {
tflops: 6.8,
memory: [16, 24, 32],
},
"Apple M2 Max": {
tflops: 13.49,
memory: [32, 64, 96],
},
"Apple M2 Ultra": {
tflops: 27.2,
memory: [64, 96, 128, 192],
},
"Apple M3": {
tflops: 4.1,
memory: [8, 16, 24],
},
"Apple M3 Pro": {
tflops: 7.4,
memory: [18, 36],
},
"Apple M3 Max": {
tflops: 14.2,
memory: [36, 48, 64, 96, 128],
},
"Apple M3 Ultra": {
tflops: 28.4,
memory: [96, 256, 512],
},
"Apple M4": {
tflops: 4.6,
memory: [16, 24, 32],
},
"Apple M4 Pro": {
tflops: 9.2,
memory: [24, 48, 64],
},
"Apple M4 Max": {
tflops: 18.4,
memory: [36, 48, 64, 96, 128, 256, 512],
},
"Apple M5": {
tflops: 5.7,
memory: [16, 24, 32],
},
"Apple M5 Pro": {
tflops: 11.4,
memory: [24, 36, 48, 64],
},
"Apple M5 Max": {
tflops: 22.8,
memory: [36, 48, 64, 128],
},
},
},
} satisfies Record<string, Record<string, Record<string, HardwareSpec>>>;
export type SkuType = keyof typeof SKUS;