IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
8222bea verified
raw
history blame
17.4 kB
{
"config": {
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.2.2+rocm5.7",
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
"task": "text-generation",
"library": "transformers",
"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": {},
"hub_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,
"latency": true,
"memory": true,
"energy": false,
"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 7763 64-Core Processor",
"cpu_count": 128,
"cpu_ram_mb": 1082015.236096,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-5.15.0-84-generic-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.12",
"gpu": [
"Advanced Micro Devices, Inc. [AMD/ATI]"
],
"gpu_count": 1,
"gpu_vram_mb": 68702699520,
"optimum_benchmark_version": "0.3.1",
"optimum_benchmark_commit": "8ebe8531a5b12ea7926cab66905381c76b24fcc4",
"transformers_version": "4.42.3",
"transformers_commit": null,
"accelerate_version": "0.31.0",
"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": {
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1049.481216,
"max_global_vram": 1107.525632,
"max_process_vram": 223892.733952,
"max_reserved": 725.614592,
"max_allocated": 513.035776
},
"latency": {
"unit": "s",
"count": 66,
"total": 0.520459403038025,
"mean": 0.007885748530879165,
"stdev": 0.00043665391060898265,
"p50": 0.007728088140487671,
"p90": 0.008235048294067383,
"p95": 0.008747848272323609,
"p99": 0.00968841753005981,
"values": [
0.010172330856323242,
0.007878407955169678,
0.007877287864685058,
0.007815207958221436,
0.0077201671600341795,
0.007726247787475586,
0.007640488147735595,
0.007666566848754883,
0.007668327808380127,
0.007645927906036377,
0.007621926784515381,
0.007802408218383789,
0.007841928005218506,
0.00788208818435669,
0.00942784881591797,
0.0076654481887817386,
0.007670248031616211,
0.007658408164978027,
0.007681128025054932,
0.0077326478958129885,
0.007707848072052002,
0.007716008186340332,
0.0077180881500244145,
0.007735847949981689,
0.007714888095855713,
0.007684487819671631,
0.007716166973114014,
0.00788880681991577,
0.00772864818572998,
0.00779968786239624,
0.00775872802734375,
0.007735688209533692,
0.007703048229217529,
0.0077886471748352054,
0.00772128677368164,
0.007749927997589111,
0.007741608142852783,
0.007753767967224121,
0.00775920820236206,
0.007714087009429931,
0.007730247020721436,
0.007743526935577392,
0.007727528095245361,
0.007752488136291504,
0.008712489128112793,
0.008845129013061524,
0.00874992847442627,
0.008741607666015625,
0.00824240779876709,
0.008227688789367676,
0.008211688995361328,
0.008067848205566407,
0.007715847969055176,
0.007706567764282226,
0.007714727878570557,
0.007858567237854004,
0.007700006961822509,
0.007701288223266602,
0.007706727981567383,
0.007715208053588867,
0.007727367877960205,
0.007710087776184082,
0.007677127838134765,
0.007686247825622558,
0.007735527992248535,
0.0077200069427490236
]
},
"throughput": {
"unit": "tokens/s",
"value": 253.62208700522996
},
"energy": null,
"efficiency": null
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1049.481216,
"max_global_vram": 1107.529728,
"max_process_vram": 222923.53024,
"max_reserved": 725.614592,
"max_allocated": 513.25952
},
"latency": {
"unit": "s",
"count": 66,
"total": 0.48820896244049083,
"mean": 0.007397105491522587,
"stdev": 0.00027668337470544317,
"p50": 0.007403446912765503,
"p90": 0.007844247579574585,
"p95": 0.007926088094711304,
"p99": 0.00823710436820984,
"values": [
0.008101448059082032,
0.007224486827850342,
0.007136326789855957,
0.0071084871292114256,
0.007032967090606689,
0.006973927021026611,
0.007003207206726075,
0.00698224687576294,
0.006972167015075683,
0.006942086219787598,
0.006981606960296631,
0.007072007179260254,
0.007063046932220459,
0.006993287086486817,
0.0073715271949768065,
0.007218407154083252,
0.007234247207641602,
0.0072081670761108396,
0.007264007091522217,
0.007357767105102539,
0.007388647079467773,
0.007356327056884765,
0.007403526782989502,
0.007408007144927979,
0.007359207153320313,
0.007495687961578369,
0.007345287799835205,
0.0074220881462097165,
0.007431527137756347,
0.007403367042541504,
0.007367527008056641,
0.007420806884765625,
0.007421767234802246,
0.007449607849121093,
0.0074129681587219234,
0.007407846927642822,
0.00741776704788208,
0.00741616678237915,
0.007508487224578858,
0.007418568134307861,
0.007430408000946045,
0.0074080080986022945,
0.0073769669532775875,
0.007396807193756103,
0.008234248161315919,
0.007835368156433105,
0.008242408752441406,
0.007890888214111328,
0.007933608055114746,
0.007853127002716065,
0.007903528213500977,
0.007489127159118652,
0.007498726844787597,
0.007363846778869629,
0.007451527118682862,
0.007401927947998047,
0.007406248092651367,
0.007378567218780518,
0.007404006958007812,
0.007430246829986572,
0.007417447090148925,
0.007342247009277344,
0.00741616678237915,
0.007359046936035157,
0.0074912080764770505,
0.00735664701461792
]
},
"throughput": {
"unit": "tokens/s",
"value": 135.18801389895611
},
"energy": null,
"efficiency": null
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 131,
"total": 1.0003905997276303,
"mean": 0.007636569463569699,
"stdev": 0.0008112678939177447,
"p50": 0.007728968143463135,
"p90": 0.008358728408813477,
"p95": 0.00879672861099243,
"p99": 0.009420841312408447,
"values": [
0.007696967124938964,
0.008321768760681152,
0.0068046460151672365,
0.0083377685546875,
0.006734086036682129,
0.0082612886428833,
0.006700486183166504,
0.00816928768157959,
0.006648167133331299,
0.00815024757385254,
0.006596646785736084,
0.008056648254394531,
0.006629446029663086,
0.008080007553100586,
0.006602726936340332,
0.008086088180541993,
0.006596967220306397,
0.008059207916259765,
0.006573925971984864,
0.008027208328247071,
0.006596006870269775,
0.008224488258361817,
0.006680966854095459,
0.008270567893981933,
0.006668806076049805,
0.008315689086914062,
0.006622245788574219,
0.009836970329284668,
0.006889126777648926,
0.008188648223876953,
0.006770727157592774,
0.008148648262023927,
0.006757287025451661,
0.008167048454284669,
0.006764007091522217,
0.008156328201293946,
0.006796485900878906,
0.008232008934020997,
0.006823205947875976,
0.00827216911315918,
0.006839527130126953,
0.008296327590942383,
0.006846567153930664,
0.008259207725524902,
0.006876166820526123,
0.008292967796325684,
0.006845447063446045,
0.008309288024902344,
0.00683424711227417,
0.008240327835083008,
0.006935526847839355,
0.008306407928466797,
0.006835046768188476,
0.008429767608642579,
0.006854567050933838,
0.00832720947265625,
0.006896805763244629,
0.008365769386291504,
0.006874567031860352,
0.00833344841003418,
0.006847527027130127,
0.00828704833984375,
0.006846726894378662,
0.008309127807617188,
0.0068764867782592776,
0.008365447998046876,
0.00689152717590332,
0.008315208435058594,
0.006865927219390869,
0.008344009399414062,
0.006872005939483642,
0.008326249122619629,
0.006877447128295898,
0.008324968338012695,
0.006874247074127197,
0.008332008361816407,
0.006965766906738282,
0.00828816795349121,
0.006857767105102539,
0.008322088241577149,
0.006859527111053467,
0.008346088409423828,
0.0068694472312927244,
0.008297449111938476,
0.00684864616394043,
0.008328648567199707,
0.006846887111663818,
0.00929392910003662,
0.00771472692489624,
0.009398889541625977,
0.007223206996917725,
0.009430249214172364,
0.007728968143463135,
0.009289129257202149,
0.007351208209991455,
0.008812328338623047,
0.007379687786102295,
0.008811848640441895,
0.007336966991424561,
0.008781608581542968,
0.007332006931304932,
0.008669928550720215,
0.006936646938323974,
0.008332008361816407,
0.006882246971130371,
0.008354408264160156,
0.006825926780700683,
0.008325448036193847,
0.006821446895599366,
0.008519847869873047,
0.006842566967010498,
0.008289128303527833,
0.006844807147979737,
0.008294089317321778,
0.006842885971069336,
0.008298089027404785,
0.006815686225891114,
0.008334408760070801,
0.0068480072021484375,
0.00834064769744873,
0.006829287052154541,
0.008358728408813477,
0.006803526878356934,
0.008279368400573731,
0.0068265671730041505,
0.00830624771118164,
0.006838566780090332,
0.00828704833984375,
0.00692976713180542,
0.008312168121337891,
0.006815687179565429
]
},
"throughput": {
"unit": "tokens/s",
"value": 130.94885141430404
},
"energy": null,
"efficiency": null
}
}
}