
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
c54240f
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.4.0+cu121", | |
"_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.25696, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.10.220-209.869.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.0", | |
"transformers_commit": null, | |
"accelerate_version": "0.33.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.0", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.8", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 765.939712, | |
"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.45052490234375, | |
"mean": 7.45052490234375, | |
"stdev": 0.0, | |
"p50": 7.45052490234375, | |
"p90": 7.45052490234375, | |
"p95": 7.45052490234375, | |
"p99": 7.45052490234375, | |
"values": [ | |
7.45052490234375 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.035952150694186e-06, | |
"ram": 5.339706324397867e-07, | |
"gpu": 1.694168022000177e-06, | |
"total": 3.26409080513415e-06 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1085.99296, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.210304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 74, | |
"total": 0.4883690242767332, | |
"mean": 0.006599581409145046, | |
"stdev": 0.0002398351119954472, | |
"p50": 0.006576512098312379, | |
"p90": 0.006911542463302613, | |
"p95": 0.007092385578155517, | |
"p99": 0.0072840248250961295, | |
"values": [ | |
0.0072576642036437985, | |
0.007190624237060547, | |
0.0072072319984436035, | |
0.006842527866363525, | |
0.006656511783599854, | |
0.006651584148406982, | |
0.006604320049285889, | |
0.006578783988952636, | |
0.006564511775970459, | |
0.006440927982330322, | |
0.006715775966644287, | |
0.006651423931121826, | |
0.006637216091156006, | |
0.006622367858886718, | |
0.006757791996002197, | |
0.006687136173248291, | |
0.00650707197189331, | |
0.006529024124145508, | |
0.006529344081878662, | |
0.0065345921516418454, | |
0.006561408042907715, | |
0.006638432025909424, | |
0.0066592001914978025, | |
0.006613791942596436, | |
0.006605663776397705, | |
0.006584959983825684, | |
0.006604320049285889, | |
0.00656713581085205, | |
0.006603583812713623, | |
0.0065931520462036135, | |
0.0065606398582458494, | |
0.006233695983886719, | |
0.006635488033294678, | |
0.0069411201477050785, | |
0.007355296134948731, | |
0.006750304222106934, | |
0.006576608180999756, | |
0.006546592235565186, | |
0.006480160236358642, | |
0.006522592067718506, | |
0.006182432174682617, | |
0.006153471946716308, | |
0.006153535842895508, | |
0.006228799819946289, | |
0.0061914558410644535, | |
0.006218751907348633, | |
0.006206463813781738, | |
0.006221888065338135, | |
0.006195807933807373, | |
0.006750207901000976, | |
0.007000063896179199, | |
0.007039487838745117, | |
0.006995264053344726, | |
0.006715072154998779, | |
0.00661078405380249, | |
0.006571231842041015, | |
0.006595903873443603, | |
0.006570559978485107, | |
0.006593088150024414, | |
0.00657692813873291, | |
0.006523839950561524, | |
0.006602047920227051, | |
0.006546815872192383, | |
0.006552544116973877, | |
0.006565663814544678, | |
0.006541632175445557, | |
0.0065649919509887696, | |
0.006540575981140137, | |
0.006574592113494873, | |
0.006576416015625, | |
0.00653766393661499, | |
0.0065617280006408695, | |
0.006564832210540771, | |
0.006543903827667236 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 303.0495232968258 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.743740262345387e-08, | |
"ram": 4.233731145680102e-08, | |
"gpu": 1.512637375686285e-07, | |
"total": 2.7103845164888337e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7379026.805358595 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1101.365248, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.434048 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 74, | |
"total": 0.5167110085487365, | |
"mean": 0.006982581196604548, | |
"stdev": 0.00031266599952993154, | |
"p50": 0.0069414241313934325, | |
"p90": 0.00730451512336731, | |
"p95": 0.0075808687210083, | |
"p99": 0.008134146251678466, | |
"values": [ | |
0.007410496234893799, | |
0.007675903797149658, | |
0.008104096412658692, | |
0.007010079860687256, | |
0.007006271839141846, | |
0.007125631809234619, | |
0.006963647842407226, | |
0.006990496158599853, | |
0.007192512035369873, | |
0.006925695896148681, | |
0.0070032958984375, | |
0.006953887939453125, | |
0.0070292801856994625, | |
0.0069894399642944334, | |
0.008215392112731933, | |
0.0068865280151367185, | |
0.006850048065185547, | |
0.006867040157318116, | |
0.006849376201629639, | |
0.006864607810974121, | |
0.006968416213989258, | |
0.007058879852294922, | |
0.006990943908691406, | |
0.006960256099700928, | |
0.007023136138916016, | |
0.006932415962219238, | |
0.006939104080200195, | |
0.006955552101135254, | |
0.006953311920166016, | |
0.006930208206176758, | |
0.006949247837066651, | |
0.006853631973266602, | |
0.007529695987701416, | |
0.00782208013534546, | |
0.007313759803771973, | |
0.006954336166381836, | |
0.0069807682037353515, | |
0.006837503910064697, | |
0.006858047962188721, | |
0.006810527801513672, | |
0.006434463977813721, | |
0.006423679828643799, | |
0.006478367805480957, | |
0.006562975883483887, | |
0.006545887947082519, | |
0.006519552230834961, | |
0.0064997758865356445, | |
0.006625792026519775, | |
0.00652345609664917, | |
0.0072475199699401855, | |
0.007373216152191162, | |
0.007282944202423096, | |
0.007111807823181152, | |
0.006918432235717774, | |
0.0069886078834533695, | |
0.006948768138885498, | |
0.00694374418258667, | |
0.006913599967956543, | |
0.006894271850585937, | |
0.006906720161437988, | |
0.0070275521278381345, | |
0.006931519985198974, | |
0.006912223815917969, | |
0.006894879817962647, | |
0.006935616016387939, | |
0.006916096210479736, | |
0.006887712001800537, | |
0.006950560092926025, | |
0.00693836784362793, | |
0.006921823978424072, | |
0.006907199859619141, | |
0.006888671875, | |
0.0069194560050964355, | |
0.007000192165374756 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 143.21351543842766 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.13813892341858e-08, | |
"ram": 3.9029215691326326e-08, | |
"gpu": 1.358927421563693e-07, | |
"total": 2.463033470818816e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 4060034.1483283127 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 74, | |
"total": 0.4858920984268188, | |
"mean": 0.006566109438200254, | |
"stdev": 0.0002873879203080025, | |
"p50": 0.006534144163131713, | |
"p90": 0.006854656124114991, | |
"p95": 0.007063449501991272, | |
"p99": 0.007668336534500122, | |
"values": [ | |
0.006876160144805908, | |
0.0070860800743103025, | |
0.007628799915313721, | |
0.006606847763061524, | |
0.00659660816192627, | |
0.006692863941192627, | |
0.006543360233306885, | |
0.006586368083953857, | |
0.006763519763946534, | |
0.006516799926757812, | |
0.006598656177520752, | |
0.00653926420211792, | |
0.006627327919006347, | |
0.006584320068359375, | |
0.007775231838226319, | |
0.006467584133148193, | |
0.006429696083068847, | |
0.006470655918121338, | |
0.006441984176635742, | |
0.006460415840148926, | |
0.006565887928009034, | |
0.006653952121734619, | |
0.006586368083953857, | |
0.006558720111846924, | |
0.006620160102844238, | |
0.006529024124145508, | |
0.006533120155334473, | |
0.006554624080657959, | |
0.006552576065063476, | |
0.006529024124145508, | |
0.006546432018280029, | |
0.0064522562026977535, | |
0.007051263809204102, | |
0.007291903972625732, | |
0.0068884482383728025, | |
0.0065474557876586915, | |
0.0065781760215759275, | |
0.00643993616104126, | |
0.006460415840148926, | |
0.006415359973907471, | |
0.006050816059112549, | |
0.006044672012329101, | |
0.006087679862976075, | |
0.006180863857269287, | |
0.006158336162567139, | |
0.00612556791305542, | |
0.006116352081298828, | |
0.006213632106781006, | |
0.006140927791595459, | |
0.006780928134918213, | |
0.006892543792724609, | |
0.006804480075836182, | |
0.00669593620300293, | |
0.006512639999389648, | |
0.006586368083953857, | |
0.006535168170928955, | |
0.006535168170928955, | |
0.006511616230010986, | |
0.0064880638122558594, | |
0.006505472183227539, | |
0.006625216007232666, | |
0.0065075201988220215, | |
0.006509568214416504, | |
0.006489088058471679, | |
0.006524928092956543, | |
0.0065064959526062015, | |
0.006475776195526123, | |
0.006545407772064209, | |
0.0065177597999572755, | |
0.006498303890228272, | |
0.006501376152038574, | |
0.0064849920272827145, | |
0.0065064640045166015, | |
0.006584320068359375 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 152.2971874611484 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |