IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
9b88bf3 verified
raw
history blame
16.9 kB
{
"config": {
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.4.0+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.223-212.873.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.33.0",
"accelerate_commit": null,
"diffusers_version": "0.30.2",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.9",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 791.044096,
"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.480830078125,
"mean": 7.480830078125,
"stdev": 0.0,
"p50": 7.480830078125,
"p90": 7.480830078125,
"p95": 7.480830078125,
"p99": 7.480830078125,
"values": [
7.480830078125
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 9.892427618058976e-07,
"ram": 5.264835365574743e-07,
"gpu": 1.7011124719998154e-06,
"total": 3.2168387703631875e-06
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1195.659264,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.210304
},
"latency": {
"unit": "s",
"count": 71,
"total": 0.4901376013755798,
"mean": 0.006903346498247604,
"stdev": 0.00033187307445030725,
"p50": 0.006985951900482177,
"p90": 0.0071981439590454105,
"p95": 0.007391424179077148,
"p99": 0.007621395254135132,
"values": [
0.007597856044769287,
0.007371168136596679,
0.0071411199569702145,
0.007016640186309814,
0.00709609603881836,
0.007077983856201172,
0.006849343776702881,
0.007004576206207275,
0.007180928230285644,
0.00712608003616333,
0.006977568149566651,
0.0071981439590454105,
0.007175648212432861,
0.007151391983032227,
0.007182591915130615,
0.007138783931732178,
0.007181119918823242,
0.006868832111358643,
0.006923999786376953,
0.007052320003509522,
0.006976191997528076,
0.00709939193725586,
0.007211423873901367,
0.007110367774963379,
0.0070052800178527835,
0.0070884799957275394,
0.007119616031646728,
0.007065855979919434,
0.006863840103149414,
0.0070537919998168944,
0.007148799896240235,
0.00693836784362793,
0.007010591983795166,
0.00701145601272583,
0.006952544212341308,
0.007205088138580323,
0.0076763200759887695,
0.007517151832580567,
0.007138271808624267,
0.006868224143981933,
0.007112256050109863,
0.00686684799194336,
0.006634719848632812,
0.006939519882202148,
0.006520127773284912,
0.006985951900482177,
0.00714576005935669,
0.007130303859710693,
0.007411680221557617,
0.0068113279342651364,
0.006768864154815674,
0.006714176177978515,
0.006765888214111328,
0.00670911979675293,
0.006724192142486572,
0.006367392063140869,
0.0063690562248229984,
0.006399519920349121,
0.006388224124908447,
0.006372928142547607,
0.00641318416595459,
0.006391551971435547,
0.006356416225433349,
0.00638588809967041,
0.00638643217086792,
0.006730656147003174,
0.006477024078369141,
0.006404032230377197,
0.006366687774658203,
0.006342080116271973,
0.006372543811798095
]
},
"throughput": {
"unit": "tokens/s",
"value": 289.714560975274
},
"energy": {
"unit": "kWh",
"cpu": 8.012489088776276e-08,
"ram": 4.375114550775634e-08,
"gpu": 1.573236994324316e-07,
"total": 2.8119973582795067e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7112382.215122992
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1214.337024,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.434048
},
"latency": {
"unit": "s",
"count": 71,
"total": 0.514248064994812,
"mean": 0.0072429304928846765,
"stdev": 0.0003400710142779173,
"p50": 0.00733519983291626,
"p90": 0.007612256050109864,
"p95": 0.00775763201713562,
"p99": 0.007863292694091797,
"values": [
0.007686143875122071,
0.00752675199508667,
0.007459104061126709,
0.00733519983291626,
0.007442592144012451,
0.007223264217376709,
0.007331967830657959,
0.0073480958938598635,
0.0077285442352294925,
0.0075000319480896,
0.007390048027038574,
0.007499616146087646,
0.007661983966827392,
0.007530720233917237,
0.00740828800201416,
0.007439583778381348,
0.007487391948699951,
0.007204319953918457,
0.007364416122436523,
0.007395328044891358,
0.007337344169616699,
0.007608799934387207,
0.007480095863342285,
0.0074271678924560545,
0.007326720237731933,
0.0076080961227417,
0.007374464035034179,
0.007386079788208008,
0.007307392120361328,
0.007333631992340088,
0.007397952079772949,
0.007327871799468994,
0.007367743968963623,
0.007364448070526123,
0.007535200119018554,
0.007799647808074951,
0.007937056064605713,
0.007786719799041748,
0.007409696102142334,
0.007545248031616211,
0.007138271808624267,
0.007041056156158448,
0.007231840133666992,
0.006936192035675049,
0.006746848106384277,
0.0073887038230896,
0.007612256050109864,
0.007831679821014405,
0.007242527961730957,
0.007226848125457764,
0.007092351913452148,
0.0070854401588439945,
0.007107327938079834,
0.007124927997589112,
0.007072512149810791,
0.006718048095703125,
0.006815231800079345,
0.006658720016479492,
0.006685184001922607,
0.006690048217773438,
0.006755296230316162,
0.006765279769897461,
0.006740064144134522,
0.006693280220031738,
0.006929183959960937,
0.006844511985778809,
0.006694240093231201,
0.0066778879165649415,
0.006696383953094482,
0.0066943359375,
0.006686816215515137
]
},
"throughput": {
"unit": "tokens/s",
"value": 138.06566292226356
},
"energy": {
"unit": "kWh",
"cpu": 7.848071288075306e-08,
"ram": 4.2966161152791844e-08,
"gpu": 1.4740247027423372e-07,
"total": 2.688493443077786e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3719555.2869015015
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 71,
"total": 0.479761375427246,
"mean": 0.006757202470806282,
"stdev": 0.0002782969237870683,
"p50": 0.006818816184997558,
"p90": 0.007082015991210938,
"p95": 0.007166463851928711,
"p99": 0.007284633445739746,
"values": [
0.007131135940551757,
0.00698367977142334,
0.006924287796020508,
0.006814720153808594,
0.006920191764831543,
0.006694911956787109,
0.006820864200592041,
0.006820864200592041,
0.0071526398658752445,
0.006966271877288818,
0.0068689918518066405,
0.006952960014343262,
0.007082015991210938,
0.006988800048828125,
0.006866943836212158,
0.006912992000579834,
0.006970367908477783,
0.0067051520347595215,
0.0068321280479431154,
0.006814720153808594,
0.006818816184997558,
0.007065599918365479,
0.006930367946624756,
0.006896639823913574,
0.006812672138214112,
0.00707583999633789,
0.006849535942077637,
0.006882304191589355,
0.006789120197296142,
0.006816768169403077,
0.006881279945373535,
0.006819839954376221,
0.006815743923187256,
0.006847487926483154,
0.007006207942962647,
0.007180287837982178,
0.007315455913543701,
0.007247871875762939,
0.006892543792724609,
0.006940671920776367,
0.006673408031463623,
0.006598656177520752,
0.006719488143920899,
0.006520832061767578,
0.006348800182342529,
0.006895616054534912,
0.007143424034118652,
0.007271423816680909,
0.0068249602317810056,
0.006816768169403077,
0.006687744140625,
0.0066826558113098145,
0.006689792156219483,
0.006710271835327148,
0.006643712043762207,
0.006334464073181153,
0.006428671836853027,
0.006276095867156982,
0.006299647808074951,
0.006307839870452881,
0.006362112045288086,
0.006347775936126709,
0.006342656135559082,
0.0062975997924804685,
0.006468607902526856,
0.006441984176635742,
0.006306816101074219,
0.00628223991394043,
0.006315008163452148,
0.006309887886047363,
0.006302720069885254
]
},
"throughput": {
"unit": "tokens/s",
"value": 147.9902377234344
},
"energy": null,
"efficiency": null
}
}
}