IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
25f19b3 verified
raw
history blame
17.6 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.494592,
"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.10544384765625,
"mean": 7.10544384765625,
"stdev": 0.0,
"p50": 7.10544384765625,
"p90": 7.10544384765625,
"p95": 7.10544384765625,
"p99": 7.10544384765625,
"values": [
7.10544384765625
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 9.6094591750039e-07,
"ram": 5.109819497165328e-07,
"gpu": 1.788334764000121e-06,
"total": 3.2602626312170433e-06
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1021.386752,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.210304
},
"latency": {
"unit": "s",
"count": 76,
"total": 0.489139265060425,
"mean": 0.00643604296132138,
"stdev": 0.00040306870878596896,
"p50": 0.006533679962158203,
"p90": 0.0067556161880493164,
"p95": 0.007114935994148254,
"p99": 0.007586184024810791,
"values": [
0.0074852161407470705,
0.006868256092071533,
0.006699935913085937,
0.0066342720985412594,
0.006699584007263184,
0.00643017578125,
0.006559264183044433,
0.006705728054046631,
0.006665567874908448,
0.006573791980743408,
0.00668832015991211,
0.0067058558464050295,
0.0066481599807739255,
0.006615583896636963,
0.006684671878814697,
0.006434239864349365,
0.006537824153900146,
0.006487391948699951,
0.006558752059936524,
0.006740032196044922,
0.0066797761917114255,
0.0066629438400268555,
0.006631904125213623,
0.0066984639167785645,
0.006616256237030029,
0.00652953577041626,
0.006601056098937988,
0.006670783996582031,
0.006553760051727295,
0.00655075216293335,
0.0064795842170715335,
0.006786367893218994,
0.006732672214508057,
0.006728447914123535,
0.006625823974609375,
0.0064284482002258305,
0.006509376049041748,
0.006349503993988037,
0.007198624134063721,
0.006466559886932373,
0.007087039947509766,
0.006572127819061279,
0.006634335994720459,
0.006771200180053711,
0.0077707200050354,
0.007524672031402588,
0.006589727878570557,
0.006345632076263427,
0.005978687763214112,
0.005987008094787597,
0.006012608051300048,
0.006013823986053467,
0.005984576225280762,
0.0060020160675048825,
0.006023776054382324,
0.006005727767944336,
0.005965695858001709,
0.006026559829711914,
0.0059977278709411625,
0.005962431907653809,
0.0060200319290161135,
0.005991487979888916,
0.005984928131103516,
0.005981056213378906,
0.006026271820068359,
0.005998879909515381,
0.005973951816558838,
0.0059634242057800295,
0.005980031967163086,
0.005979167938232422,
0.0059618239402771,
0.005969888210296631,
0.005983104228973388,
0.0059934401512146,
0.0059805760383605956,
0.006171840190887451
]
},
"throughput": {
"unit": "tokens/s",
"value": 310.7499455829271
},
"energy": {
"unit": "kWh",
"cpu": 7.692843482091828e-08,
"ram": 4.2059207930217707e-08,
"gpu": 1.5789695171428616e-07,
"total": 2.768845944654222e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7223225.993708232
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1037.299712,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.434048
},
"latency": {
"unit": "s",
"count": 76,
"total": 0.5130464305877684,
"mean": 0.006750610928786429,
"stdev": 0.0003895025803248728,
"p50": 0.006856368064880372,
"p90": 0.0070750718116760255,
"p95": 0.007320840120315551,
"p99": 0.007872503876686096,
"values": [
0.007421279907226562,
0.007025248050689698,
0.007015679836273193,
0.006997087955474854,
0.0068039999008178715,
0.006903007984161377,
0.00701203203201294,
0.007030848026275635,
0.007025087833404541,
0.007068319797515869,
0.007048736095428467,
0.007043583869934082,
0.007015615940093994,
0.006948832035064697,
0.006855616092681885,
0.006905824184417725,
0.006956416130065918,
0.006944767951965332,
0.006986527919769287,
0.007057759761810303,
0.0070382080078125,
0.0070107197761535645,
0.0072873601913452145,
0.006990592002868653,
0.006899360179901123,
0.006857120037078858,
0.0069845118522644046,
0.006845983982086181,
0.006853759765625,
0.006895711898803711,
0.006948736190795899,
0.0071320638656616215,
0.007081823825836182,
0.006946879863739014,
0.007137663841247558,
0.0068982081413269045,
0.006777632236480713,
0.006515520095825195,
0.007064576148986816,
0.00655075216293335,
0.006745503902435303,
0.006992800235748291,
0.007018400192260742,
0.007508319854736328,
0.007964159965515137,
0.007841951847076416,
0.006674560070037841,
0.006586719989776611,
0.006327648162841797,
0.006312895774841309,
0.0062928318977355955,
0.006284063816070557,
0.006270944118499756,
0.006287424087524414,
0.0063248958587646485,
0.00630079984664917,
0.006319808006286621,
0.0063075838088989256,
0.006326720237731933,
0.006351103782653808,
0.006430592060089111,
0.006295423984527588,
0.006316256046295166,
0.006293951988220215,
0.006280511856079102,
0.006273856163024902,
0.006291872024536133,
0.0063504319190979,
0.006300320148468017,
0.0063342080116271975,
0.006324927806854248,
0.006348544120788574,
0.006323232173919678,
0.006376095771789551,
0.0063678078651428225,
0.006315807819366455
]
},
"throughput": {
"unit": "tokens/s",
"value": 148.13474077371723
},
"energy": {
"unit": "kWh",
"cpu": 7.234138319696185e-08,
"ram": 3.9553042063266966e-08,
"gpu": 1.5049218388571323e-07,
"total": 2.6238660914594197e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3811170.1022203853
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 76,
"total": 0.47860528135299707,
"mean": 0.0062974379125394315,
"stdev": 0.0003336733172098433,
"p50": 0.00637388801574707,
"p90": 0.006577152013778686,
"p95": 0.006802176117897034,
"p99": 0.007388415932655334,
"values": [
0.0068915200233459475,
0.006525951862335205,
0.006503424167633057,
0.006494207859039307,
0.006333439826965332,
0.0064143362045288085,
0.006492127895355224,
0.0065136637687683106,
0.006532095909118653,
0.006549503803253174,
0.00653107213973999,
0.006500351905822754,
0.006503488063812256,
0.0064471039772033695,
0.006378496170043945,
0.006412288188934326,
0.006446080207824707,
0.006446080207824707,
0.00648089599609375,
0.006552576065063476,
0.006540224075317382,
0.006523903846740723,
0.006774784088134766,
0.006453248023986816,
0.006423552036285401,
0.006369279861450195,
0.006471680164337158,
0.006359039783477783,
0.006369279861450195,
0.006404096126556396,
0.006449151992797852,
0.006619135856628418,
0.00657203197479248,
0.006421504020690918,
0.006642687797546387,
0.006398975849151611,
0.006299647808074951,
0.00608358383178711,
0.006582272052764892,
0.006151167869567871,
0.0063170561790466305,
0.0064471039772033695,
0.006535168170928955,
0.006884352207183838,
0.0074414081573486324,
0.007370751857757568,
0.006220799922943115,
0.006205440044403076,
0.005953536033630371,
0.005940224170684814,
0.0059146881103515625,
0.005909503936767578,
0.005899263858795166,
0.005910528182983398,
0.005929984092712402,
0.00592793607711792,
0.005942272186279297,
0.005933055877685547,
0.005944320201873779,
0.005967872142791748,
0.006057983875274659,
0.005921728134155273,
0.005942272186279297,
0.00591974401473999,
0.0059064321517944334,
0.0059023361206054685,
0.005897215843200684,
0.005967872142791748,
0.005925888061523437,
0.005944320201873779,
0.005929984092712402,
0.005974016189575195,
0.005948416233062744,
0.006000639915466309,
0.005982207775115967,
0.005931007862091065
]
},
"throughput": {
"unit": "tokens/s",
"value": 158.79473746121485
},
"energy": null,
"efficiency": null
}
}
}