IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
51f23d0 verified
raw
history blame
16.8 kB
{
"config": {
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.4.0+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.223-212.873.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.33.0",
"accelerate_commit": null,
"diffusers_version": "0.30.2",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.9",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 791.2448,
"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.69351806640625,
"mean": 7.69351806640625,
"stdev": 0.0,
"p50": 7.69351806640625,
"p90": 7.69351806640625,
"p95": 7.69351806640625,
"p99": 7.69351806640625,
"values": [
7.69351806640625
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 9.83060322222171e-07,
"ram": 5.229165323698667e-07,
"gpu": 1.7452791740001517e-06,
"total": 3.2512560285921894e-06
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1226.715136,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.210304
},
"latency": {
"unit": "s",
"count": 70,
"total": 0.49255372905731193,
"mean": 0.007036481843675886,
"stdev": 0.0003487449793973395,
"p50": 0.007071376085281372,
"p90": 0.007459436893463135,
"p95": 0.007632969689369201,
"p99": 0.007816430244445801,
"values": [
0.007539968013763428,
0.007792384147644043,
0.007688992023468018,
0.0076004800796508785,
0.007502463817596436,
0.007238016128540039,
0.007276000022888184,
0.006742464065551758,
0.006759583950042725,
0.006792319774627686,
0.007084896087646484,
0.007037375926971436,
0.007092864036560059,
0.006789984226226807,
0.00694979190826416,
0.0073517441749572756,
0.0073491520881652835,
0.007420032024383545,
0.0070833277702331545,
0.007184991836547852,
0.007263199806213379,
0.00708134412765503,
0.006917888164520263,
0.007869952201843262,
0.007213151931762695,
0.0071023678779602055,
0.007062208175659179,
0.0073614721298217774,
0.0074000959396362306,
0.007344128131866455,
0.006740928173065186,
0.007207295894622803,
0.0074546561241149905,
0.006950047969818116,
0.007092063903808594,
0.006764416217803955,
0.007000895977020263,
0.00717628812789917,
0.007368159770965576,
0.007220863819122314,
0.007200384140014648,
0.006830912113189697,
0.006796000003814698,
0.00706547212600708,
0.007163167953491211,
0.007077280044555664,
0.0069072961807250975,
0.0068570241928100585,
0.006741184234619141,
0.006842624187469482,
0.006744607925415039,
0.007020351886749268,
0.007006624221801758,
0.006887487888336182,
0.006616096019744873,
0.006862143993377686,
0.007659552097320557,
0.007164671897888184,
0.007172063827514648,
0.00649567985534668,
0.006513279914855957,
0.006511199951171875,
0.006551775932312012,
0.0066112961769104,
0.007253312110900879,
0.00657097578048706,
0.006517183780670166,
0.0064759359359741215,
0.006277503967285156,
0.006292384147644043
]
},
"throughput": {
"unit": "tokens/s",
"value": 284.23295112990616
},
"energy": {
"unit": "kWh",
"cpu": 7.771486033950245e-08,
"ram": 4.248977790522518e-08,
"gpu": 1.5242205367320164e-07,
"total": 2.726266919179293e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7336038.837319986
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1245.12256,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.434048
},
"latency": {
"unit": "s",
"count": 70,
"total": 0.5155151662826539,
"mean": 0.0073645023754664845,
"stdev": 0.00037685386611466265,
"p50": 0.007415823936462403,
"p90": 0.007875801420211792,
"p95": 0.007942576050758363,
"p99": 0.00821143925666809,
"values": [
0.007950655937194824,
0.007926591873168945,
0.00787401580810547,
0.007945888042449951,
0.007392767906188965,
0.007474783897399902,
0.007280479907989502,
0.006916895866394043,
0.007312160015106201,
0.00724560022354126,
0.007551392078399658,
0.00748902416229248,
0.007315839767456055,
0.00698140811920166,
0.007620063781738282,
0.0077131838798522945,
0.007768959999084473,
0.007579520225524903,
0.0075486721992492675,
0.00756825590133667,
0.0076282558441162105,
0.007530655860900879,
0.0074898238182067875,
0.007592576026916504,
0.00759660816192627,
0.007382368087768555,
0.007743872165679931,
0.007938528060913086,
0.00816105556488037,
0.007658207893371582,
0.007182208061218262,
0.007891871929168702,
0.0076770238876342775,
0.007165823936462402,
0.007521247863769532,
0.007166079998016358,
0.0071488962173461915,
0.007606207847595215,
0.007555168151855468,
0.007452288150787354,
0.0072839040756225585,
0.007110112190246582,
0.007018784046173096,
0.007590784072875977,
0.007466239929199219,
0.007515583992004395,
0.0071535038948059085,
0.00743887996673584,
0.00692412805557251,
0.007357632160186768,
0.007537280082702637,
0.007050879955291748,
0.007585279941558838,
0.007006879806518555,
0.006993087768554687,
0.007122079849243164,
0.007386271953582764,
0.008323583602905273,
0.0069872641563415525,
0.006901887893676758,
0.007323200225830078,
0.006862720012664795,
0.006790847778320313,
0.0067831997871398925,
0.006899168014526367,
0.006853663921356201,
0.006849376201629639,
0.006829216003417969,
0.006536863803863526,
0.006487936019897461
]
},
"throughput": {
"unit": "tokens/s",
"value": 135.78649975473158
},
"energy": {
"unit": "kWh",
"cpu": 7.311353700578091e-08,
"ram": 3.9980266089730895e-08,
"gpu": 1.4380532817489982e-07,
"total": 2.568991312704116e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3892578.3635578025
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 70,
"total": 0.479341790676117,
"mean": 0.0068477398668016715,
"stdev": 0.00031271224296355925,
"p50": 0.006895615816116333,
"p90": 0.00726026554107666,
"p95": 0.00734822392463684,
"p99": 0.007579197306632996,
"values": [
0.007357439994812012,
0.00729807996749878,
0.007256063938140869,
0.007358463764190673,
0.006860799789428711,
0.006924287796020508,
0.0067573761940002445,
0.006491136074066162,
0.006830080032348633,
0.006743040084838867,
0.00692633581161499,
0.006884352207183838,
0.006820864200592041,
0.0064839677810668945,
0.007001088142395019,
0.007142399787902832,
0.007163904190063477,
0.007008255958557129,
0.006990848064422607,
0.007009280204772949,
0.007087232112884522,
0.007010303974151612,
0.0069283838272094726,
0.0070266880989074704,
0.007020544052124023,
0.006896639823913574,
0.007112703800201416,
0.007336959838867187,
0.007555071830749512,
0.007124991893768311,
0.006648831844329834,
0.007322624206542969,
0.007136256217956543,
0.006670335769653321,
0.007017471790313721,
0.0066416640281677245,
0.006624256134033203,
0.007061503887176514,
0.007046144008636474,
0.006884352207183838,
0.006730751991271973,
0.006609920024871826,
0.00653001594543457,
0.007037951946258545,
0.006921279907226563,
0.006973440170288086,
0.006658048152923584,
0.006894591808319092,
0.006465536117553711,
0.006817791938781738,
0.00698367977142334,
0.006594560146331787,
0.007014400005340577,
0.006586368083953857,
0.006563839912414551,
0.006650879859924317,
0.006906879901885986,
0.007632895946502686,
0.0065485119819641115,
0.006495232105255127,
0.006913023948669434,
0.0064542717933654785,
0.006402048110961914,
0.006377471923828125,
0.006505472183227539,
0.006466559886932373,
0.006459392070770263,
0.006432767868041992,
0.006142975807189942,
0.006110208034515381
]
},
"throughput": {
"unit": "tokens/s",
"value": 146.0335847230516
},
"energy": null,
"efficiency": null
}
}
}