IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
2b8383b verified
raw
history blame
13.9 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",
"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.2.0",
"optimum_benchmark_commit": "b92e3e6e00670fa1351d9aef1be896254e5f33e0",
"transformers_version": "4.40.2",
"transformers_commit": null,
"accelerate_version": "0.30.1",
"accelerate_commit": null,
"diffusers_version": "0.27.2",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.3",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1049.14944,
"max_global_vram": 2098.778112,
"max_process_vram": 282270.982144,
"max_reserved": 725.614592,
"max_allocated": 512.832512
},
"latency": {
"unit": "s",
"count": 61,
"total": 0.5016442236900329,
"mean": 0.008223675798197261,
"stdev": 0.0006479633189001098,
"p50": 0.007984176158905029,
"p90": 0.008609457015991211,
"p95": 0.008970897674560547,
"p99": 0.011303063011169432,
"values": [
0.010914582252502442,
0.008457938194274902,
0.008540976524353027,
0.008102896690368653,
0.008090896606445313,
0.008054736137390137,
0.008012175559997559,
0.008216176986694336,
0.008007216453552245,
0.007960976123809815,
0.007958577156066895,
0.008029135704040527,
0.008061615943908692,
0.008208816528320312,
0.011885784149169921,
0.008341776847839355,
0.008208017349243164,
0.008145296096801757,
0.007984176158905029,
0.007975057125091552,
0.007960657119750976,
0.00820833683013916,
0.008102577209472656,
0.008609457015991211,
0.008791698455810546,
0.008515056610107421,
0.008096976280212402,
0.007999055862426758,
0.007975376129150391,
0.007965775966644287,
0.007996655941009522,
0.00795249605178833,
0.007970736026763917,
0.00797217607498169,
0.007971537113189698,
0.007954736232757569,
0.008406577110290527,
0.007950097084045411,
0.007956975936889649,
0.007950096130371094,
0.007936336994171143,
0.00794209623336792,
0.007960495948791503,
0.007954256057739258,
0.007930575847625732,
0.008071376800537109,
0.007912015914916993,
0.007912015914916993,
0.007927855968475343,
0.00794081687927246,
0.007935855865478516,
0.007928176879882813,
0.007935215950012207,
0.007912975788116455,
0.007948495864868165,
0.007930416107177735,
0.0079443359375,
0.00876209831237793,
0.008970897674560547,
0.008446417808532714,
0.008977619171142578
]
},
"throughput": {
"unit": "tokens/s",
"value": 243.20024877907107
},
"energy": null,
"efficiency": null
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1049.14944,
"max_global_vram": 2098.765824,
"max_process_vram": 303833.305088,
"max_reserved": 725.614592,
"max_allocated": 513.056256
},
"latency": {
"unit": "s",
"count": 61,
"total": 0.5027290153503416,
"mean": 0.00824145926803839,
"stdev": 0.0003059698376399067,
"p50": 0.008095376014709473,
"p90": 0.008694896697998047,
"p95": 0.008986578941345216,
"p99": 0.00922280216217041,
"values": [
0.008694896697998047,
0.008560176849365234,
0.008180336952209473,
0.008155535697937012,
0.008119536399841308,
0.008138257026672363,
0.008131377220153809,
0.008103216171264648,
0.008092657089233398,
0.008079376220703125,
0.008082896232604981,
0.008113456726074218,
0.008260976791381837,
0.008142095565795898,
0.009005139350891114,
0.008095215797424317,
0.008208816528320312,
0.008152016639709473,
0.008074895858764648,
0.008210736274719238,
0.00803985595703125,
0.008236495971679688,
0.008845937728881837,
0.008582098007202148,
0.00856625747680664,
0.008606738090515136,
0.008986578941345216,
0.008268016815185547,
0.008054896354675293,
0.008054097175598145,
0.008078736305236816,
0.008095376014709473,
0.008056177139282226,
0.00808737564086914,
0.008051216125488281,
0.008207217216491699,
0.008067376136779785,
0.008242735862731934,
0.008072497367858887,
0.008048975944519043,
0.008145456314086913,
0.008057456970214844,
0.008056176185607911,
0.008064976692199707,
0.008071375846862792,
0.008074895858764648,
0.00805169677734375,
0.008021615982055664,
0.008024656295776367,
0.008043536186218262,
0.008046575546264648,
0.008072336196899415,
0.008081296920776367,
0.008047056198120118,
0.008174416542053222,
0.008070256233215332,
0.008070576667785644,
0.009458579063415528,
0.008458577156066894,
0.0087216157913208,
0.009065617561340332
]
},
"throughput": {
"unit": "tokens/s",
"value": 121.33773491766797
},
"energy": null,
"efficiency": null
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 60,
"total": 0.9865445623397827,
"mean": 0.016442409372329714,
"stdev": 0.0007657577295712467,
"p50": 0.016158432960510255,
"p90": 0.017191827774047853,
"p95": 0.017531596279144284,
"p99": 0.019284931068420403,
"values": [
0.017026754379272462,
0.016804033279418946,
0.016304832458496094,
0.01625507354736328,
0.016226593017578124,
0.016187713623046874,
0.01635347366333008,
0.01612259292602539,
0.01607075309753418,
0.01606915283203125,
0.01616083335876465,
0.01635171318054199,
0.01638835334777832,
0.020827241897583008,
0.016574272155761717,
0.016448354721069335,
0.016331073760986328,
0.016087392807006835,
0.016211233139038085,
0.016030752182006835,
0.016467073440551757,
0.016949153900146483,
0.01721443557739258,
0.01739011573791504,
0.017189315795898438,
0.01711891555786133,
0.01629507255554199,
0.01605891227722168,
0.016045473098754884,
0.016100353240966796,
0.016068832397460937,
0.01606803321838379,
0.016084192276000976,
0.016056352615356446,
0.016187713623046874,
0.016501474380493163,
0.016222591400146483,
0.016056352615356446,
0.016024513244628905,
0.016108991622924805,
0.016031232833862305,
0.016041791915893555,
0.016050912857055663,
0.01602707290649414,
0.01617363166809082,
0.015993633270263673,
0.015953951835632325,
0.015986753463745118,
0.01600819206237793,
0.01601347351074219,
0.016028671264648436,
0.016043392181396485,
0.015982751846313478,
0.01615603256225586,
0.016028352737426758,
0.016038272857666017,
0.01821315574645996,
0.01750291633605957,
0.017153793334960938,
0.018076515197753905
]
},
"throughput": {
"unit": "tokens/s",
"value": 60.818337346767485
},
"energy": null,
"efficiency": null
}
}
}