IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
6a122a4 verified
raw
history blame
17.5 kB
{
"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": 801.357824,
"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.97692333984375,
"mean": 7.97692333984375,
"stdev": 0.0,
"p50": 7.97692333984375,
"p90": 7.97692333984375,
"p95": 7.97692333984375,
"p99": 7.97692333984375,
"values": [
7.97692333984375
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 2.372385180555625e-06,
"ram": 1.28135221724319e-06,
"gpu": 3.1897247739999437e-06,
"total": 6.843462171798759e-06
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1204.596736,
"max_global_vram": 1373.110272,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.210304
},
"latency": {
"unit": "s",
"count": 75,
"total": 0.48826886415481563,
"mean": 0.0065102515220642095,
"stdev": 0.00017849387546669892,
"p50": 0.006456895828247071,
"p90": 0.006625465488433838,
"p95": 0.006698624181747437,
"p99": 0.007321351604461671,
"values": [
0.0074971518516540525,
0.007259583950042724,
0.006658880233764648,
0.006456895828247071,
0.006422912120819092,
0.006410560131072998,
0.006445888042449951,
0.006424543857574463,
0.006404160022735595,
0.006438975811004639,
0.00643452787399292,
0.006405695915222168,
0.006398816108703614,
0.006459296226501465,
0.0064795842170715335,
0.006393280029296875,
0.006431488037109375,
0.0064349122047424314,
0.006577568054199219,
0.006457568168640137,
0.0064999361038208005,
0.006415775775909424,
0.0064971837997436525,
0.006483200073242187,
0.006406559944152832,
0.006462751865386963,
0.0064737281799316405,
0.006405280113220215,
0.0064132800102233885,
0.00645414400100708,
0.006425504207611084,
0.006413856029510498,
0.006520415782928467,
0.006520415782928467,
0.006437088012695312,
0.006454400062561035,
0.0064651517868042,
0.006405951976776123,
0.00647705602645874,
0.00703545618057251,
0.006696224212646484,
0.0064719681739807125,
0.006406464099884033,
0.00645136022567749,
0.006522560119628906,
0.006432767868041992,
0.006474783897399902,
0.006470848083496094,
0.006395103931427002,
0.006413407802581787,
0.0064551677703857425,
0.006415455818176269,
0.006394591808319092,
0.006704224109649658,
0.006584383964538574,
0.006630303859710693,
0.0066406078338623045,
0.0065940160751342776,
0.006613183975219727,
0.00656771183013916,
0.006591040134429932,
0.006390272140502929,
0.006396448135375977,
0.00640451192855835,
0.0063821120262146,
0.006362720012664795,
0.006384352207183838,
0.006400447845458984,
0.0065400638580322265,
0.006577600002288819,
0.006588479995727539,
0.006529952049255371,
0.0066162881851196285,
0.006618207931518555,
0.006591807842254638
]
},
"throughput": {
"unit": "tokens/s",
"value": 307.2077926976712
},
"energy": {
"unit": "kWh",
"cpu": 8.16052038241983e-08,
"ram": 4.458690396815765e-08,
"gpu": 1.548326961643825e-07,
"total": 2.8102480395673845e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7116809.519446846
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1222.94272,
"max_global_vram": 1373.110272,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.434048
},
"latency": {
"unit": "s",
"count": 75,
"total": 0.5143893446922303,
"mean": 0.006858524595896403,
"stdev": 0.00019294220203449738,
"p50": 0.006789247989654541,
"p90": 0.007004140853881837,
"p95": 0.007072012710571289,
"p99": 0.00771174553871155,
"values": [
0.0075998082160949705,
0.008030336380004882,
0.006788608074188233,
0.006734240055084229,
0.006738976001739502,
0.006754464149475098,
0.006732384204864502,
0.006761407852172852,
0.006899583816528321,
0.006730976104736328,
0.006756415843963623,
0.006759552001953125,
0.00690831995010376,
0.0067266240119934085,
0.006715295791625976,
0.006753856182098388,
0.006758975982666016,
0.006848031997680664,
0.006728960037231445,
0.006852320194244385,
0.006808671951293945,
0.006868480205535888,
0.006751584053039551,
0.006798272132873535,
0.006794879913330078,
0.006740096092224121,
0.006771423816680908,
0.006784992218017578,
0.00678220796585083,
0.006735231876373291,
0.006772672176361084,
0.006779839992523193,
0.006924767971038818,
0.0067944002151489255,
0.006879295825958252,
0.006745728015899658,
0.006773248195648194,
0.006776927947998047,
0.006725887775421143,
0.007088511943817139,
0.0069391999244689945,
0.00681708812713623,
0.006793407917022705,
0.006713535785675049,
0.006875328063964844,
0.006789247989654541,
0.0067636480331420895,
0.00690067195892334,
0.006793504238128662,
0.006721312046051025,
0.006963679790496826,
0.006805823802947998,
0.006772223949432373,
0.007054719924926758,
0.006982016086578369,
0.006933919906616211,
0.0069905281066894535,
0.0069773120880126955,
0.0069736638069152835,
0.006938816070556641,
0.007013216018676758,
0.006755871772766113,
0.006753727912902832,
0.006721471786499024,
0.006772928237915039,
0.006737215995788574,
0.0067430720329284665,
0.006724512100219727,
0.0069781441688537595,
0.00694323205947876,
0.006963679790496826,
0.007066688060760498,
0.006889152050018311,
0.007067135810852051,
0.007083392143249512
]
},
"throughput": {
"unit": "tokens/s",
"value": 145.8039533164787
},
"energy": {
"unit": "kWh",
"cpu": 7.742482997210195e-08,
"ram": 4.2319790537055784e-08,
"gpu": 1.4551198855561912e-07,
"total": 2.652566090647767e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3769934.3421667437
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 75,
"total": 0.48427315187454234,
"mean": 0.00645697535832723,
"stdev": 0.00017254579441453767,
"p50": 0.006401023864746094,
"p90": 0.006602956771850586,
"p95": 0.006674031782150269,
"p99": 0.007171031131744387,
"values": [
0.0070522880554199216,
0.007508992195129394,
0.006396927833557129,
0.006343679904937744,
0.006352896213531494,
0.006366208076477051,
0.006343679904937744,
0.006345727920532227,
0.006501376152038574,
0.006342656135559082,
0.006366208076477051,
0.006372352123260498,
0.0065136637687683106,
0.006338592052459717,
0.0063283839225769046,
0.006368256092071533,
0.0063569917678833006,
0.00642252779006958,
0.006326272010803223,
0.006461440086364746,
0.0064204797744750975,
0.006481919765472412,
0.006357952117919922,
0.006408192157745361,
0.006408192157745361,
0.006352896213531494,
0.006337535858154297,
0.006396927833557129,
0.006393856048583985,
0.0063508481979370115,
0.006385663986206055,
0.006388735771179199,
0.006512639999389648,
0.006408192157745361,
0.006489088058471679,
0.006358016014099121,
0.006386688232421875,
0.00638976001739502,
0.006337535858154297,
0.006685696125030518,
0.006542335987091064,
0.006426623821258545,
0.006408192157745361,
0.006325247764587402,
0.006469632148742676,
0.006401023864746094,
0.006368256092071533,
0.006453248023986816,
0.006403071880340576,
0.006334464073181153,
0.006505472183227539,
0.006404032230377197,
0.0063836159706115725,
0.006633471965789795,
0.0065771517753601075,
0.006536191940307618,
0.006583295822143555,
0.006568960189819336,
0.0065781760215759275,
0.0065413122177124024,
0.006616064071655273,
0.0063569917678833006,
0.006354944229125976,
0.0063201279640197755,
0.00633241605758667,
0.0063498239517211915,
0.0063569917678833006,
0.006335487842559814,
0.0065669121742248536,
0.0065382399559021,
0.006558720111846924,
0.006646783828735352,
0.006482944011688232,
0.006670335769653321,
0.0066826558113098145
]
},
"throughput": {
"unit": "tokens/s",
"value": 154.87127401072567
},
"energy": null,
"efficiency": null
}
}
}