IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
2267136 verified
raw
history blame
16.2 kB
{
"config": {
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.5.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": 2,
"sequence_length": 16
},
"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.248768,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-5.10.228-219.884.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.5.0.dev0",
"optimum_benchmark_commit": null,
"transformers_version": "4.46.3",
"transformers_commit": null,
"accelerate_version": "1.1.1",
"accelerate_commit": null,
"diffusers_version": "0.31.0",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.11",
"timm_commit": null,
"peft_version": "0.13.2",
"peft_commit": null
},
"print_report": true,
"log_report": true
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 818.561024,
"max_global_vram": 1362.624512,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 666.338304
},
"latency": {
"unit": "s",
"values": [
0.054438911437988284
],
"count": 1,
"total": 0.054438911437988284,
"mean": 0.054438911437988284,
"p50": 0.054438911437988284,
"p90": 0.054438911437988284,
"p95": 0.054438911437988284,
"p99": 0.054438911437988284,
"stdev": 0,
"stdev_": 0
},
"throughput": null,
"energy": null,
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1284.247552,
"max_global_vram": 1379.401728,
"max_process_vram": 0.0,
"max_reserved": 731.906048,
"max_allocated": 538.394112
},
"latency": {
"unit": "s",
"values": [
0.00800326442718506,
0.00793878412246704,
0.008172800064086914,
0.008093600273132323,
0.008190943717956542,
0.008331071853637696,
0.00825823974609375,
0.008044095993041992,
0.008300095558166505,
0.008193663597106934,
0.008020256042480469,
0.008176480293273926,
0.008091648101806641,
0.008327456474304199,
0.008073984146118164,
0.008304160118103027,
0.008103360176086425,
0.008213472366333009,
0.008233023643493651,
0.008317312240600587,
0.008355008125305177,
0.008195263862609863,
0.007983168125152589,
0.008206656455993652,
0.008028032302856446,
0.008011263847351074,
0.007722527980804444,
0.007979904174804688,
0.008065279960632324,
0.008177375793457032,
0.00912713623046875,
0.009266688346862792,
0.007946239948272706,
0.007602560043334961,
0.007724031925201416,
0.00727452802658081,
0.0075450558662414555,
0.007552735805511475,
0.007274464130401611,
0.007276735782623291,
0.007297887802124024,
0.0073190398216247555,
0.007260287761688232,
0.007250016212463379,
0.007282656192779541,
0.007238495826721192,
0.007655104160308838,
0.007475264072418213,
0.007502655982971191,
0.007505055904388428,
0.00734335994720459,
0.007498559951782227,
0.007501855850219726,
0.007243584156036377,
0.007245120048522949,
0.007254528045654297,
0.007226880073547363,
0.007611616134643555,
0.007314080238342285,
0.007317887783050537,
0.007290592193603515,
0.007268064022064209,
0.007252607822418213,
0.007219039916992188,
0.007243391990661621
],
"count": 65,
"total": 0.5063200016021729,
"mean": 0.007789538486187274,
"p50": 0.007724031925201416,
"p90": 0.008302534294128418,
"p95": 0.008330348777770996,
"p99": 0.009177374992370604,
"stdev": 0.00047260450961426914,
"stdev_": 6.067169582027365
},
"throughput": {
"unit": "tokens/s",
"value": 4108.073932331639
},
"energy": {
"unit": "kWh",
"cpu": 9.04826711354963e-08,
"ram": 4.9437135024305936e-08,
"gpu": 1.9223933954198358e-07,
"total": 3.3215914570178585e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 96339361.45997244
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1284.247552,
"max_global_vram": 1379.401728,
"max_process_vram": 0.0,
"max_reserved": 731.906048,
"max_allocated": 538.394624
},
"latency": {
"unit": "s",
"values": [
0.007555488109588623,
0.007935840129852295,
0.007919936180114747,
0.007874335765838623,
0.008057920455932618,
0.008057472229003906,
0.007956543922424316,
0.007899807929992677,
0.008029888153076172,
0.007956223964691162,
0.008185407638549805,
0.007884479999542237,
0.007861216068267823,
0.008086912155151367,
0.007806687831878662,
0.007941120147705078,
0.007839327812194824,
0.008044992446899414,
0.008124064445495606,
0.008079839706420898,
0.008003104209899902,
0.00802188777923584,
0.007957376003265381,
0.007727839946746826,
0.007555456161499024,
0.007926496028900146,
0.007547008037567139,
0.0076900157928466795,
0.007881855964660645,
0.0079967999458313,
0.008991135597229003,
0.008840288162231445,
0.007415904045104981,
0.00757040023803711,
0.007316991806030273,
0.007491871833801269,
0.0073919677734375,
0.007480800151824951,
0.007114463806152343,
0.007094880104064941,
0.00718617582321167,
0.007087744235992431,
0.00706547212600708,
0.007040256023406982,
0.0070653119087219236,
0.007767072200775146,
0.007371903896331787,
0.007324992179870605,
0.007358431816101074,
0.007438432216644287,
0.007322080135345459,
0.007325888156890869,
0.007322207927703857,
0.007035744190216064,
0.007132415771484375,
0.007071968078613281,
0.007105247974395752,
0.007411903858184814,
0.007174111843109131,
0.007116352081298828,
0.007099743843078613,
0.007157504081726074,
0.0070754561424255374,
0.007057727813720703,
0.0070945281982421875
],
"count": 65,
"total": 0.4943227210044862,
"mean": 0.007604964938530554,
"p50": 0.007555456161499024,
"p90": 0.008057741165161133,
"p95": 0.008116633987426758,
"p99": 0.008894593238830566,
"stdev": 0.00043758660584998895,
"stdev_": 5.753959543363001
},
"throughput": {
"unit": "tokens/s",
"value": 262.9860908190385
},
"energy": {
"unit": "kWh",
"cpu": 7.911202643395338e-08,
"ram": 4.32345141737319e-08,
"gpu": 1.543561758294523e-07,
"total": 2.7670271643713755e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7227973.854945396
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"values": [
0.00709119987487793,
0.007460864067077637,
0.0074527359008789065,
0.0074065918922424315,
0.00757862377166748,
0.007532544136047363,
0.007485439777374267,
0.007411712169647216,
0.007557119846343994,
0.007478271961212158,
0.007716864109039307,
0.007419904232025146,
0.007377920150756836,
0.007612415790557861,
0.007334911823272705,
0.007453695774078369,
0.007368703842163086,
0.007570432186126709,
0.00764415979385376,
0.00758681583404541,
0.007514111995697022,
0.007527423858642578,
0.007461887836456299,
0.007282688140869141,
0.007132160186767578,
0.007485439777374267,
0.007145440101623535,
0.007265279769897461,
0.007415808200836181,
0.007523327827453613,
0.008500224113464355,
0.008349696159362792,
0.007007232189178467,
0.007171072006225586,
0.0069283838272094726,
0.007104512214660645,
0.007009280204772949,
0.007088128089904785,
0.006748159885406494,
0.006723584175109864,
0.006818784236907959,
0.006725632190704346,
0.0067041277885437015,
0.006677472114562989,
0.006700032234191895,
0.007354368209838867,
0.006969344139099121,
0.006949888229370117,
0.006974463939666748,
0.007064576148986816,
0.006948863983154297,
0.006951935768127441,
0.006946784019470215,
0.006673408031463623,
0.0067573761940002445,
0.006703135967254639,
0.00674508810043335,
0.0070256638526916505,
0.006774784088134766,
0.006750207901000976,
0.006731776237487793,
0.006794271945953369,
0.0067051520347595215,
0.006673408031463623,
0.0067338237762451176
],
"count": 65,
"total": 0.4667791366577146,
"mean": 0.0071812174870417664,
"p50": 0.007132160186767578,
"p90": 0.007575347137451172,
"p95": 0.00763781099319458,
"p99": 0.008403886222839354,
"stdev": 0.00039224775104136243,
"stdev_": 5.462134404774101
},
"throughput": {
"unit": "tokens/s",
"value": 278.5043070494556
},
"energy": null,
"efficiency": null
}
}
}