
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
289da63
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.5.0", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.45.0", | |
"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.13.0", | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 803.135488, | |
"max_global_vram": 1362.624512, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 0.20914483642578124, | |
"mean": 0.20914483642578124, | |
"stdev": 0.0, | |
"p50": 0.20914483642578124, | |
"p90": 0.20914483642578124, | |
"p95": 0.20914483642578124, | |
"p99": 0.20914483642578124, | |
"values": [ | |
0.20914483642578124 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 2.4575954965156497e-06, | |
"ram": 1.3276493463460177e-06, | |
"gpu": 3.6255584559552467e-06, | |
"total": 7.410803298816914e-06 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1211.912192, | |
"max_global_vram": 1373.110272, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.410496 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 74, | |
"total": 0.49782563304901145, | |
"mean": 0.0067273734195812335, | |
"stdev": 0.00028588721644925476, | |
"p50": 0.0066605758666992195, | |
"p90": 0.006968124771118164, | |
"p95": 0.007103387069702148, | |
"p99": 0.007903814845085143, | |
"values": [ | |
0.00783622407913208, | |
0.0075970559120178225, | |
0.0068788161277771, | |
0.006829279899597168, | |
0.006829599857330323, | |
0.006837535858154297, | |
0.006850016117095947, | |
0.006843039989471436, | |
0.0068534078598022465, | |
0.006527135848999024, | |
0.006568160057067871, | |
0.006518367767333984, | |
0.006517312049865723, | |
0.006532288074493408, | |
0.00655017614364624, | |
0.006794623851776123, | |
0.00682470417022705, | |
0.006538527965545654, | |
0.006536608219146729, | |
0.006529088020324707, | |
0.006517536163330078, | |
0.006526112079620361, | |
0.006663519859313965, | |
0.006539616107940674, | |
0.006494048118591308, | |
0.00657366418838501, | |
0.006547200202941895, | |
0.006503744125366211, | |
0.0065285758972167965, | |
0.006512608051300049, | |
0.006785376071929932, | |
0.006795487880706787, | |
0.006777215957641602, | |
0.0067767038345336915, | |
0.006518752098083496, | |
0.00651526403427124, | |
0.0065131840705871585, | |
0.006779967784881592, | |
0.006772287845611572, | |
0.006755904197692871, | |
0.006761343955993653, | |
0.006793920040130615, | |
0.0069703998565673825, | |
0.006869120121002197, | |
0.0071543679237365725, | |
0.00702569580078125, | |
0.006812479972839356, | |
0.006521440029144287, | |
0.006525152206420899, | |
0.006962816238403321, | |
0.006610879898071289, | |
0.006518176078796387, | |
0.007070591926574707, | |
0.008086560249328613, | |
0.0070759358406066895, | |
0.006801919937133789, | |
0.006713535785675049, | |
0.006638304233551025, | |
0.006583487987518311, | |
0.006686624050140381, | |
0.006771615982055664, | |
0.006765215873718262, | |
0.006791776180267334, | |
0.0067916159629821775, | |
0.0065487041473388675, | |
0.006657631874084473, | |
0.006551936149597168, | |
0.006507264137268066, | |
0.006532544136047363, | |
0.006530943870544433, | |
0.006500768184661865, | |
0.006497759819030762, | |
0.00649721622467041, | |
0.006509151935577393 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 297.292847484672 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 8.115988678671249e-08, | |
"ram": 4.435291169706704e-08, | |
"gpu": 1.6126154453455221e-07, | |
"total": 2.8677434301833175e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 6974124.598978341 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1230.528512, | |
"max_global_vram": 1373.110272, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.458112 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 74, | |
"total": 0.5128580479621888, | |
"mean": 0.006930514161651197, | |
"stdev": 0.00034480173995926524, | |
"p50": 0.006909791946411133, | |
"p90": 0.007082777404785157, | |
"p95": 0.007509932923316952, | |
"p99": 0.008350811100006102, | |
"values": [ | |
0.008313183784484863, | |
0.007092127799987793, | |
0.007013631820678711, | |
0.007007328033447266, | |
0.007035999774932861, | |
0.006993887901306152, | |
0.0070111041069030764, | |
0.007012767791748047, | |
0.007165952205657959, | |
0.006713823795318603, | |
0.00668668794631958, | |
0.006700160026550293, | |
0.006752607822418213, | |
0.006688223838806152, | |
0.006787007808685303, | |
0.007032576084136963, | |
0.007017792224884033, | |
0.0066776638031005855, | |
0.00667299222946167, | |
0.00669209623336792, | |
0.006682752132415771, | |
0.006788703918457031, | |
0.0069911999702453615, | |
0.006703008174896241, | |
0.006664576053619385, | |
0.00669708776473999, | |
0.006705120086669922, | |
0.006667488098144532, | |
0.0066703038215637205, | |
0.006976799964904785, | |
0.006954336166381836, | |
0.007020512104034424, | |
0.00697430419921875, | |
0.007053376197814942, | |
0.0068023362159729, | |
0.00666707181930542, | |
0.006821407794952393, | |
0.007015456199645996, | |
0.006937088012695313, | |
0.006956639766693115, | |
0.006947103977203369, | |
0.00702678394317627, | |
0.007060959815979004, | |
0.007299776077270508, | |
0.007900224208831788, | |
0.00703276777267456, | |
0.006980160236358643, | |
0.0068096318244934085, | |
0.007097023963928223, | |
0.0069004158973693846, | |
0.006710303783416748, | |
0.006679391860961914, | |
0.008140352249145508, | |
0.008452544212341309, | |
0.006990560054779053, | |
0.006919167995452881, | |
0.0067571520805358885, | |
0.006723616123199463, | |
0.006701663970947265, | |
0.00696665620803833, | |
0.007010528087615967, | |
0.006965407848358154, | |
0.006950367927551269, | |
0.006924191951751709, | |
0.00670684814453125, | |
0.00668287992477417, | |
0.006691167831420899, | |
0.006692863941192627, | |
0.006676576137542725, | |
0.006684000015258789, | |
0.006668288230895996, | |
0.006673888206481933, | |
0.00681606388092041, | |
0.006801536083221435 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 144.28943894716025 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.435803399271834e-08, | |
"ram": 4.0633576199546115e-08, | |
"gpu": 1.4500132673751755e-07, | |
"total": 2.59992936929782e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3846258.332279529 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 74, | |
"total": 0.48222393560409527, | |
"mean": 0.006516539670325614, | |
"stdev": 0.00030674236722856997, | |
"p50": 0.006458879947662354, | |
"p90": 0.0066458622932434085, | |
"p95": 0.007050188851356503, | |
"p99": 0.007721441230773925, | |
"values": [ | |
0.007704576015472412, | |
0.006680575847625733, | |
0.006606847763061524, | |
0.006601727962493896, | |
0.006624256134033203, | |
0.006589439868927002, | |
0.006593535900115967, | |
0.006606847763061524, | |
0.006751232147216797, | |
0.006322175979614258, | |
0.006293504238128662, | |
0.006310912132263183, | |
0.006363135814666748, | |
0.006299647808074951, | |
0.006397952079772949, | |
0.006622208118438721, | |
0.006610879898071289, | |
0.006289408206939697, | |
0.006277120113372803, | |
0.006301695823669433, | |
0.006295551776885986, | |
0.006392831802368164, | |
0.006584320068359375, | |
0.006307839870452881, | |
0.006266880035400391, | |
0.006301695823669433, | |
0.006316031932830811, | |
0.006273024082183838, | |
0.006252543926239014, | |
0.006573056221008301, | |
0.006550528049468994, | |
0.006609920024871826, | |
0.0065710082054138185, | |
0.006643712043762207, | |
0.006411263942718506, | |
0.006277120113372803, | |
0.00643071985244751, | |
0.006609920024871826, | |
0.006529024124145508, | |
0.006555647850036621, | |
0.0065391998291015625, | |
0.0066119680404663084, | |
0.006646783828735352, | |
0.0068577280044555666, | |
0.007407616138458252, | |
0.006624256134033203, | |
0.006575104236602783, | |
0.0064204797744750975, | |
0.00658022403717041, | |
0.0064849920272827145, | |
0.006310912132263183, | |
0.0062791361808776855, | |
0.0076687359809875484, | |
0.007767039775848389, | |
0.006526976108551025, | |
0.006432767868041992, | |
0.0063610877990722655, | |
0.0063170561790466305, | |
0.006306816101074219, | |
0.006556672096252441, | |
0.006594560146331787, | |
0.006558720111846924, | |
0.006545407772064209, | |
0.006518784046173095, | |
0.006303743839263916, | |
0.006281216144561768, | |
0.006288383960723877, | |
0.006301695823669433, | |
0.006284287929534912, | |
0.006284287929534912, | |
0.006273024082183838, | |
0.006275040149688721, | |
0.006425600051879882, | |
0.0064133119583129885 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 153.45567595540052 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |