
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
ccb3d31
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.4.1+cu124", | |
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", | |
"task": "text-generation", | |
"library": "transformers", | |
"model_type": "gpt2", | |
"model": "openai-community/gpt2", | |
"processor": "openai-community/gpt2", | |
"device": "cuda", | |
"device_ids": "0", | |
"seed": 42, | |
"inter_op_num_threads": null, | |
"intra_op_num_threads": null, | |
"model_kwargs": {}, | |
"processor_kwargs": {}, | |
"no_weights": true, | |
"device_map": null, | |
"torch_dtype": null, | |
"eval_mode": true, | |
"to_bettertransformer": false, | |
"low_cpu_mem_usage": null, | |
"attn_implementation": null, | |
"cache_implementation": null, | |
"autocast_enabled": false, | |
"autocast_dtype": null, | |
"torch_compile": false, | |
"torch_compile_target": "forward", | |
"torch_compile_config": {}, | |
"quantization_scheme": null, | |
"quantization_config": {}, | |
"deepspeed_inference": false, | |
"deepspeed_inference_config": {}, | |
"peft_type": null, | |
"peft_config": {} | |
}, | |
"scenario": { | |
"name": "inference", | |
"_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario", | |
"iterations": 1, | |
"duration": 1, | |
"warmup_runs": 1, | |
"input_shapes": { | |
"batch_size": 1, | |
"num_choices": 2, | |
"sequence_length": 2 | |
}, | |
"new_tokens": null, | |
"memory": true, | |
"latency": true, | |
"energy": true, | |
"forward_kwargs": {}, | |
"generate_kwargs": { | |
"max_new_tokens": 2, | |
"min_new_tokens": 2 | |
}, | |
"call_kwargs": { | |
"num_inference_steps": 2 | |
} | |
}, | |
"launcher": { | |
"name": "process", | |
"_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher", | |
"device_isolation": true, | |
"device_isolation_action": "error", | |
"numactl": false, | |
"numactl_kwargs": {}, | |
"start_method": "spawn" | |
}, | |
"environment": { | |
"cpu": " AMD EPYC 7R32", | |
"cpu_count": 16, | |
"cpu_ram_mb": 66697.261056, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.10.224-212.876.amzn2.x86_64-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.12", | |
"gpu": [ | |
"NVIDIA A10G" | |
], | |
"gpu_count": 1, | |
"gpu_vram_mb": 24146608128, | |
"optimum_benchmark_version": "0.4.0", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.44.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.34.2", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.3", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.9", | |
"timm_commit": null, | |
"peft_version": "0.12.0", | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 800.72704, | |
"max_global_vram": 1362.624512, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 7.98936279296875, | |
"mean": 7.98936279296875, | |
"stdev": 0.0, | |
"p50": 7.98936279296875, | |
"p90": 7.98936279296875, | |
"p95": 7.98936279296875, | |
"p99": 7.98936279296875, | |
"values": [ | |
7.98936279296875 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 2.455641311112484e-06, | |
"ram": 1.308671754097965e-06, | |
"gpu": 3.1183358280006956e-06, | |
"total": 6.882648893211144e-06 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1206.124544, | |
"max_global_vram": 1373.110272, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.210304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 70, | |
"total": 0.48740579175949095, | |
"mean": 0.006962939882278442, | |
"stdev": 0.0003646981970803463, | |
"p50": 0.0070042238235473635, | |
"p90": 0.007423577499389648, | |
"p95": 0.007522900676727295, | |
"p99": 0.00775507269859314, | |
"values": [ | |
0.007866399765014648, | |
0.007299456119537353, | |
0.007085055828094483, | |
0.0070050878524780275, | |
0.007506303787231446, | |
0.007309919834136963, | |
0.007291007995605469, | |
0.007338272094726562, | |
0.007111008167266846, | |
0.00705676794052124, | |
0.007010655879974365, | |
0.007550655841827392, | |
0.007454304218292236, | |
0.007080992221832275, | |
0.007014592170715332, | |
0.007705056190490723, | |
0.00720688009262085, | |
0.0073200960159301755, | |
0.007331424236297608, | |
0.007422751903533935, | |
0.00716812801361084, | |
0.0071346240043640135, | |
0.0071588802337646485, | |
0.006939775943756103, | |
0.007107295989990234, | |
0.007317088127136231, | |
0.007431007862091064, | |
0.006926527976989746, | |
0.006886240005493164, | |
0.007147039890289307, | |
0.006919360160827637, | |
0.006955359935760498, | |
0.006953440189361572, | |
0.007063871860504151, | |
0.007195871829986572, | |
0.007141280174255371, | |
0.006950367927551269, | |
0.007067296028137207, | |
0.006919328212738037, | |
0.006924960136413574, | |
0.006753183841705322, | |
0.006953887939453125, | |
0.006588575839996338, | |
0.007014495849609375, | |
0.0071006398200988766, | |
0.007098720073699951, | |
0.007536479949951172, | |
0.0070009598731994626, | |
0.00693936014175415, | |
0.0069918398857116695, | |
0.0070033597946166995, | |
0.006858719825744629, | |
0.006716127872467041, | |
0.006666687965393067, | |
0.006682464122772217, | |
0.006454751968383789, | |
0.0064028801918029786, | |
0.006422143936157226, | |
0.006453728199005127, | |
0.006427135944366455, | |
0.006421855926513672, | |
0.006469056129455566, | |
0.006435872077941895, | |
0.006540192127227783, | |
0.0064627199172973635, | |
0.006368800163269043, | |
0.006308703899383545, | |
0.00634716796875, | |
0.0063703680038452145, | |
0.006340479850769043 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 287.23499467376587 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 8.229871442903089e-08, | |
"ram": 4.4970763415378115e-08, | |
"gpu": 1.518037479861157e-07, | |
"total": 2.7907322583052467e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7166577.854425054 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1224.740864, | |
"max_global_vram": 1373.110272, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.434048 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 70, | |
"total": 0.5109168000221254, | |
"mean": 0.007298811428887503, | |
"stdev": 0.0003811979979247124, | |
"p50": 0.0073682239055633545, | |
"p90": 0.007767455863952637, | |
"p95": 0.007832051134109497, | |
"p99": 0.007935261693000795, | |
"values": [ | |
0.007717855930328369, | |
0.007602911949157715, | |
0.007377823829650879, | |
0.007382400035858154, | |
0.007815104007720947, | |
0.007679103851318359, | |
0.0077099518775939945, | |
0.007835968017578125, | |
0.007588031768798828, | |
0.0073125758171081546, | |
0.007453184127807617, | |
0.007827263832092285, | |
0.007884352207183839, | |
0.007387551784515381, | |
0.007402368068695068, | |
0.007768896102905274, | |
0.0076427521705627445, | |
0.007735136032104492, | |
0.007716320037841797, | |
0.007353568077087402, | |
0.007460896015167236, | |
0.007610879898071289, | |
0.007342336177825928, | |
0.007333471775054932, | |
0.007841087818145753, | |
0.007767295837402344, | |
0.007732992172241211, | |
0.0073281598091125486, | |
0.007357759952545166, | |
0.007262976169586182, | |
0.007277088165283203, | |
0.007352511882781982, | |
0.007375232219696045, | |
0.007473184108734131, | |
0.0075959677696228025, | |
0.0074802241325378415, | |
0.007369279861450195, | |
0.007231359958648682, | |
0.007516032218933106, | |
0.007412384033203125, | |
0.007012224197387696, | |
0.007059296131134033, | |
0.0067638401985168455, | |
0.007367167949676514, | |
0.0073985280990600585, | |
0.007674784183502197, | |
0.0074963197708129885, | |
0.007445119857788086, | |
0.007310527801513672, | |
0.008048576354980469, | |
0.007069183826446533, | |
0.007017312049865723, | |
0.0069753918647766115, | |
0.0070160961151123045, | |
0.006963071823120118, | |
0.006766496181488037, | |
0.006742591857910156, | |
0.006715551853179931, | |
0.006719552040100098, | |
0.006759200096130371, | |
0.006867392063140869, | |
0.006734975814819336, | |
0.00684662389755249, | |
0.006759615898132324, | |
0.006716671943664551, | |
0.006686816215515137, | |
0.006683616161346435, | |
0.006682432174682617, | |
0.006648608207702637, | |
0.006654975891113281 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 137.00860883213988 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.397872572992789e-08, | |
"ram": 4.0425359883970835e-08, | |
"gpu": 1.3893844367176382e-07, | |
"total": 2.533425292856626e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3947225.1375229047 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 70, | |
"total": 0.47690752077102655, | |
"mean": 0.006812964582443239, | |
"stdev": 0.0003283248910815717, | |
"p50": 0.0068490240573883055, | |
"p90": 0.007226163339614868, | |
"p95": 0.007293542361259461, | |
"p99": 0.007382476353645325, | |
"values": [ | |
0.007129087924957276, | |
0.007081984043121338, | |
0.006862815856933594, | |
0.006851583957672119, | |
0.007286784172058106, | |
0.007173088073730469, | |
0.007177216053009033, | |
0.007299071788787842, | |
0.007057407855987549, | |
0.006806528091430664, | |
0.00690176010131836, | |
0.007284736156463623, | |
0.0073431038856506346, | |
0.006859776020050049, | |
0.006873087882995605, | |
0.007233535766601563, | |
0.007124991893768311, | |
0.007204864025115967, | |
0.007170048236846924, | |
0.006843423843383789, | |
0.006937600135803222, | |
0.007058432102203369, | |
0.0068351998329162595, | |
0.0068074560165405276, | |
0.0073062400817871095, | |
0.007215104103088379, | |
0.007225344181060791, | |
0.006789120197296142, | |
0.0068249602317810056, | |
0.006776832103729248, | |
0.00676966381072998, | |
0.006843391895294189, | |
0.006802432060241699, | |
0.006938623905181885, | |
0.007066624164581299, | |
0.006933504104614257, | |
0.006851583957672119, | |
0.006747136116027832, | |
0.006993919849395752, | |
0.006846464157104492, | |
0.006520832061767578, | |
0.0066344962120056155, | |
0.006355967998504639, | |
0.00688640022277832, | |
0.006945792198181152, | |
0.00714035177230835, | |
0.0070256638526916505, | |
0.006960159778594971, | |
0.0068659520149230956, | |
0.007470111846923828, | |
0.006644800186157227, | |
0.006614016056060791, | |
0.006568960189819336, | |
0.006612991809844971, | |
0.006559743881225586, | |
0.006333439826965332, | |
0.0063508481979370115, | |
0.006325247764587402, | |
0.006316031932830811, | |
0.006366208076477051, | |
0.0064737281799316405, | |
0.006336448192596436, | |
0.006423552036285401, | |
0.006360064029693604, | |
0.006315008163452148, | |
0.0062566399574279785, | |
0.006295551776885986, | |
0.006294528007507324, | |
0.006253600120544434, | |
0.00626585578918457 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 146.77898114676296 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |