IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
9a44217 verified
raw
history blame
17.6 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.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.34.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.072768,
"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.36196826171875,
"mean": 7.36196826171875,
"stdev": 0.0,
"p50": 7.36196826171875,
"p90": 7.36196826171875,
"p95": 7.36196826171875,
"p99": 7.36196826171875,
"values": [
7.36196826171875
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 1.0165625527780345e-06,
"ram": 5.41433303116786e-07,
"gpu": 1.6605568840001843e-06,
"total": 3.2185527398950053e-06
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1191.952384,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.210304
},
"latency": {
"unit": "s",
"count": 76,
"total": 0.4922538595199585,
"mean": 0.006477024467367876,
"stdev": 0.00032774161098666224,
"p50": 0.006309391975402832,
"p90": 0.006774208068847656,
"p95": 0.0072180480957031255,
"p99": 0.007596280217170716,
"values": [
0.007860832214355469,
0.007508096218109131,
0.00748963212966919,
0.007494080066680908,
0.006888895988464355,
0.006349952220916748,
0.0063277120590209965,
0.006295936107635498,
0.0063656001091003415,
0.006361504077911377,
0.006302175998687744,
0.0062501120567321775,
0.006231488227844239,
0.006340288162231446,
0.006288832187652588,
0.0062849922180175785,
0.006297088146209716,
0.006305247783660889,
0.006290783882141113,
0.0062865281105041505,
0.006280128002166748,
0.006295392036437988,
0.006315616130828858,
0.00624396800994873,
0.006284543991088867,
0.006298431873321533,
0.006299647808074951,
0.0062623038291931155,
0.006584447860717773,
0.006949440002441406,
0.006778560161590576,
0.006702688217163086,
0.006616543769836425,
0.0066797761917114255,
0.00628380823135376,
0.0062638077735900875,
0.006292479991912842,
0.006319104194641113,
0.006284832000732422,
0.0062709121704101565,
0.0062800002098083495,
0.006338399887084961,
0.006295392036437988,
0.0062813439369201664,
0.006297887802124024,
0.006310431957244873,
0.00633190393447876,
0.006312032222747802,
0.0062921919822692875,
0.006246623992919922,
0.006285183906555176,
0.006713247776031494,
0.006596159934997558,
0.006629151821136475,
0.006615744113922119,
0.006680768013000488,
0.006643904209136963,
0.006598432064056397,
0.006645664215087891,
0.006576608180999756,
0.006601856231689453,
0.007127520084381104,
0.006769855976104736,
0.006272607803344726,
0.0064167361259460445,
0.006308351993560791,
0.006279232025146485,
0.006289343833923339,
0.006253280162811279,
0.006273920059204101,
0.006270080089569092,
0.006288832187652588,
0.006247392177581787,
0.006513440132141114,
0.0066462721824646,
0.006597856044769287
]
},
"throughput": {
"unit": "tokens/s",
"value": 308.7837648408262
},
"energy": {
"unit": "kWh",
"cpu": 7.892425722957996e-08,
"ram": 4.300645887905692e-08,
"gpu": 1.5013624961589237e-07,
"total": 2.7206696572452925e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7351131.346188577
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1210.298368,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.434048
},
"latency": {
"unit": "s",
"count": 76,
"total": 0.5169356474876403,
"mean": 0.006801784835363689,
"stdev": 0.0003572991233096181,
"p50": 0.006617839813232422,
"p90": 0.007117200136184693,
"p95": 0.0075078001022338865,
"p99": 0.008178991794586182,
"values": [
0.008266592025756836,
0.007898240089416505,
0.007736927986145019,
0.008149791717529296,
0.006643775939941406,
0.006586463928222657,
0.0066208958625793455,
0.006611487865447998,
0.007431424140930175,
0.006620351791381836,
0.0066518402099609375,
0.006522560119628906,
0.006491231918334961,
0.006599552154541015,
0.006596127986907959,
0.006582240104675293,
0.0065641279220581055,
0.0065714879035949705,
0.006591072082519531,
0.006588064193725586,
0.0066072001457214355,
0.006690048217773438,
0.006606880187988281,
0.006604351997375488,
0.006694272041320801,
0.006563615798950195,
0.006605055809020996,
0.006615327835083008,
0.007038527965545654,
0.0071224641799926755,
0.0070024957656860355,
0.0070910401344299314,
0.006992415904998779,
0.0069209918975830075,
0.006681536197662354,
0.006594175815582275,
0.006589407920837402,
0.006559743881225586,
0.006579296112060547,
0.006602367877960205,
0.00662169599533081,
0.006547359943389892,
0.00653868818283081,
0.006565440177917481,
0.006612703800201416,
0.0065402560234069824,
0.006565951824188233,
0.0067066879272460935,
0.006613088130950928,
0.006591968059539795,
0.00686521577835083,
0.006963679790496826,
0.0069552321434021,
0.006938079833984375,
0.00699235200881958,
0.006949056148529053,
0.006975200176239014,
0.006952928066253662,
0.006947008132934571,
0.00694217586517334,
0.007210495948791504,
0.0072821760177612304,
0.006953216075897216,
0.006591008186340332,
0.0065972480773925785,
0.006580575942993164,
0.006555424213409424,
0.006632287979125976,
0.006597407817840576,
0.006565279960632324,
0.006573184013366699,
0.00659830379486084,
0.006657343864440918,
0.007111936092376709,
0.006995423793792725,
0.0069640960693359375
]
},
"throughput": {
"unit": "tokens/s",
"value": 147.0202342774535
},
"energy": {
"unit": "kWh",
"cpu": 7.503042186493293e-08,
"ram": 4.116874495469756e-08,
"gpu": 1.469166575789161e-07,
"total": 2.6311582439854656e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3800607.592819202
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 76,
"total": 0.4863630719184875,
"mean": 0.006399514104190625,
"stdev": 0.0003208190283690651,
"p50": 0.006235104084014892,
"p90": 0.006692864179611206,
"p95": 0.007076608061790467,
"p99": 0.007602943897247315,
"values": [
0.007709695816040039,
0.007349247932434082,
0.007201791763305664,
0.0075673599243164065,
0.006255616188049316,
0.006200319766998291,
0.006239264011383056,
0.0062269439697265625,
0.0070348801612854,
0.006239232063293457,
0.006269951820373535,
0.0061439361572265625,
0.006116352081298828,
0.006194176197052002,
0.006213632106781006,
0.006200319766998291,
0.00617571210861206,
0.006188032150268555,
0.006212607860565185,
0.006207488059997559,
0.006228991985321045,
0.006309887886047363,
0.006213632106781006,
0.0062259202003479,
0.006312992095947266,
0.006184959888458252,
0.006196224212646485,
0.006231040000915527,
0.006631423950195312,
0.006687744140625,
0.006603775978088379,
0.006675456047058105,
0.00659660816192627,
0.006525951862335205,
0.006301695823669433,
0.006213632106781006,
0.006211584091186524,
0.006180863857269287,
0.006168575763702393,
0.006221824169158936,
0.006239168167114258,
0.006168575763702393,
0.006161375999450684,
0.006189055919647217,
0.006228991985321045,
0.006162432193756104,
0.006187007904052734,
0.006308864116668702,
0.006223872184753418,
0.006212607860565185,
0.006465536117553711,
0.006554624080657959,
0.0065474557876586915,
0.006500351905822754,
0.006593535900115967,
0.006543360233306885,
0.0065771517753601075,
0.006543360233306885,
0.00653926420211792,
0.006529024124145508,
0.0067338237762451176,
0.006849535942077637,
0.0065177597999572755,
0.006200319766998291,
0.006217728137969971,
0.006189055919647217,
0.006161407947540283,
0.006250495910644531,
0.006216767787933349,
0.0061859841346740725,
0.006182911872863769,
0.00618393611907959,
0.006271999835968017,
0.0066979842185974124,
0.00659660816192627,
0.006561791896820069
]
},
"throughput": {
"unit": "tokens/s",
"value": 156.2618635913569
},
"energy": null,
"efficiency": null
}
}
}