IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
4c24072 verified
raw
history blame
14.1 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_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": 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": "b6683a24439f2dd9ea7e05cec40bf36c11a71f7a",
"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": 901.455872,
"max_global_vram": 1296.498688,
"max_process_vram": 44711.108608,
"max_reserved": 725.614592,
"max_allocated": 666.338304
},
"latency": {
"unit": "s",
"count": 1,
"total": 7.19574365234375,
"mean": 7.19574365234375,
"stdev": 0.0,
"p50": 7.19574365234375,
"p90": 7.19574365234375,
"p95": 7.19574365234375,
"p99": 7.19574365234375,
"values": [
7.19574365234375
]
},
"throughput": null,
"energy": null,
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1055.932416,
"max_global_vram": 1390.886912,
"max_process_vram": 304539.365376,
"max_reserved": 725.614592,
"max_allocated": 513.035264
},
"latency": {
"unit": "s",
"count": 55,
"total": 0.5135284385681151,
"mean": 0.009336880701238457,
"stdev": 0.00023934690544006083,
"p50": 0.009318061828613281,
"p90": 0.00970670108795166,
"p95": 0.009817436981201171,
"p99": 0.009902860984802246,
"values": [
0.009807021141052245,
0.009915821075439453,
0.009742220878601075,
0.009769101142883301,
0.009344301223754882,
0.009353582382202148,
0.009523341178894043,
0.009355181694030762,
0.009351661682128906,
0.009290061950683593,
0.009389741897583008,
0.009255182266235352,
0.009280781745910644,
0.009364781379699707,
0.009248621940612793,
0.009377100944519042,
0.009385421752929687,
0.009399182319641113,
0.009385102272033692,
0.009381741523742675,
0.009415021896362305,
0.009841740608215332,
0.009474382400512696,
0.009891820907592773,
0.00961422061920166,
0.00951742172241211,
0.009653421401977539,
0.00944414234161377,
0.009416622161865234,
0.009318061828613281,
0.009212942123413085,
0.009296781539916992,
0.009227981567382812,
0.009256462097167968,
0.009601421356201172,
0.009390541076660156,
0.009200942039489747,
0.009171502113342285,
0.009147022247314453,
0.009202701568603516,
0.009118382453918456,
0.00914302158355713,
0.009137742042541504,
0.009243501663208007,
0.009164942741394042,
0.009299821853637695,
0.009063342094421386,
0.009018701553344726,
0.009288142204284668,
0.008954543113708496,
0.00895566177368164,
0.009050703048706055,
0.008982221603393554,
0.008969263076782226,
0.008923341751098633
]
},
"throughput": {
"unit": "tokens/s",
"value": 214.20430055775665
},
"energy": null,
"efficiency": null
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1055.932416,
"max_global_vram": 1392.267264,
"max_process_vram": 307244.118016,
"max_reserved": 725.614592,
"max_allocated": 513.259008
},
"latency": {
"unit": "s",
"count": 55,
"total": 0.4966081600189208,
"mean": 0.00902923927307129,
"stdev": 0.0001978149942290726,
"p50": 0.008965103149414063,
"p90": 0.009324046325683594,
"p95": 0.009383997631072998,
"p99": 0.009515533046722414,
"values": [
0.009455181121826172,
0.0093409423828125,
0.00940718173980713,
0.009159502983093261,
0.009061423301696778,
0.009219982147216798,
0.009192941665649414,
0.008915183067321777,
0.008931502342224121,
0.009249582290649414,
0.008944622039794922,
0.008872463226318359,
0.008950222969055175,
0.008871982574462891,
0.008996623039245605,
0.009202383041381835,
0.008965103149414063,
0.009021902084350586,
0.008998381614685058,
0.009189902305603027,
0.00928254222869873,
0.009298702239990235,
0.00958638095855713,
0.009374061584472656,
0.009147822380065918,
0.00920414161682129,
0.009113262176513672,
0.00901374340057373,
0.009019022941589355,
0.008942221641540527,
0.00893790340423584,
0.008978382110595703,
0.008945902824401856,
0.00887630271911621,
0.009341422080993653,
0.009167503356933594,
0.008979822158813476,
0.008900623321533203,
0.008922223091125489,
0.008873422622680665,
0.008884943008422852,
0.008818062782287597,
0.008871342658996582,
0.008953581809997559,
0.0088823823928833,
0.008923023223876954,
0.008823022842407227,
0.008889263153076171,
0.009103181838989258,
0.008729582786560058,
0.008713264465332032,
0.008810382843017578,
0.008780941963195801,
0.008755823135375977,
0.008816943168640137
]
},
"throughput": {
"unit": "tokens/s",
"value": 110.75130138398146
},
"energy": null,
"efficiency": null
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 55,
"total": 0.4588635921478272,
"mean": 0.008342974402687766,
"stdev": 0.00017561923166965862,
"p50": 0.008283503532409668,
"p90": 0.008586415100097656,
"p95": 0.008652943134307861,
"p99": 0.008747375144958497,
"values": [
0.008690703392028808,
0.008641423225402832,
0.00867982292175293,
0.008431983947753905,
0.008346544265747071,
0.008515342712402344,
0.00847662353515625,
0.008271344184875488,
0.008278383255004882,
0.00856622314453125,
0.008283503532409668,
0.008256624221801758,
0.008262063980102539,
0.008274224281311035,
0.008295023918151855,
0.008510704040527345,
0.008303024291992188,
0.008368303298950195,
0.008320143699645996,
0.008469103813171387,
0.008541583061218262,
0.008572783470153809,
0.008813902854919434,
0.008611502647399903,
0.008457263946533204,
0.008477903366088868,
0.008461263656616211,
0.008337583541870117,
0.008381263732910156,
0.008282543182373047,
0.008272624015808106,
0.008300144195556641,
0.008235343933105469,
0.008258864402770997,
0.008595502853393555,
0.008507984161376953,
0.008274703979492188,
0.00824126434326172,
0.008258864402770997,
0.00820734405517578,
0.008213104248046875,
0.008185104370117187,
0.008213583946228026,
0.008225263595581055,
0.008231823921203613,
0.008218064308166503,
0.008177103996276856,
0.008113744735717774,
0.008440784454345703,
0.008080623626708984,
0.008068944931030273,
0.008150064468383789,
0.008069905281066894,
0.008050543785095215,
0.008093585014343261
]
},
"throughput": {
"unit": "tokens/s",
"value": 119.86132903366463
},
"energy": null,
"efficiency": null
}
}
}