
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
0137ed0
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.4.0+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.252864, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.10.223-212.873.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.33.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.2", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.9", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 791.216128, | |
"max_global_vram": 1355.28448, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 7.43414990234375, | |
"mean": 7.43414990234375, | |
"stdev": 0.0, | |
"p50": 7.43414990234375, | |
"p90": 7.43414990234375, | |
"p95": 7.43414990234375, | |
"p99": 7.43414990234375, | |
"values": [ | |
7.43414990234375 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.91937663194046e-07, | |
"ram": 5.279014075337472e-07, | |
"gpu": 1.6486124299998697e-06, | |
"total": 3.1684515007276628e-06 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1206.079488, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.210304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 70, | |
"total": 0.4877619524002074, | |
"mean": 0.006968027891431536, | |
"stdev": 0.000354291044972093, | |
"p50": 0.006954368114471436, | |
"p90": 0.007479571342468262, | |
"p95": 0.00754891505241394, | |
"p99": 0.007680644311904908, | |
"values": [ | |
0.0078063678741455075, | |
0.007538847923278809, | |
0.00741164779663086, | |
0.006999904155731201, | |
0.007256351947784424, | |
0.00717193603515625, | |
0.007011903762817383, | |
0.00707155179977417, | |
0.0075194559097290035, | |
0.007296800136566162, | |
0.007067359924316406, | |
0.007093376159667969, | |
0.00725216007232666, | |
0.00747814416885376, | |
0.007076511859893799, | |
0.006963776111602783, | |
0.00692742395401001, | |
0.006937888145446778, | |
0.00690396785736084, | |
0.007186592102050781, | |
0.0075649600028991695, | |
0.007365568161010742, | |
0.0076241598129272465, | |
0.007557151794433593, | |
0.00741318416595459, | |
0.00689846420288086, | |
0.006959136009216309, | |
0.00749241590499878, | |
0.007024256229400635, | |
0.006861343860626221, | |
0.006936736106872558, | |
0.00702950382232666, | |
0.007132256031036377, | |
0.007223296165466309, | |
0.007014463901519776, | |
0.0069762558937072755, | |
0.007203807830810547, | |
0.006884479999542236, | |
0.006731904029846191, | |
0.006797855854034424, | |
0.006471456050872803, | |
0.006939040184020996, | |
0.007273952007293701, | |
0.007350304126739502, | |
0.007282368183135986, | |
0.006929247856140137, | |
0.006949600219726563, | |
0.006886911869049072, | |
0.006781504154205322, | |
0.006409791946411133, | |
0.006302559852600097, | |
0.006380320072174072, | |
0.006415808200836181, | |
0.00630953598022461, | |
0.006612607955932617, | |
0.006803872108459473, | |
0.006704544067382813, | |
0.006721727848052979, | |
0.0066739521026611326, | |
0.006708352088928222, | |
0.006586080074310303, | |
0.006726367950439453, | |
0.006447199821472168, | |
0.0070722241401672365, | |
0.006435840129852295, | |
0.006323232173919678, | |
0.006711359977722168, | |
0.006470687866210937, | |
0.006777599811553955, | |
0.006640736103057861 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 287.02525752793923 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.828141880025652e-08, | |
"ram": 4.280023060154963e-08, | |
"gpu": 1.5466934888157938e-07, | |
"total": 2.757509982833855e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7252920.252149468 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1225.027584, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.434048 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 70, | |
"total": 0.5136302404403686, | |
"mean": 0.0073375748634338395, | |
"stdev": 0.0003633100153642234, | |
"p50": 0.007302511930465699, | |
"p90": 0.00781523518562317, | |
"p95": 0.007908231949806215, | |
"p99": 0.008087062320709229, | |
"values": [ | |
0.007952256202697754, | |
0.008037759780883788, | |
0.0077331199645996095, | |
0.007511295795440674, | |
0.0076910400390625, | |
0.007728064060211181, | |
0.007361152172088623, | |
0.007667679786682129, | |
0.007879263877868652, | |
0.007803423881530762, | |
0.007428927898406983, | |
0.0074860482215881345, | |
0.007808640003204346, | |
0.007763552188873291, | |
0.00731657600402832, | |
0.0073036479949951175, | |
0.00740227222442627, | |
0.007330368041992188, | |
0.0073911681175231935, | |
0.00788649606704712, | |
0.007926015853881837, | |
0.008196800231933594, | |
0.007874591827392578, | |
0.007750783920288086, | |
0.007712607860565186, | |
0.007408160209655762, | |
0.0074019842147827145, | |
0.0072995200157165525, | |
0.0072646718025207516, | |
0.007241792201995849, | |
0.007270368099212646, | |
0.007506688117980957, | |
0.007335455894470215, | |
0.007493855953216552, | |
0.007777215957641602, | |
0.007220672130584717, | |
0.00731609582901001, | |
0.007079232215881348, | |
0.007301375865936279, | |
0.006801727771759033, | |
0.006650656223297119, | |
0.00755731201171875, | |
0.007582623958587647, | |
0.007725279808044433, | |
0.007228223800659179, | |
0.007208640098571777, | |
0.007182176113128662, | |
0.007238783836364746, | |
0.00706931209564209, | |
0.006755936145782471, | |
0.006626815795898438, | |
0.0066312642097473146, | |
0.006763967990875244, | |
0.006819392204284668, | |
0.007203360080718994, | |
0.007101439952850342, | |
0.007074592113494873, | |
0.007055776119232178, | |
0.007091263771057129, | |
0.007094751834869384, | |
0.007201727867126465, | |
0.007076191902160645, | |
0.0070044159889221195, | |
0.007137663841247558, | |
0.006772704124450683, | |
0.0070314879417419434, | |
0.006924384117126465, | |
0.007056320190429687, | |
0.00701577615737915, | |
0.007085631847381592 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 136.28481052825944 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.327388635094159e-08, | |
"ram": 3.9855491280703797e-08, | |
"gpu": 1.4055943863740757e-07, | |
"total": 2.5368881626905306e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3941837.1479940866 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 70, | |
"total": 0.47974063968658437, | |
"mean": 0.006853437709808349, | |
"stdev": 0.00030874592503193525, | |
"p50": 0.006809567928314209, | |
"p90": 0.007269376182556153, | |
"p95": 0.0073761359691619875, | |
"p99": 0.0075038719177246095, | |
"values": [ | |
0.007401472091674805, | |
0.0075038719177246095, | |
0.007175168037414551, | |
0.006994944095611572, | |
0.007185408115386963, | |
0.0071792640686035155, | |
0.00682700777053833, | |
0.007134208202362061, | |
0.007350175857543945, | |
0.007261184215545655, | |
0.006904831886291504, | |
0.006949888229370117, | |
0.007250944137573242, | |
0.007200767993927002, | |
0.00682700777053833, | |
0.006765567779541016, | |
0.006884352207183838, | |
0.006817791938781738, | |
0.006862847805023193, | |
0.007346176147460938, | |
0.00739737606048584, | |
0.0075038719177246095, | |
0.0073431038856506346, | |
0.007203839778900147, | |
0.007156735897064209, | |
0.006882304191589355, | |
0.006854656219482422, | |
0.006800384044647217, | |
0.006748159885406494, | |
0.006706175804138184, | |
0.006766592025756836, | |
0.0069621758460998535, | |
0.006819839954376221, | |
0.006958079814910889, | |
0.0072468481063842774, | |
0.0066979842185974124, | |
0.006831103801727295, | |
0.006643712043762207, | |
0.006778880119323731, | |
0.006400000095367431, | |
0.006248447895050049, | |
0.007064576148986816, | |
0.007070687770843506, | |
0.00717526388168335, | |
0.006801343917846679, | |
0.006778880119323731, | |
0.006726528167724609, | |
0.0068351998329162595, | |
0.006625279903411865, | |
0.006369279861450195, | |
0.006240255832672119, | |
0.006244351863861084, | |
0.0063640961647033695, | |
0.006412288188934326, | |
0.006725632190704346, | |
0.00669593620300293, | |
0.006673408031463623, | |
0.0066447358131408694, | |
0.006677504062652588, | |
0.006683648109436035, | |
0.0067717118263244626, | |
0.006639616012573242, | |
0.006595583915710449, | |
0.006702079772949219, | |
0.006385663986206055, | |
0.006633471965789795, | |
0.006505472183227539, | |
0.006635519981384277, | |
0.006616064071655273, | |
0.006673408031463623 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 145.91217464030387 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |