IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
52e5b0c verified
raw
history blame
17.3 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.225-213.878.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.1",
"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": 804.70016,
"max_global_vram": 1362.624512,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 666.338304
},
"latency": {
"unit": "s",
"values": [
0.20848947143554689
],
"count": 1,
"total": 0.20848947143554689,
"mean": 0.20848947143554689,
"p50": 0.20848947143554689,
"p90": 0.20848947143554689,
"p95": 0.20848947143554689,
"p99": 0.20848947143554689,
"stdev": 0,
"stdev_": 0
},
"throughput": null,
"energy": null,
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1228.115968,
"max_global_vram": 1373.110272,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.410496
},
"latency": {
"unit": "s",
"values": [
0.006705120086669922,
0.006594880104064942,
0.006620448112487793,
0.006885600090026855,
0.006647232055664062,
0.006525055885314941,
0.006474720001220703,
0.006528672218322754,
0.006571839809417725,
0.006552896022796631,
0.006568736076354981,
0.006552703857421875,
0.00658351993560791,
0.006562528133392334,
0.007735455989837646,
0.006899104118347168,
0.006849343776702881,
0.006758368015289307,
0.0065771198272705075,
0.006565536022186279,
0.006627552032470703,
0.006990880012512207,
0.007001535892486572,
0.00700435209274292,
0.006786240100860596,
0.006594880104064942,
0.006568384170532226,
0.006546624183654785,
0.006684607982635498,
0.00664195203781128,
0.0065775361061096195,
0.006565567970275879,
0.00659555196762085,
0.006541440010070801,
0.006543776035308838,
0.006559967994689941,
0.006971807956695557,
0.0069408960342407225,
0.0069731841087341305,
0.006990880012512207,
0.007052768230438233,
0.006880352020263672,
0.006852287769317627,
0.006781280040740967,
0.006802527904510498,
0.006732831954956055,
0.006549920082092285,
0.0065731201171875,
0.0065456957817077634,
0.006535520076751709,
0.0065649919509887696,
0.006554944038391113,
0.006529568195343017,
0.00656547212600708,
0.006549759864807129,
0.006532735824584961,
0.0065559039115905765,
0.006817376136779785,
0.006793024063110352,
0.006736608028411866,
0.006729824066162109,
0.006544320106506347,
0.006761439800262451,
0.0067257280349731444,
0.006726943969726563,
0.006729663848876953,
0.006731808185577393,
0.006712416172027588,
0.006573887825012207,
0.006533215999603272,
0.006535136222839356,
0.00654585599899292,
0.006536416053771973,
0.0065467839241027835
],
"count": 74,
"total": 0.49490662527084356,
"mean": 0.006687927368524913,
"p50": 0.006594880104064942,
"p90": 0.006962534379959107,
"p95": 0.006994609570503235,
"p99": 0.007237093925476072,
"stdev": 0.00019527995231763022,
"stdev_": 2.919887456264363
},
"throughput": {
"unit": "tokens/s",
"value": 299.0463098347193
},
"energy": {
"unit": "kWh",
"cpu": 8.189124761494396e-08,
"ram": 4.47464538479958e-08,
"gpu": 1.5791391943448035e-07,
"total": 2.845516208974201e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7028601.677588029
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1228.115968,
"max_global_vram": 1373.110272,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.458112
},
"latency": {
"unit": "s",
"values": [
0.006798272132873535,
0.00693839979171753,
0.007060736179351807,
0.006779903888702392,
0.006714560031890869,
0.006678112030029297,
0.006672671794891357,
0.0066795840263366695,
0.00675551986694336,
0.006732128143310547,
0.006717696189880371,
0.006732639789581299,
0.006730559825897217,
0.008238080024719239,
0.007754176139831543,
0.007041728019714356,
0.007019008159637451,
0.006939743995666504,
0.006718688011169434,
0.006729311943054199,
0.006851808071136474,
0.007156703948974609,
0.007149727821350098,
0.007002175807952881,
0.00693839979171753,
0.006714687824249267,
0.006846464157104492,
0.00682377576828003,
0.006792384147644043,
0.006753983974456787,
0.006733888149261474,
0.006809567928314209,
0.006713503837585449,
0.0067264318466186525,
0.006699967861175537,
0.006853504180908203,
0.007015488147735596,
0.0071023678779602055,
0.007080927848815918,
0.007316544055938721,
0.007001855850219727,
0.006972095966339111,
0.006966176033020019,
0.006950111865997315,
0.00693942403793335,
0.006750527858734131,
0.00672544002532959,
0.006711584091186523,
0.006728767871856689,
0.0067105917930603024,
0.006720448017120361,
0.00672105598449707,
0.006833280086517334,
0.006715648174285889,
0.0067200961112976075,
0.006729407787322998,
0.007212768077850342,
0.006970176219940186,
0.006950367927551269,
0.006971615791320801,
0.006968480110168457,
0.006795455932617187,
0.0069225277900695804,
0.00691212797164917,
0.006943039894104004,
0.007296383857727051,
0.006966879844665527,
0.006922143936157227,
0.006723487854003906,
0.006726240158081055,
0.00669155216217041,
0.006688960075378418,
0.006706111907958985,
0.006704512119293213
],
"count": 74,
"total": 0.5094831662178041,
"mean": 0.006884907651591945,
"p50": 0.006803920030593873,
"p90": 0.007095935869216919,
"p95": 0.00724203360080719,
"p99": 0.007884830188751218,
"stdev": 0.0002453705376179161,
"stdev_": 3.563890033603877
},
"throughput": {
"unit": "tokens/s",
"value": 145.2452306704183
},
"energy": {
"unit": "kWh",
"cpu": 7.736033254245738e-08,
"ram": 4.188306842018076e-08,
"gpu": 1.4867521472552166e-07,
"total": 2.6791861568815973e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3732476.7352632806
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"values": [
0.006405119895935059,
0.006534143924713135,
0.006519807815551758,
0.006388735771179199,
0.006326272010803223,
0.006277120113372803,
0.0062863359451293946,
0.006291456222534179,
0.006366208076477051,
0.006339583873748779,
0.006330368041992188,
0.006342656135559082,
0.006341631889343262,
0.007785535812377929,
0.007282656192779541,
0.006638591766357422,
0.006590464115142822,
0.006542335987091064,
0.006330368041992188,
0.0063201279640197755,
0.00643993616104126,
0.006684703826904297,
0.006715392112731934,
0.0065710082054138185,
0.006538271903991699,
0.00632422399520874,
0.00645740795135498,
0.006404096126556396,
0.00638156795501709,
0.006367231845855713,
0.006336512088775635,
0.006412288188934326,
0.006325247764587402,
0.006333439826965332,
0.0063170561790466305,
0.006346752166748047,
0.006595583915710449,
0.0066826238632202144,
0.00664572811126709,
0.006865920066833496,
0.006598656177520752,
0.00657203197479248,
0.0065669121742248536,
0.006549503803253174,
0.006540287971496582,
0.006360064029693604,
0.006322175979614258,
0.0063129281997680664,
0.006329343795776367,
0.006323200225830078,
0.006323200225830078,
0.006312992095947266,
0.006434815883636475,
0.006312960147857666,
0.006309887886047363,
0.006339583873748779,
0.006790143966674805,
0.006558720111846924,
0.0065372161865234375,
0.006560768127441406,
0.006549503803253174,
0.006397952079772949,
0.006523903846740723,
0.006504447937011719,
0.0065443840026855465,
0.006880256175994873,
0.0065669121742248536,
0.006525951862335205,
0.00632422399520874,
0.006339583873748779,
0.006305791854858398,
0.006301695823669433,
0.0063201279640197755,
0.006316031932830811
],
"count": 74,
"total": 0.47934067201614383,
"mean": 0.006477576648866808,
"p50": 0.006401024103164673,
"p90": 0.006671555137634277,
"p95": 0.0068166656017303465,
"p99": 0.007418433690071104,
"stdev": 0.00023071718097398205,
"stdev_": 3.561782337447815
},
"throughput": {
"unit": "tokens/s",
"value": 154.3787212730151
},
"energy": null,
"efficiency": null
}
}
}