IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
bc26e0c
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": "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": {}, | |
"hub_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, | |
"latency": true, | |
"memory": 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-1022-azure-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.14", | |
"optimum_benchmark_version": "0.3.1", | |
"optimum_benchmark_commit": "f6013cec1a849341c31271831560b1681406c092", | |
"transformers_version": "4.42.3", | |
"transformers_commit": null, | |
"accelerate_version": "0.31.0", | |
"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": { | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 956.227584, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.6582488780000517, | |
"mean": 0.04388325853333678, | |
"stdev": 0.0005722848001915155, | |
"p50": 0.04402305800005024, | |
"p90": 0.04454082060000246, | |
"p95": 0.04463981630000831, | |
"p99": 0.044726320060025276, | |
"values": [ | |
0.04446183900000733, | |
0.04408865099998138, | |
0.04403614199998174, | |
0.04393120600002476, | |
0.04339450999998462, | |
0.04429278200001363, | |
0.04367949399994586, | |
0.044256946000018615, | |
0.044747946000029515, | |
0.043903765000038675, | |
0.044593474999999216, | |
0.04402305800005024, | |
0.042879395999989356, | |
0.043051036999997905, | |
0.04290863099998887 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 45.57546697405483 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.701655998322123e-06, | |
"ram": 7.111419136890617e-08, | |
"gpu": 0.0, | |
"total": 1.7727701896910291e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1128177.8155061228 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 956.227584, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.4052213800000004, | |
"mean": 0.027014758666666694, | |
"stdev": 0.0008578160564061737, | |
"p50": 0.026784146000011333, | |
"p90": 0.028234936800004107, | |
"p95": 0.02882755599998177, | |
"p99": 0.028988791199952856, | |
"values": [ | |
0.02695477600002505, | |
0.026627852999979496, | |
0.026592237000045316, | |
0.02625107799997295, | |
0.026784146000011333, | |
0.027433040999994773, | |
0.02747557200001438, | |
0.027233027000022503, | |
0.026773015999992822, | |
0.02702958499997976, | |
0.028741179999997257, | |
0.02902909999994563, | |
0.026191546999996262, | |
0.026118460000020605, | |
0.025986762000002273 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 37.01680301271365 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0031987196389414e-06, | |
"ram": 4.192712437611589e-08, | |
"gpu": 0.0, | |
"total": 1.0451258440150576e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 956822.5737852795 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.39995003799998585, | |
"mean": 0.026663335866665725, | |
"stdev": 0.0008323215595912398, | |
"p50": 0.026445232000014585, | |
"p90": 0.027784852000013415, | |
"p95": 0.028374437799993758, | |
"p99": 0.02863351955997132, | |
"values": [ | |
0.026620980000018335, | |
0.02628862799997478, | |
0.026259132999996382, | |
0.025917522999975517, | |
0.026445232000014585, | |
0.027089968999973735, | |
0.027108664000024874, | |
0.026893771000004563, | |
0.0264059790000033, | |
0.026651396999966437, | |
0.028235644000005777, | |
0.02869828999996571, | |
0.02586971400000948, | |
0.025789424000038252, | |
0.02567569000001413 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 37.50468452262162 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |