IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
a301765 verified
raw
history blame
17.3 kB
{
"config": {
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.3.1+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.293824,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-5.10.219-208.866.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.3.1",
"optimum_benchmark_commit": null,
"transformers_version": "4.42.4",
"transformers_commit": null,
"accelerate_version": "0.32.1",
"accelerate_commit": null,
"diffusers_version": "0.29.2",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.7",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 720.621568,
"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.15121044921875,
"mean": 7.15121044921875,
"stdev": 0.0,
"p50": 7.15121044921875,
"p90": 7.15121044921875,
"p95": 7.15121044921875,
"p99": 7.15121044921875,
"values": [
7.15121044921875
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 9.723987844255236e-07,
"ram": 5.172869025693671e-07,
"gpu": 1.6350013079995465e-06,
"total": 3.1246869949944374e-06
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1032.450048,
"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.48722860813140867,
"mean": 0.0065841703801541715,
"stdev": 0.00037231585280344143,
"p50": 0.006642159938812255,
"p90": 0.007075491189956666,
"p95": 0.007175088119506836,
"p99": 0.00729537106513977,
"values": [
0.007238848209381104,
0.007041600227355957,
0.006844575881958008,
0.006722464084625244,
0.006786975860595703,
0.006643839836120605,
0.0067866559028625486,
0.007448192119598389,
0.007187359809875489,
0.0069213762283325195,
0.007173632144927979,
0.007109663963317871,
0.006950719833374024,
0.006861855983734131,
0.006793312072753906,
0.006635903835296631,
0.0066856322288513185,
0.006605504035949707,
0.00673302412033081,
0.006730463981628418,
0.006814784049987793,
0.006989215850830078,
0.006978079795837402,
0.007177792072296143,
0.0070900158882141115,
0.007106847763061523,
0.006904416084289551,
0.006750112056732178,
0.006640480041503906,
0.006684160232543946,
0.006689760208129883,
0.006714911937713623,
0.006859871864318847,
0.006965023994445801,
0.00680185604095459,
0.006735680103302002,
0.006617119789123535,
0.006556608200073242,
0.006406655788421631,
0.00646668815612793,
0.0063528637886047365,
0.0065288000106811525,
0.006587520122528077,
0.00673196792602539,
0.006863679885864258,
0.006746912002563476,
0.0065994558334350585,
0.006634655952453613,
0.006670144081115723,
0.006559135913848877,
0.006432415962219239,
0.006439648151397705,
0.006465888023376465,
0.006070208072662353,
0.006088128089904785,
0.006089216232299805,
0.006104032039642334,
0.006142623901367187,
0.006060832023620606,
0.006067584037780762,
0.0060308480262756346,
0.006054304122924805,
0.006155551910400391,
0.006099520206451416,
0.006089024066925049,
0.006088607788085938,
0.0060871682167053225,
0.00606438398361206,
0.006061439990997315,
0.006089759826660156,
0.006068607807159424,
0.006079936027526855,
0.006123807907104492,
0.006048255920410156
]
},
"throughput": {
"unit": "tokens/s",
"value": 303.75884652504527
},
"energy": {
"unit": "kWh",
"cpu": 7.804068273793885e-08,
"ram": 4.2669474615830595e-08,
"gpu": 1.5120991628947266e-07,
"total": 2.7192007364324213e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7355102.450523718
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1047.822336,
"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.5137212491035463,
"mean": 0.0069421790419398124,
"stdev": 0.0004095878274548257,
"p50": 0.0070424160957336425,
"p90": 0.007470819330215454,
"p95": 0.007503870320320129,
"p99": 0.007766109223365781,
"values": [
0.007255871772766113,
0.007247104167938233,
0.007093023777008056,
0.0070464320182800294,
0.0070668478012084965,
0.0069060797691345216,
0.0074323520660400395,
0.007563136100769043,
0.008276127815246581,
0.007476128101348877,
0.007491583824157715,
0.0074910402297973635,
0.007132448196411133,
0.007116543769836426,
0.007201248168945312,
0.006898528099060059,
0.007078207969665527,
0.007226304054260254,
0.0070639681816101075,
0.0071913919448852535,
0.007310880184173584,
0.007526688098907471,
0.007458432197570801,
0.007483104228973389,
0.00757747220993042,
0.007315231800079346,
0.0070564160346984865,
0.007275519847869873,
0.0071246719360351565,
0.0070384001731872555,
0.006997632026672363,
0.007182528018951416,
0.007168575763702393,
0.007132736206054688,
0.007117440223693847,
0.00703276777267456,
0.007081823825836182,
0.0068633279800415035,
0.006586080074310303,
0.006925343990325928,
0.006626368045806885,
0.007223328113555908,
0.007159520149230957,
0.007100768089294433,
0.00745801591873169,
0.006941472053527832,
0.006907423973083496,
0.0070936641693115235,
0.00682528018951416,
0.006804992198944091,
0.006744959831237793,
0.006723328113555908,
0.0067103362083435055,
0.006340832233428955,
0.006409599781036377,
0.006506591796875,
0.006354112148284912,
0.00636188793182373,
0.0063357119560241695,
0.006338560104370118,
0.006502431869506836,
0.006414463996887207,
0.006400352001190186,
0.0065979199409484865,
0.006448095798492432,
0.006359295845031738,
0.006425920009613037,
0.006514143943786621,
0.006418015956878662,
0.00637065601348877,
0.006381440162658692,
0.006407360076904297,
0.0064293122291564945,
0.006575647830963135
]
},
"throughput": {
"unit": "tokens/s",
"value": 144.04699071555146
},
"energy": {
"unit": "kWh",
"cpu": 7.098137450061346e-08,
"ram": 3.860837915970384e-08,
"gpu": 1.370750365605287e-07,
"total": 2.466647902208461e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 4054084.8943404984
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 74,
"total": 0.4794516162872315,
"mean": 0.006479075895773398,
"stdev": 0.0003507728624823827,
"p50": 0.006525951862335205,
"p90": 0.006933504104614257,
"p95": 0.0069765007734298706,
"p99": 0.007239336681365964,
"values": [
0.006676479816436768,
0.00672870397567749,
0.00657203197479248,
0.00652185583114624,
0.006553599834442139,
0.0064204797744750975,
0.006874112129211426,
0.007030784130096435,
0.007722911834716797,
0.0069212160110473635,
0.006968224048614502,
0.006966271877288818,
0.0066078720092773435,
0.006597631931304931,
0.006653952121734619,
0.006425600051879882,
0.006557631969451905,
0.006715392112731934,
0.006554624080657959,
0.006673215866088867,
0.006792384147644043,
0.0069918718338012695,
0.006933504104614257,
0.006961152076721191,
0.007060480117797851,
0.006781951904296875,
0.006502367973327637,
0.006721536159515381,
0.006608895778656006,
0.0065064640045166015,
0.006515711784362793,
0.0066744318008422855,
0.006657023906707763,
0.006621183872222901,
0.006619135856628418,
0.0065484800338745115,
0.00658022403717041,
0.006403071880340576,
0.0061521921157836916,
0.006456319808959961,
0.006230016231536865,
0.0067276802062988285,
0.006686719894409179,
0.006639584064483643,
0.006933504104614257,
0.00653004789352417,
0.00648902416229248,
0.006656000137329102,
0.0064143362045288085,
0.006394879817962646,
0.006346752166748047,
0.006322080135345459,
0.006307839870452881,
0.005960703849792481,
0.0060293121337890625,
0.0061296639442443845,
0.005983232021331787,
0.005967872142791748,
0.0059658241271972655,
0.005967872142791748,
0.006130688190460205,
0.0060282878875732426,
0.006021120071411133,
0.006221824169158936,
0.006049791812896729,
0.00598524808883667,
0.006052864074707031,
0.006140927791595459,
0.006033408164978027,
0.006001664161682129,
0.006003712177276611,
0.0060405759811401364,
0.0060364799499511715,
0.006191103935241699
]
},
"throughput": {
"unit": "tokens/s",
"value": 154.34299830510497
},
"energy": null,
"efficiency": null
}
}
}