IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
27f28ef verified
raw
history blame
16.8 kB
{
"config": {
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.4.1+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.224-212.876.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.34.2",
"accelerate_commit": null,
"diffusers_version": "0.30.3",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.9",
"timm_commit": null,
"peft_version": "0.12.0",
"peft_commit": null
}
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 800.497664,
"max_global_vram": 1362.624512,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 666.338304
},
"latency": {
"unit": "s",
"count": 1,
"total": 7.961060546875,
"mean": 7.961060546875,
"stdev": 0.0,
"p50": 7.961060546875,
"p90": 7.961060546875,
"p95": 7.961060546875,
"p99": 7.961060546875,
"values": [
7.961060546875
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 2.3875351318767774e-06,
"ram": 1.2896682086669487e-06,
"gpu": 3.3938916040310296e-06,
"total": 7.071094944574756e-06
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1201.369088,
"max_global_vram": 1373.110272,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.210304
},
"latency": {
"unit": "s",
"count": 70,
"total": 0.48839110565185534,
"mean": 0.006977015795026506,
"stdev": 0.0003864108733845388,
"p50": 0.007013375997543335,
"p90": 0.007321404600143433,
"p95": 0.007520132780075073,
"p99": 0.007963174448013307,
"values": [
0.007443424224853516,
0.007314015865325927,
0.007699679851531982,
0.007256288051605225,
0.0073149437904357914,
0.007098112106323242,
0.007074944019317627,
0.007140160083770752,
0.007284704208374023,
0.007306528091430664,
0.007147456169128418,
0.007379551887512207,
0.007263264179229736,
0.007166687965393066,
0.006998400211334229,
0.007017183780670166,
0.0070698561668396,
0.006886144161224365,
0.006992576122283936,
0.006951231956481934,
0.006940383911132813,
0.007085567951202393,
0.007180031776428223,
0.007095776081085205,
0.006942336082458496,
0.007136960029602051,
0.007143360137939453,
0.0072674880027771,
0.007128352165222168,
0.007238495826721192,
0.007048736095428467,
0.007004096031188965,
0.0070095682144165035,
0.007198016166687012,
0.0077658557891845705,
0.007180480003356934,
0.007161824226379394,
0.006967872142791748,
0.0072362561225891115,
0.007223648071289062,
0.007070208072662353,
0.00689846420288086,
0.006921472072601319,
0.006521952152252197,
0.0068533759117126464,
0.00840236759185791,
0.0075597758293151854,
0.007471680164337158,
0.006891744136810303,
0.006939968109130859,
0.006842624187469482,
0.006467775821685791,
0.006438111782073975,
0.006380864143371582,
0.006655712127685547,
0.0064783039093017575,
0.006378176212310791,
0.006417888164520264,
0.0064033279418945314,
0.006454527854919434,
0.006419583797454834,
0.006612927913665772,
0.00658515214920044,
0.006619935989379883,
0.006641151905059814,
0.0066778879165649415,
0.0064321599006652835,
0.006401823997497559,
0.006386943817138672,
0.00640496015548706
]
},
"throughput": {
"unit": "tokens/s",
"value": 286.6555069899196
},
"energy": {
"unit": "kWh",
"cpu": 8.044853397197106e-08,
"ram": 4.395235737799086e-08,
"gpu": 1.5637399897296236e-07,
"total": 2.807748903229243e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7123144.087777093
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1219.715072,
"max_global_vram": 1373.110272,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.434048
},
"latency": {
"unit": "s",
"count": 70,
"total": 0.5138167042732238,
"mean": 0.007340238632474625,
"stdev": 0.00041784606382492504,
"p50": 0.007420847892761231,
"p90": 0.007684067344665527,
"p95": 0.007897926259040832,
"p99": 0.008679135122299194,
"values": [
0.007670911788940429,
0.007605120182037354,
0.007885183811187744,
0.007506559848785401,
0.007561376094818115,
0.007386943817138672,
0.007502016067504883,
0.007644000053405761,
0.00784284782409668,
0.007489215850830078,
0.007546815872192383,
0.007680960178375244,
0.00759065580368042,
0.007402048110961914,
0.007401951789855957,
0.0074404158592224125,
0.007420383930206299,
0.007342656135559082,
0.007320672035217285,
0.007374688148498535,
0.007393727779388428,
0.007668384075164795,
0.007481887817382813,
0.007445119857788086,
0.007426464080810547,
0.007471072196960449,
0.007641024112701416,
0.007452383995056152,
0.007459296226501465,
0.007529952049255371,
0.007315743923187256,
0.007553567886352539,
0.007667551994323731,
0.007628416061401367,
0.007929215908050537,
0.007432735919952392,
0.00790835189819336,
0.007712031841278076,
0.007534751892089844,
0.007397600173950195,
0.007421311855316162,
0.007197311878204346,
0.0069417920112609865,
0.00689788818359375,
0.008588992118835449,
0.008879776000976563,
0.007444479942321777,
0.00756390380859375,
0.007133535861968994,
0.00714188814163208,
0.007037087917327881,
0.006689119815826416,
0.0067406721115112304,
0.006907648086547852,
0.006963136196136474,
0.00679088020324707,
0.006739488124847412,
0.006716224193572998,
0.006731840133666992,
0.006964928150177002,
0.007016287803649902,
0.006971072196960449,
0.00693174409866333,
0.006972032070159912,
0.0069333438873291015,
0.0069435200691223145,
0.006721792221069336,
0.006708352088928222,
0.006718016147613525,
0.0067439360618591305
]
},
"throughput": {
"unit": "tokens/s",
"value": 136.2353528365969
},
"energy": {
"unit": "kWh",
"cpu": 7.511521229357675e-08,
"ram": 4.083478409065898e-08,
"gpu": 1.786479140661786e-07,
"total": 2.9459791045041405e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3394457.2059967727
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 70,
"total": 0.47974912118911733,
"mean": 0.006853558874130249,
"stdev": 0.000364528933698284,
"p50": 0.0069027838706970214,
"p90": 0.0071444479942321774,
"p95": 0.007369830465316773,
"p99": 0.008099645414352418,
"values": [
0.007103392124176025,
0.007070720195770264,
0.007346176147460938,
0.006958079814910889,
0.007038976192474365,
0.006867968082427979,
0.006979584217071533,
0.007098368167877197,
0.007294976234436036,
0.006967360019683838,
0.006986752033233643,
0.007106560230255127,
0.007067647933959961,
0.006891583919525147,
0.006858751773834228,
0.006924287796020508,
0.006923264026641846,
0.006830080032348633,
0.0067870721817016606,
0.006852608203887939,
0.006870016098022461,
0.007139328002929687,
0.006936575889587402,
0.006938623905181885,
0.0069027838706970214,
0.006956031799316406,
0.007111680030822754,
0.0069550080299377445,
0.006929408073425293,
0.0069918718338012695,
0.006818816184997558,
0.007037951946258545,
0.007139328002929687,
0.007107583999633789,
0.007395328044891358,
0.006907904148101806,
0.00738918399810791,
0.0071905279159545895,
0.007024640083312988,
0.00690176010131836,
0.0069212160110473635,
0.0067051520347595215,
0.00653004789352417,
0.0064880638122558594,
0.008019968032836914,
0.008276991844177246,
0.0069027838706970214,
0.007037951946258545,
0.006696959972381592,
0.006673408031463623,
0.006614016056060791,
0.006300672054290772,
0.006352896213531494,
0.006505472183227539,
0.006558720111846924,
0.006392831802368164,
0.0063498239517211915,
0.006323200225830078,
0.006317088127136231,
0.006557695865631104,
0.006603775978088379,
0.0065710082054138185,
0.006518784046173095,
0.006563839912414551,
0.006536191940307618,
0.0065443840026855465,
0.006296576023101807,
0.006318079948425293,
0.006329279899597168,
0.006343679904937744
]
},
"throughput": {
"unit": "tokens/s",
"value": 145.90959505354874
},
"energy": null,
"efficiency": null
}
}
}