IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
a2b2979 verified
raw
history blame
17.4 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.572416,
"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.16139111328125,
"mean": 7.16139111328125,
"stdev": 0.0,
"p50": 7.16139111328125,
"p90": 7.16139111328125,
"p95": 7.16139111328125,
"p99": 7.16139111328125,
"values": [
7.16139111328125
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 9.7512337896559e-07,
"ram": 5.185642455990092e-07,
"gpu": 1.6694457800000857e-06,
"total": 3.1631334045646846e-06
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1020.694528,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.210304
},
"latency": {
"unit": "s",
"count": 75,
"total": 0.4913251848220825,
"mean": 0.006551002464294433,
"stdev": 0.0003609866311153079,
"p50": 0.006615007877349853,
"p90": 0.006877075099945069,
"p95": 0.007021363258361816,
"p99": 0.007642875566482547,
"values": [
0.007473472118377685,
0.006890048027038574,
0.0068663997650146484,
0.006838592052459716,
0.006707520008087158,
0.006508480072021485,
0.006640960216522216,
0.006706367969512939,
0.006746912002563476,
0.006641407966613769,
0.006815040111541748,
0.006776159763336182,
0.006674560070037841,
0.006769887924194336,
0.006726208209991455,
0.006611167907714844,
0.006618368148803711,
0.006624959945678711,
0.0066455998420715335,
0.006839136123657227,
0.006779776096343994,
0.006632863998413086,
0.006846176147460937,
0.006716896057128907,
0.006692480087280273,
0.006608799934387207,
0.006659615993499756,
0.006515488147735595,
0.00665235185623169,
0.006636832237243652,
0.006615007877349853,
0.006884191989898682,
0.00812502384185791,
0.007049407958984375,
0.007009344100952148,
0.006861792087554931,
0.006920479774475098,
0.006619935989379883,
0.006517216205596924,
0.006183487892150879,
0.006666848182678223,
0.0068512001037597655,
0.006852159976959229,
0.00711683177947998,
0.006584991931915283,
0.006420447826385498,
0.006440320014953613,
0.006358816146850586,
0.006448480129241943,
0.00643936014175415,
0.006089471817016602,
0.00608073616027832,
0.006075327873229981,
0.006084127902984619,
0.006089280128479004,
0.006106207847595215,
0.006091904163360595,
0.006109856128692627,
0.006063744068145752,
0.006057983875274659,
0.006049439907073974,
0.006083231925964355,
0.006137631893157959,
0.006041088104248047,
0.006035744190216064,
0.006023104190826416,
0.0063179202079772945,
0.006356959819793701,
0.0063834238052368165,
0.00635475206375122,
0.00634611177444458,
0.006399040222167969,
0.006418879985809326,
0.006335008144378662,
0.00636633586883545
]
},
"throughput": {
"unit": "tokens/s",
"value": 305.29678639273834
},
"energy": {
"unit": "kWh",
"cpu": 7.695352919345982e-08,
"ram": 4.2074043749802525e-08,
"gpu": 1.5262999223376673e-07,
"total": 2.7165756517702914e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7362209.841999704
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1036.337152,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.434048
},
"latency": {
"unit": "s",
"count": 75,
"total": 0.5190366387367248,
"mean": 0.006920488516489664,
"stdev": 0.0003551621802529844,
"p50": 0.006958911895751953,
"p90": 0.007351878261566163,
"p95": 0.007419568061828613,
"p99": 0.007744576463699344,
"values": [
0.007594175815582275,
0.007197760105133057,
0.0070421438217163086,
0.007070975780487061,
0.006885503768920899,
0.007000864028930664,
0.007117216110229492,
0.007108223915100098,
0.007101376056671143,
0.0071732158660888674,
0.0071142082214355465,
0.007113152027130127,
0.007196127891540527,
0.007098400115966797,
0.0068635520935058595,
0.006945024013519287,
0.007124639987945556,
0.006994112014770508,
0.007175936222076416,
0.007288671970367431,
0.007073376178741455,
0.007087071895599365,
0.0074067521095275875,
0.007062335968017578,
0.0069409279823303225,
0.006958911895751953,
0.007148159980773926,
0.006971807956695557,
0.006996575832366943,
0.00716099214553833,
0.007332831859588623,
0.007173567771911621,
0.008172639846801758,
0.007452799797058106,
0.007383200168609619,
0.0074494719505310055,
0.007016895771026611,
0.006955967903137207,
0.006450175762176514,
0.006830431938171387,
0.007067168235778808,
0.0071550397872924805,
0.007364575862884522,
0.007137792110443115,
0.007366432189941406,
0.006699423789978027,
0.006928703784942627,
0.0068781118392944336,
0.006768352031707764,
0.006756735801696777,
0.0063990077972412105,
0.006418496131896973,
0.006422719955444336,
0.00641318416595459,
0.006396704196929932,
0.006372064113616943,
0.006386720180511475,
0.006414656162261963,
0.00640553617477417,
0.006406847953796387,
0.006520671844482422,
0.006446432113647461,
0.006539584159851074,
0.006284671783447266,
0.006344287872314453,
0.0064083199501037596,
0.006760831832885742,
0.006753664016723632,
0.006723040103912353,
0.006740992069244385,
0.006947648048400879,
0.006889664173126221,
0.0067309122085571285,
0.0068427839279174806,
0.006714687824249267
]
},
"throughput": {
"unit": "tokens/s",
"value": 144.49846966977384
},
"energy": {
"unit": "kWh",
"cpu": 7.468883350241389e-08,
"ram": 4.0832826122811826e-08,
"gpu": 1.458934533358569e-07,
"total": 2.6141511296108257e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3825333.542016265
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 75,
"total": 0.4847584953308104,
"mean": 0.006463446604410807,
"stdev": 0.0003094975089890076,
"p50": 0.0064839677810668945,
"p90": 0.006813696098327637,
"p95": 0.006931968021392823,
"p99": 0.007215759305953982,
"values": [
0.007065599918365479,
0.0066713600158691405,
0.006542335987091064,
0.006565887928009034,
0.006403071880340576,
0.006505472183227539,
0.006562816143035889,
0.006603775978088379,
0.006605823993682861,
0.006660096168518067,
0.006603775978088379,
0.006595583915710449,
0.006691840171813965,
0.006590400218963623,
0.006392831802368164,
0.00643993616104126,
0.006648831844329834,
0.006472703933715821,
0.0066416959762573245,
0.006737887859344482,
0.006574079990386963,
0.006573056221008301,
0.00689356803894043,
0.006534143924713135,
0.006464511871337891,
0.006460415840148926,
0.006647808074951172,
0.006478847980499268,
0.0064767999649047855,
0.006663167953491211,
0.0067645440101623535,
0.006658048152923584,
0.007643136024475097,
0.006927360057830811,
0.006881279945373535,
0.00694271993637085,
0.0065812478065490725,
0.006463488101959228,
0.0060631041526794435,
0.006401023864746094,
0.006584320068359375,
0.006675456047058105,
0.006846464157104492,
0.006699007987976074,
0.006969344139099121,
0.006309887886047363,
0.006489088058471679,
0.0064839677810668945,
0.006375423908233643,
0.00633241605758667,
0.006011903762817383,
0.006042623996734619,
0.006043647766113281,
0.006034431934356689,
0.006013951778411865,
0.005993472099304199,
0.006005792140960693,
0.006013951778411865,
0.006004735946655273,
0.006030335903167725,
0.006128640174865723,
0.006053887844085694,
0.006158336162567139,
0.005911551952362061,
0.005963776111602783,
0.005989376068115234,
0.006360064029693604,
0.006348800182342529,
0.006318079948425293,
0.006315008163452148,
0.006557695865631104,
0.006498303890228272,
0.0063272957801818845,
0.006452223777770996,
0.0063211522102355954
]
},
"throughput": {
"unit": "tokens/s",
"value": 154.7162158526345
},
"energy": null,
"efficiency": null
}
}
}