IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
8f87b38
verified
{ | |
"config": { | |
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.3.1+cpu", | |
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", | |
"task": "text-generation", | |
"library": "transformers", | |
"model_type": "gpt2", | |
"model": "openai-community/gpt2", | |
"processor": "openai-community/gpt2", | |
"device": "cpu", | |
"device_ids": null, | |
"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": false, | |
"device_isolation_action": "error", | |
"numactl": false, | |
"numactl_kwargs": {}, | |
"start_method": "spawn" | |
}, | |
"environment": { | |
"cpu": " AMD EPYC 7763 64-Core Processor", | |
"cpu_count": 4, | |
"cpu_ram_mb": 16757.342208, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-6.5.0-1023-azure-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.14", | |
"optimum_benchmark_version": "0.3.1", | |
"optimum_benchmark_commit": "c2e285b1b04b59538000b19edb9ba8775216af9c", | |
"transformers_version": "4.42.4", | |
"transformers_commit": null, | |
"accelerate_version": "0.32.1", | |
"accelerate_commit": null, | |
"diffusers_version": "0.29.2", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.7", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1105.53088, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 4.826897729000052, | |
"mean": 4.826897729000052, | |
"stdev": 0.0, | |
"p50": 4.826897729000052, | |
"p90": 4.826897729000052, | |
"p95": 4.826897729000052, | |
"p99": 4.826897729000052, | |
"values": [ | |
4.826897729000052 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.858394808239406e-05, | |
"ram": 2.866628699965759e-06, | |
"gpu": 0, | |
"total": 7.145057678235982e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 959.000576, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 13, | |
"total": 0.6239135109999552, | |
"mean": 0.04799334699999655, | |
"stdev": 0.0028518285666014613, | |
"p50": 0.049141796999947474, | |
"p90": 0.04994485600002463, | |
"p95": 0.05018801500000336, | |
"p99": 0.05045481819997803, | |
"values": [ | |
0.04986156400002528, | |
0.049200476000009985, | |
0.0488449719999835, | |
0.04605809600002431, | |
0.049141796999947474, | |
0.049278092000008655, | |
0.04985039300004246, | |
0.049965679000024465, | |
0.050521518999971704, | |
0.048930899999959365, | |
0.04876582499991855, | |
0.041974424000045474, | |
0.04151977399999396 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 41.67244264085486 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.6238256737037945e-06, | |
"ram": 6.786258671425571e-08, | |
"gpu": 0.0, | |
"total": 1.6916882604180502e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1182250.9186803482 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 959.91808, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 13, | |
"total": 0.3851852020001161, | |
"mean": 0.02962963092308585, | |
"stdev": 0.0017502645267959557, | |
"p50": 0.03027097500000764, | |
"p90": 0.030689391800046907, | |
"p95": 0.03119611980002901, | |
"p99": 0.03178931435998038, | |
"values": [ | |
0.030323683000005985, | |
0.030479605999971682, | |
0.029998114000022724, | |
0.03027097500000764, | |
0.030701791000069534, | |
0.030639794999956393, | |
0.030493231000036758, | |
0.03193761299996822, | |
0.030253642000047876, | |
0.0298051539999733, | |
0.02853244100003849, | |
0.02592872000002444, | |
0.025820436999993035 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 33.749998526672584 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.982253887035225e-07, | |
"ram": 4.171751199848472e-08, | |
"gpu": 0.0, | |
"total": 1.0399429007020075e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 961591.25594776 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 13, | |
"total": 0.37936013900002763, | |
"mean": 0.02918154915384828, | |
"stdev": 0.0016790253338550573, | |
"p50": 0.0298075069999868, | |
"p90": 0.030236592400001427, | |
"p95": 0.030676778200017907, | |
"p99": 0.03119057644000804, | |
"values": [ | |
0.029834077000032266, | |
0.030000257999972746, | |
0.029565825000076984, | |
0.029776679999940825, | |
0.030248613000026126, | |
0.030188509999902635, | |
0.029988436000053298, | |
0.03131902600000558, | |
0.0298075069999868, | |
0.029329943999982788, | |
0.028186584000081893, | |
0.025605574999985947, | |
0.025509103999979743 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 34.26822869231143 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |