IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
27957f7 verified
raw
history blame
14.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": "f6013cec1a849341c31271831560b1681406c092",
"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": 1048.838144,
"max_global_vram": 1107.533824,
"max_process_vram": 239401.455616,
"max_reserved": 725.614592,
"max_allocated": 513.035776
},
"latency": {
"unit": "s",
"count": 64,
"total": 0.5099820666313171,
"mean": 0.007968469791114331,
"stdev": 0.000376819886796667,
"p50": 0.007767498016357422,
"p90": 0.008367271995544434,
"p95": 0.00860427985191345,
"p99": 0.009210290441513058,
"values": [
0.010027172088623047,
0.0083641357421875,
0.008368616104125976,
0.00810125732421875,
0.008147497177124024,
0.008023337364196777,
0.008042057037353516,
0.008081096649169922,
0.008055976867675781,
0.008032297134399414,
0.008203495979309082,
0.00813405704498291,
0.00823133659362793,
0.008253096580505371,
0.008078536987304687,
0.008496295928955079,
0.007965736865997315,
0.007782698154449463,
0.007724458217620849,
0.007732937812805176,
0.007680937767028808,
0.007737257957458496,
0.00774957799911499,
0.007744137763977051,
0.008099817276000976,
0.0077780580520629885,
0.007722537994384765,
0.007725897789001465,
0.007756298065185547,
0.007747178077697754,
0.007719977855682373,
0.0077713379859924315,
0.0077474980354309084,
0.007739337921142578,
0.007763658046722412,
0.007744617938995361,
0.007744778156280518,
0.007750536918640137,
0.0077284579277038575,
0.00782941722869873,
0.007726858139038086,
0.0077431778907775875,
0.008060457229614258,
0.008726215362548828,
0.008730534553527833,
0.008623335838317871,
0.008170536041259766,
0.008184617042541503,
0.008185895919799804,
0.00784173822402954,
0.007691658020019531,
0.0077151780128479,
0.007704617977142334,
0.007709097862243652,
0.007747017860412598,
0.00769229793548584,
0.007702057838439942,
0.007729738235473633,
0.008371496200561523,
0.007944618225097656,
0.007702538013458252,
0.007737577915191651,
0.0076978979110717775,
0.007715497970581055
]
},
"throughput": {
"unit": "tokens/s",
"value": 250.98921780819288
},
"energy": null,
"efficiency": null
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1048.838144,
"max_global_vram": 1107.525632,
"max_process_vram": 229709.119488,
"max_reserved": 725.614592,
"max_allocated": 513.25952
},
"latency": {
"unit": "s",
"count": 64,
"total": 0.4916833987236023,
"mean": 0.0076825531050562865,
"stdev": 0.0005149375214576609,
"p50": 0.007513419151306152,
"p90": 0.007983688974380494,
"p95": 0.008262440013885498,
"p99": 0.009639612302780145,
"values": [
0.008759015083312989,
0.008034056663513183,
0.008515656471252442,
0.007684778213500976,
0.007691977977752685,
0.007642377853393554,
0.007693577766418457,
0.007911656856536865,
0.007655018806457519,
0.0076623778343200685,
0.007744617938995361,
0.007739337921142578,
0.007751817226409912,
0.007660937786102295,
0.011139007568359375,
0.0077314977645874024,
0.007446538925170898,
0.0074708590507507324,
0.007401258945465088,
0.007467978954315185,
0.00741965913772583,
0.007431018829345703,
0.007440618991851807,
0.007450378894805908,
0.007441099166870117,
0.007835017204284669,
0.007369578838348389,
0.007466379165649414,
0.007463819026947022,
0.0074606180191040036,
0.007426858901977539,
0.007506059169769287,
0.00742349910736084,
0.007529738903045654,
0.007453897953033447,
0.007479659080505371,
0.007491498947143555,
0.007456139087677002,
0.00756157922744751,
0.007472299098968506,
0.007389739036560059,
0.00766829776763916,
0.00826589584350586,
0.007883977890014649,
0.008242856979370118,
0.007788938045501709,
0.007917578220367432,
0.007989737033843994,
0.007712297916412354,
0.007520779132843018,
0.007464297771453857,
0.007539019107818603,
0.007386858940124512,
0.007420138835906982,
0.0074441380500793455,
0.007457098960876465,
0.0074022188186645506,
0.007426538944244385,
0.007969576835632325,
0.007577416896820069,
0.00739997911453247,
0.007393898963928222,
0.007537578105926514,
0.007500779151916504
]
},
"throughput": {
"unit": "tokens/s",
"value": 130.16506183886293
},
"energy": null,
"efficiency": null
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 64,
"total": 0.45666494798660273,
"mean": 0.007135389812290669,
"stdev": 0.0005050906248383302,
"p50": 0.006953900098800659,
"p90": 0.007436442756652832,
"p95": 0.00772667396068573,
"p99": 0.00905042334556579,
"values": [
0.008194215774536133,
0.007440618991851807,
0.007965736865997315,
0.007127179145812988,
0.007146378993988037,
0.00710014009475708,
0.007128139972686767,
0.007347178936004639,
0.007081739902496338,
0.00713149881362915,
0.007186220169067383,
0.007196619987487793,
0.007169579029083252,
0.0071177401542663575,
0.01050829029083252,
0.007176300048828125,
0.006906381130218506,
0.006931660175323487,
0.006899499893188476,
0.006907501220703125,
0.006892621040344238,
0.006882060050964356,
0.006889100074768066,
0.006875501155853271,
0.0068942208290100095,
0.007285899162292481,
0.006907021045684815,
0.00690238094329834,
0.006934060096740723,
0.006928939819335938,
0.006891500949859619,
0.006930220127105713,
0.006899341106414795,
0.006985899925231934,
0.006928299903869629,
0.006920781135559082,
0.006934539794921875,
0.006896941184997558,
0.007030539989471436,
0.006923181056976318,
0.006887340068817139,
0.007125899791717529,
0.0077266979217529294,
0.0073638191223144535,
0.007726538181304932,
0.00732797908782959,
0.0073667001724243165,
0.007426698207855225,
0.007157259941101074,
0.006965260028839112,
0.006908939838409424,
0.006989261150360107,
0.006861100196838379,
0.006835820198059082,
0.006890699863433838,
0.006891981124877929,
0.006885420799255371,
0.006858860969543457,
0.007443338871002197,
0.006991340160369873,
0.006856300830841064,
0.006863501071929932,
0.006942540168762207,
0.00697598123550415
]
},
"throughput": {
"unit": "tokens/s",
"value": 140.1465128474839
},
"energy": null,
"efficiency": null
}
}
}