IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
a47f479
verified
{ | |
"config": { | |
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.4.0+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-1025-azure-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.14", | |
"optimum_benchmark_version": "0.4.0", | |
"optimum_benchmark_commit": "f6787fbf3518a3e33d2022686e1f8d21fe5324b9", | |
"transformers_version": "4.44.1", | |
"transformers_commit": null, | |
"accelerate_version": "0.33.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.0", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.8", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1121.15712, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 4.734666693000008, | |
"mean": 4.734666693000008, | |
"stdev": 0.0, | |
"p50": 4.734666693000008, | |
"p90": 4.734666693000008, | |
"p95": 4.734666693000008, | |
"p99": 4.734666693000008, | |
"values": [ | |
4.734666693000008 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.784874090555475e-05, | |
"ram": 2.835884455553067e-06, | |
"gpu": 0, | |
"total": 7.068462536110782e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 974.880768, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.634163834000077, | |
"mean": 0.04227758893333847, | |
"stdev": 0.0030018941433212426, | |
"p50": 0.04453280600000653, | |
"p90": 0.04503787600000919, | |
"p95": 0.045087483800006115, | |
"p99": 0.04509788076000291, | |
"values": [ | |
0.04508191400000783, | |
0.04460223500001348, | |
0.04457219899998677, | |
0.04497181900001124, | |
0.04471494700001699, | |
0.04459009300001071, | |
0.04510048000000211, | |
0.04453280600000653, | |
0.04415137000000868, | |
0.03831651000001557, | |
0.038420255000005454, | |
0.03819227699997896, | |
0.03996912900001348, | |
0.03847515699999349, | |
0.038472643000005746 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 47.30638739010203 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.520959409188015e-06, | |
"ram": 6.356375152411238e-08, | |
"gpu": 0.0, | |
"total": 1.5845231607121275e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1262209.3823489118 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 975.405056, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.38864379599999666, | |
"mean": 0.025909586399999778, | |
"stdev": 0.0018458156409554838, | |
"p50": 0.027067810000005466, | |
"p90": 0.02772491940001487, | |
"p95": 0.027761865000016428, | |
"p99": 0.02780365220001215, | |
"values": [ | |
0.027699404999992794, | |
0.027067810000005466, | |
0.02773947900001872, | |
0.027703080000009095, | |
0.02754186900000377, | |
0.027456628999999566, | |
0.027814099000011083, | |
0.027421712999995407, | |
0.025823393999985456, | |
0.02367380699999444, | |
0.02369493599999828, | |
0.023443444999998064, | |
0.024344215999974494, | |
0.02365710500001228, | |
0.023562808999997742 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 38.595753114762516 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.076137783936846e-07, | |
"ram": 3.7927888745133624e-08, | |
"gpu": 0.0, | |
"total": 9.455416671388181e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1057594.8525102774 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.38270864499992285, | |
"mean": 0.025513909666661522, | |
"stdev": 0.0017647557235853102, | |
"p50": 0.026579183999984934, | |
"p90": 0.02727392439999221, | |
"p95": 0.027295772900004067, | |
"p99": 0.027320526580012938, | |
"values": [ | |
0.027261042999981555, | |
0.026579183999984934, | |
0.027282511999999315, | |
0.02722120699999664, | |
0.02708609399999773, | |
0.026940850999977783, | |
0.027326715000015156, | |
0.026933767999992142, | |
0.025526867999985825, | |
0.023371138999976893, | |
0.023389884000010852, | |
0.02313884400001598, | |
0.024038652999990973, | |
0.023353205000006483, | |
0.023258677999990596 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 39.19430667682729 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |