IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
bbf6c4f
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.4.0+rocm6.1", | |
"_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": "4", | |
"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.256576, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.15.0-101-generic-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.12", | |
"gpu": [ | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]" | |
], | |
"gpu_count": 8, | |
"gpu_vram_mb": 549621596160, | |
"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": 1390.829568, | |
"max_global_vram": 11.235328, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 8.22094140625, | |
"mean": 8.22094140625, | |
"stdev": 0.0, | |
"p50": 8.22094140625, | |
"p90": 8.22094140625, | |
"p95": 8.22094140625, | |
"p99": 8.22094140625, | |
"values": [ | |
8.22094140625 | |
] | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1549.688832, | |
"max_global_vram": 11.313152, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.035264 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 68, | |
"total": 0.49553706455230706, | |
"mean": 0.007287309772828047, | |
"stdev": 0.00048251007369055226, | |
"p50": 0.007224531412124634, | |
"p90": 0.007837137031555176, | |
"p95": 0.007865032362937927, | |
"p99": 0.008659140043258663, | |
"values": [ | |
0.0076231689453125, | |
0.007722049236297607, | |
0.007752768993377686, | |
0.007567649841308594, | |
0.007392611026763916, | |
0.007398050785064697, | |
0.007232131958007812, | |
0.0072382111549377445, | |
0.007193091869354248, | |
0.007287810802459717, | |
0.007236771106719971, | |
0.007181571960449219, | |
0.007361249923706055, | |
0.010250839233398437, | |
0.007129571914672852, | |
0.006957732200622559, | |
0.006948451995849609, | |
0.00694877290725708, | |
0.0069665322303771975, | |
0.007337410926818847, | |
0.007640610218048096, | |
0.007216930866241455, | |
0.007793889045715332, | |
0.007871808052062989, | |
0.007875168800354004, | |
0.007852448940277099, | |
0.007872929096221924, | |
0.007842848777770996, | |
0.007852287769317626, | |
0.0073569297790527345, | |
0.007340771198272705, | |
0.007376130104064941, | |
0.007303970813751221, | |
0.007365410804748535, | |
0.0073714909553527835, | |
0.006981892108917236, | |
0.006958052158355713, | |
0.006933093070983887, | |
0.006957411766052246, | |
0.006947971820831299, | |
0.006971171855926514, | |
0.0069386930465698245, | |
0.006941252231597901, | |
0.006946372985839844, | |
0.00696749210357666, | |
0.006954372882843018, | |
0.006930212020874024, | |
0.006954691886901856, | |
0.006963811874389649, | |
0.006961091995239258, | |
0.006953571796417236, | |
0.006949572086334228, | |
0.006928932189941406, | |
0.006966052055358887, | |
0.0069438118934631345, | |
0.006944931983947754, | |
0.006950692176818847, | |
0.006937733173370361, | |
0.006912932872772217, | |
0.006937732219696045, | |
0.006968293190002441, | |
0.007394529819488525, | |
0.007792609214782715, | |
0.007834689140319824, | |
0.007292770862579346, | |
0.0073287711143493655, | |
0.007235490798950196, | |
0.007296289920806885 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 274.44970261279883 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1549.688832, | |
"max_global_vram": 11.227136, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.259008 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 68, | |
"total": 0.5122058053016664, | |
"mean": 0.007532438313259798, | |
"stdev": 0.0003473079547560935, | |
"p50": 0.007487650394439697, | |
"p90": 0.008147343635559082, | |
"p95": 0.008212639999389648, | |
"p99": 0.008298906126022338, | |
"values": [ | |
0.00809596824645996, | |
0.008278367042541503, | |
0.008006208419799805, | |
0.007732288837432861, | |
0.007648128986358643, | |
0.0075842890739440914, | |
0.0075646090507507325, | |
0.00749613094329834, | |
0.007502689838409424, | |
0.007727488994598388, | |
0.007467329978942871, | |
0.007516930103302002, | |
0.007495329856872558, | |
0.00751629114151001, | |
0.007296771049499512, | |
0.007294691085815429, | |
0.007274850845336914, | |
0.007248451232910156, | |
0.007265251159667968, | |
0.007572128772735596, | |
0.007794848918914795, | |
0.0077759690284729, | |
0.008340606689453125, | |
0.008205568313598633, | |
0.008234046936035156, | |
0.008169406890869141, | |
0.008112128257751466, | |
0.008176128387451171, | |
0.007915809154510497, | |
0.007535170078277588, | |
0.007638050079345703, | |
0.007687650203704834, | |
0.007542530059814453, | |
0.007606369972229004, | |
0.00725917100906372, | |
0.007354850769042969, | |
0.007227490901947022, | |
0.00723405122756958, | |
0.007401250839233399, | |
0.007235331058502197, | |
0.007228930950164795, | |
0.0072134108543396, | |
0.007187972068786621, | |
0.007204131126403808, | |
0.007209092140197754, | |
0.007204131126403808, | |
0.007189251899719238, | |
0.007225251197814942, | |
0.00745357084274292, | |
0.0072007708549499515, | |
0.0072018918991088865, | |
0.007234210968017578, | |
0.007234531879425049, | |
0.007212770938873291, | |
0.007209412097930908, | |
0.007274051189422607, | |
0.007171492099761963, | |
0.007165891170501709, | |
0.007184290885925293, | |
0.007243010997772217, | |
0.007211650848388672, | |
0.008216447830200195, | |
0.008050368309020997, | |
0.008137887954711914, | |
0.007529890060424805, | |
0.007504128932952881, | |
0.007479970932006836, | |
0.0075967698097229005 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 132.75913567584624 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 68, | |
"total": 0.4787848172187804, | |
"mean": 0.007040953194393831, | |
"stdev": 0.0003247866010366141, | |
"p50": 0.006992612600326538, | |
"p90": 0.007652097845077515, | |
"p95": 0.007683826065063477, | |
"p99": 0.007762156023979187, | |
"values": [ | |
0.007439011096954345, | |
0.007649409770965576, | |
0.0073734111785888675, | |
0.007169732093811035, | |
0.007111170768737793, | |
0.0070662121772766115, | |
0.0070092520713806155, | |
0.006997413158416748, | |
0.006979971885681152, | |
0.007191330909729004, | |
0.006954691886901856, | |
0.006995011806488037, | |
0.0069927721023559574, | |
0.007020771980285645, | |
0.0067937331199646, | |
0.006825413227081299, | |
0.0068158130645751954, | |
0.006778532981872558, | |
0.006754212856292725, | |
0.007110051155090332, | |
0.007302530765533447, | |
0.007271650791168213, | |
0.007826368808746337, | |
0.00768572998046875, | |
0.007730528831481933, | |
0.007663488864898682, | |
0.007609889984130859, | |
0.007680290222167969, | |
0.00741149091720581, | |
0.007059971809387207, | |
0.00718061113357544, | |
0.0071946921348571774, | |
0.007033411979675293, | |
0.007137890815734863, | |
0.006783332824707031, | |
0.006882692813873291, | |
0.006770853042602539, | |
0.006765253067016601, | |
0.0069271731376647945, | |
0.006764772891998291, | |
0.006754693031311035, | |
0.006749732971191406, | |
0.006719653129577637, | |
0.0067398128509521486, | |
0.006743173122406006, | |
0.0067398128509521486, | |
0.0067121338844299315, | |
0.006766852855682373, | |
0.006992453098297119, | |
0.00672877311706543, | |
0.006732773780822754, | |
0.006767813205718994, | |
0.0067665338516235355, | |
0.006741252899169922, | |
0.006743012905120849, | |
0.006811812877655029, | |
0.006718052864074707, | |
0.006714373111724853, | |
0.006727812767028808, | |
0.00677629280090332, | |
0.0067466931343078615, | |
0.00772668981552124, | |
0.007546689987182617, | |
0.007658370018005371, | |
0.007097731113433838, | |
0.007014852046966552, | |
0.007000452995300293, | |
0.007135972023010254 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 142.02622463052631 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |