-
Notifications
You must be signed in to change notification settings - Fork 544
Hardware inventory #661
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Hardware inventory #661
Changes from 3 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
1cf9355
Create hardware.ts
julien-c caa8690
different formatting than moon, i guess
julien-c 1cebf7b
export from package
julien-c eff64a6
add a few more CPU RAM options
julien-c 3c81dd9
Fixes from @pcuenca
julien-c 78e6da7
FP32 => FP16 + i love data entry
julien-c 2a15285
Apply suggestions from @apolinario
julien-c f65717a
Merge branch 'main' into hardware-inventory
julien-c File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,305 @@ | ||
| /** | ||
| * Biden AI Executive Order | ||
| * 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 FP32. | ||
| * 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 are kinda random. 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]; | ||
julien-c marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| export const SKUS = { | ||
| GPU: { | ||
| NVIDIA: { | ||
| H100: { | ||
| tflops: 51.22, | ||
| memory: [80], | ||
| }, | ||
| L40: { | ||
| tflops: 90.52, | ||
| memory: [24], | ||
julien-c marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| }, | ||
| A100: { | ||
julien-c marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| tflops: 19.49, | ||
julien-c marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| memory: [80, 40], | ||
| }, | ||
| A40: { | ||
| tflops: 37.42, | ||
| memory: [48], | ||
| }, | ||
| A10: { | ||
| tflops: 31.24, | ||
| memory: [24], | ||
| }, | ||
| T4: { | ||
| tflops: 8.141, | ||
| memory: [16], | ||
| }, | ||
| "RTX 4090": { | ||
| tflops: 8.58, | ||
| memory: [24, 16], | ||
julien-c marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| }, | ||
| "RTX 4080 SUPER": { | ||
| tflops: 8.58, | ||
julien-c marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| memory: [16], | ||
| }, | ||
| "RTX 4080": { | ||
| tflops: 8.58, | ||
| memory: [12], | ||
julien-c marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| }, | ||
| "RTX 4070": { | ||
| tflops: 8.58, | ||
| memory: [12, 8], | ||
| }, | ||
julien-c marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "RTX 4070 Ti": { | ||
| tflops: 8.58, | ||
julien-c marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| memory: [12], | ||
| }, | ||
| "RTX 4070 Super": { | ||
| tflops: 8.58, | ||
julien-c marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| memory: [12], | ||
| }, | ||
| "RTX 4070 Ti Super": { | ||
| tflops: 7.57, | ||
julien-c marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| memory: [16], | ||
| }, | ||
| "RTX 3090": { | ||
| tflops: 7.57, | ||
julien-c marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| memory: [24], | ||
| }, | ||
| "RTX 3090 Ti": { | ||
| tflops: 7.57, | ||
julien-c marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| memory: [24], | ||
| }, | ||
| "RTX 3080 Ti": { | ||
| tflops: 7.57, | ||
| memory: [24, 16], | ||
julien-c marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| }, | ||
| "RTX 3080": { | ||
julien-c marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| tflops: 7.57, | ||
| memory: [24, 16, 8], | ||
julien-c marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| }, | ||
| }, | ||
| AMD: { | ||
| MI300: { | ||
| tflops: 47.87, | ||
| memory: [192], | ||
| }, | ||
| MI250: { | ||
| tflops: 45.26, | ||
| memory: [128], | ||
| }, | ||
| MI210: { | ||
| tflops: 22.63, | ||
| memory: [64], | ||
| }, | ||
| "RX 7900 XTX": { | ||
| tflops: 61.39, | ||
| memory: [24], | ||
| }, | ||
| "RX 7900 XT": { | ||
| tflops: 51.48, | ||
| memory: [20], | ||
| }, | ||
| "RX 7900 GRE": { | ||
| tflops: 45.98, | ||
| memory: [16], | ||
| }, | ||
| "RX 7800 XT": { | ||
| tflops: 7.57, | ||
| memory: [16], | ||
| }, | ||
| "RX 7700 XT": { | ||
| tflops: 7.57, | ||
| memory: [12], | ||
| }, | ||
| "RX 7600 XT": { | ||
| tflops: 7.57, | ||
| memory: [16, 8], | ||
| }, | ||
| }, | ||
| }, | ||
| CPU: { | ||
| Intel: { | ||
| "Xeon 4th Generation (Sapphire Rapids)": { | ||
| tflops: 3.8, | ||
julien-c marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| }, | ||
| "Xeon 3th Generation (Ice Lake)": { | ||
| tflops: 3.6, | ||
julien-c marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| }, | ||
| "Xeon 2th Generation (Cascade Lake)": { | ||
| tflops: 3, | ||
julien-c marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| }, | ||
| "Intel Core 13th Generation (i9)": { | ||
| tflops: 3.8, | ||
julien-c marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| }, | ||
| "Intel Core 13th Generation (i7)": { | ||
| tflops: 3.6, | ||
julien-c marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| }, | ||
| "Intel Core 13th Generation (i5)": { | ||
| tflops: 3, | ||
julien-c marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| }, | ||
| "Intel Core 13th Generation (i3)": { | ||
| tflops: 2, | ||
julien-c marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| }, | ||
| "Intel Core 12th Generation (i9)": { | ||
| tflops: 2, | ||
julien-c marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| }, | ||
| "Intel Core 12th Generation (i7)": { | ||
| tflops: 2, | ||
julien-c marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| }, | ||
| "Intel Core 12th Generation (i5)": { | ||
| tflops: 2, | ||
julien-c marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| }, | ||
| "Intel Core 12th Generation (i3)": { | ||
| tflops: 1, | ||
julien-c marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| }, | ||
| "Intel Core 11th Generation (i9)": { | ||
| tflops: 1, | ||
julien-c marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| }, | ||
| "Intel Core 11th Generation (i7)": { | ||
| tflops: 0.76, | ||
julien-c marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| }, | ||
| "Intel Core 11th Generation (i5)": { | ||
| tflops: 0.76, | ||
julien-c marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| }, | ||
| "Intel Core 11th Generation (i3)": { | ||
| tflops: 0.76, | ||
julien-c marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| }, | ||
| "Intel Core 10th Generation (i9)": { | ||
| tflops: 0.76, | ||
julien-c marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| }, | ||
| "Intel Core 10th Generation (i7)": { | ||
| tflops: 0.76, | ||
julien-c marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| }, | ||
| "Intel Core 10th Generation (i5)": { | ||
| tflops: 0.76, | ||
julien-c marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| }, | ||
| "Intel Core 10th Generation (i3)": { | ||
| tflops: 0.76, | ||
julien-c marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| }, | ||
| }, | ||
| AMD: { | ||
| "EPYC 4th Generation (Genoa)": { | ||
| tflops: 4, | ||
julien-c marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| }, | ||
| "EPYC 3th Generation (Milan)": { | ||
| tflops: 3, | ||
julien-c marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| }, | ||
| "EPYC 2th Generation (Rome)": { | ||
| tflops: 2.9, | ||
julien-c marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| }, | ||
| "EPYC 1st Generation (Naples)": { | ||
| tflops: 2.3, | ||
julien-c marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| }, | ||
| "Ryzen Zen4 7000 (Ryzen 9)": { | ||
| tflops: 2.3, | ||
julien-c marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| }, | ||
| "Ryzen Zen4 7000 (Ryzen 7)": { | ||
| tflops: 1.33, | ||
julien-c marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| }, | ||
| "Ryzen Zen4 7000 (Ryzen 5)": { | ||
| tflops: 1.33, | ||
julien-c marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| }, | ||
| "Ryzen Zen3 5000 (Ryzen 9)": { | ||
| tflops: 1.33, | ||
| }, | ||
| "Ryzen Zen3 5000 (Ryzen 7)": { | ||
| tflops: 1.33, | ||
| }, | ||
| "Ryzen Zen3 5000 (Ryzen 5)": { | ||
| tflops: 0.72, | ||
| }, | ||
| "Ryzen Zen 2 3000 (Threadripper)": { | ||
| 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, | ||
| }, | ||
| }, | ||
| }, | ||
| "Apple Silicon": { | ||
| "-": { | ||
| "Apple M1": { | ||
| tflops: 2.6, | ||
| memory: [16, 24, 32, 64, 96, 128], | ||
julien-c marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| }, | ||
| "Apple M1 Pro": { | ||
| tflops: 5.2, | ||
| memory: [16, 24, 32, 64, 96, 128], | ||
julien-c marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| }, | ||
| "Apple M1 Max": { | ||
| tflops: 10.4, | ||
| memory: [16, 24, 32, 64, 96, 128], | ||
julien-c marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| }, | ||
| "Apple M1 Ultra": { | ||
| tflops: 21, | ||
| memory: [16, 24, 32, 64, 96, 128], | ||
| }, | ||
| "Apple M2": { | ||
| tflops: 3.6, | ||
| memory: [16, 24, 32, 64, 96, 128], | ||
julien-c marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| }, | ||
| "Apple M2 Pro": { | ||
| tflops: 13.6, | ||
| memory: [16, 24, 32, 64, 96, 128], | ||
julien-c marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| }, | ||
| "Apple M2 Max": { | ||
| tflops: 13.49, | ||
| memory: [16, 24, 32, 64, 96, 128], | ||
julien-c marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| }, | ||
| "Apple M2 Ultra": { | ||
| tflops: 27.2, | ||
| memory: [16, 24, 32, 64, 96, 128], | ||
julien-c marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| }, | ||
| "Apple M3": { | ||
| tflops: 2.84, | ||
| memory: [16, 24, 32, 64, 96, 128], | ||
julien-c marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| }, | ||
| "Apple M3 Pro": { | ||
| tflops: 14, | ||
| memory: [16, 24, 32, 64, 96, 128], | ||
julien-c marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| }, | ||
| "Apple M3 Max": { | ||
| tflops: 14.2, | ||
| memory: [16, 24, 32, 64, 96, 128], | ||
julien-c marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| }, | ||
| }, | ||
| }, | ||
| } satisfies Record<string, Record<string, Record<string, HardwareSpec>>>; | ||
|
|
||
| export type SkuType = keyof typeof SKUS; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.