IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
d29c6dc verified
raw
history blame
16.7 kB
{
"config": {
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.5.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": 2,
"sequence_length": 16,
"num_choices": 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.248768,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-5.10.228-219.884.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.dev0",
"optimum_benchmark_commit": null,
"transformers_version": "4.46.3",
"transformers_commit": null,
"accelerate_version": "1.1.1",
"accelerate_commit": null,
"diffusers_version": "0.31.0",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.12",
"timm_commit": null,
"peft_version": "0.13.2",
"peft_commit": null
},
"print_report": true,
"log_report": true
},
"report": {
"load_model": {
"memory": {
"unit": "MB",
"max_ram": 825.36448,
"max_global_vram": 1362.624512,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 666.338304
},
"latency": {
"unit": "s",
"values": [
0.08293068695068359
],
"count": 1,
"total": 0.08293068695068359,
"mean": 0.08293068695068359,
"p50": 0.08293068695068359,
"p90": 0.08293068695068359,
"p95": 0.08293068695068359,
"p99": 0.08293068695068359,
"stdev": 0,
"stdev_": 0
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 0.00010665718412986135,
"ram": 5.84209553869121e-05,
"gpu": 0.0001384817774520001,
"total": 0.00030355991696877355
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1288.179712,
"max_global_vram": 1379.401728,
"max_process_vram": 0.0,
"max_reserved": 731.906048,
"max_allocated": 538.394112
},
"latency": {
"unit": "s",
"values": [
0.008089216232299804,
0.008011615753173829,
0.007742623805999756,
0.007729440212249756,
0.007714144229888916,
0.008547264099121094,
0.008092576026916504,
0.007967360019683838,
0.007770624160766602,
0.007893184185028075,
0.008845279693603516,
0.007965248107910156,
0.007823616027832032,
0.007951039791107178,
0.007754623889923096,
0.008002176284790039,
0.007642240047454834,
0.0077439360618591305,
0.008034687995910644,
0.007685984134674072,
0.007703264236450195,
0.007989855766296386,
0.007960927963256837,
0.007881184101104737,
0.007833375930786132,
0.007614848136901856,
0.007649312019348145,
0.007708191871643066,
0.007906879901885986,
0.007651135921478271,
0.007680031776428222,
0.007834368228912354,
0.00792460823059082,
0.007409728050231933,
0.007464159965515136,
0.007556767940521241,
0.007608543872833252,
0.00827455997467041,
0.007499328136444092,
0.00740067195892334,
0.007197408199310302,
0.00709449577331543,
0.007076223850250244,
0.007093503952026368,
0.0072674241065979,
0.007100224018096924,
0.007077407836914062,
0.0071552319526672365,
0.007067135810852051,
0.007095168113708496,
0.007111519813537598,
0.007261919975280762,
0.007043488025665283,
0.007118495941162109,
0.007178880214691162,
0.007110943794250488,
0.007092000007629395,
0.007112256050109863,
0.007041312217712402,
0.007109568119049072,
0.007073599815368653,
0.007261151790618896,
0.007139200210571289,
0.007140736103057862,
0.0070704960823059085,
0.007095327854156494,
0.007388512134552002,
0.007330016136169433
],
"count": 68,
"total": 0.5134622726440431,
"mean": 0.007550915774177103,
"p50": 0.007611696004867554,
"p90": 0.008005008125305175,
"p95": 0.008091400098800659,
"p99": 0.008645609245300293,
"stdev": 0.0004087055024817679,
"stdev_": 5.412661387105837
},
"throughput": {
"unit": "samples/s",
"value": 264.8685351304901
},
"energy": {
"unit": "kWh",
"cpu": 9.153114000742526e-08,
"ram": 4.97665488838862e-08,
"gpu": 2.1211212897710132e-07,
"total": 3.534098178684128e-07
},
"efficiency": {
"unit": "samples/kWh",
"value": 5659152.346312778
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1288.179712,
"max_global_vram": 1379.401728,
"max_process_vram": 0.0,
"max_reserved": 731.906048,
"max_allocated": 538.394112
},
"latency": {
"unit": "s",
"values": [
0.007673855781555176,
0.007514080047607422,
0.00759276819229126,
0.007564799785614014,
0.007517312049865723,
0.008109472274780273,
0.0076884799003601074,
0.00756876802444458,
0.0074191360473632815,
0.007626239776611328,
0.007877376079559326,
0.00757366418838501,
0.007443935871124268,
0.007500864028930664,
0.007585023880004883,
0.0073829441070556645,
0.007404640197753907,
0.007457024097442627,
0.007509471893310547,
0.007627935886383057,
0.007825727939605714,
0.007697408199310303,
0.007724639892578125,
0.007640063762664795,
0.007515679836273193,
0.007496543884277344,
0.00733465576171875,
0.007174304008483887,
0.007670752048492432,
0.00731279993057251,
0.007710976123809814,
0.007672319889068604,
0.007230656147003174,
0.007210591793060303,
0.00742464017868042,
0.007522655963897705,
0.007517695903778076,
0.007601376056671143,
0.007178143978118896,
0.007116191864013672,
0.006913887977600098,
0.006853312015533447,
0.007000991821289063,
0.006854080200195313,
0.006861408233642578,
0.0068288960456848145,
0.00687820816040039,
0.006947840213775635,
0.0068800320625305176,
0.006868512153625488,
0.00686790418624878,
0.006863455772399902,
0.0068575038909912105,
0.006851136207580566,
0.0069658241271972655,
0.006866047859191895,
0.006839424133300781,
0.006872928142547608,
0.00685203218460083,
0.006924191951751709,
0.006848832130432129,
0.007144447803497315,
0.006882368087768554,
0.006854623794555664,
0.00685862398147583,
0.0072544322013854984,
0.007139647960662842,
0.0071073598861694336
],
"count": 68,
"total": 0.4949535684585572,
"mean": 0.007278728947919958,
"p50": 0.00732372784614563,
"p90": 0.007678243017196655,
"p95": 0.007719857573509217,
"p99": 0.007953967823982238,
"stdev": 0.0003436520285570793,
"stdev_": 4.721319216802059
},
"throughput": {
"unit": "tokens/s",
"value": 274.7732487787638
},
"energy": {
"unit": "kWh",
"cpu": 7.579332171009419e-08,
"ram": 4.166997971757266e-08,
"gpu": 1.37700357445431e-07,
"total": 2.5516365887309795e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7838106.761882858
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"values": [
0.007228415966033935,
0.007065599918365479,
0.007121920108795166,
0.007094272136688232,
0.0070594558715820314,
0.007624703884124756,
0.007226367950439453,
0.007117824077606201,
0.006977536201477051,
0.0071485438346862796,
0.007356416225433349,
0.007130112171173096,
0.006981535911560059,
0.007044000148773193,
0.007115903854370117,
0.006945792198181152,
0.006957056045532227,
0.006993055820465088,
0.007039999961853028,
0.007157760143280029,
0.007351295948028564,
0.007218175888061523,
0.007251967906951904,
0.007175168037414551,
0.007072768211364746,
0.007046080112457275,
0.006882239818572998,
0.006758399963378906,
0.007235583782196045,
0.006889472007751465,
0.007263232231140137,
0.007195648193359375,
0.006858751773834228,
0.006848512172698974,
0.006985727787017822,
0.007129087924957276,
0.00703385591506958,
0.0072130560874938965,
0.006802432060241699,
0.006738944053649902,
0.0065668802261352535,
0.006503456115722657,
0.006653952121734619,
0.0065064959526062015,
0.0065146880149841305,
0.00648089599609375,
0.006532095909118653,
0.006599679946899414,
0.006530208110809326,
0.006520832061767578,
0.006522751808166504,
0.006491231918334961,
0.006509568214416504,
0.006502399921417237,
0.006608895778656006,
0.0064971518516540525,
0.006485951900482178,
0.006500351905822754,
0.006502399921417237,
0.006554624080657959,
0.006500351905822754,
0.006778880119323731,
0.006533120155334473,
0.006505472183227539,
0.006510591983795166,
0.006871039867401123,
0.006766592025756836,
0.0067420158386230465
],
"count": 68,
"total": 0.4671292481422425,
"mean": 0.006869547766797683,
"p50": 0.006885855913162231,
"p90": 0.007226982355117798,
"p95": 0.0072592897176742555,
"p99": 0.007444951152801513,
"stdev": 0.00029554851370972235,
"stdev_": 4.302299419740343
},
"throughput": null,
"energy": null,
"efficiency": null
}
}
}