IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
1002ae8
verified
{ | |
"config": { | |
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.3.0+cpu", | |
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", | |
"task": "text-generation", | |
"model": "openai-community/gpt2", | |
"library": "transformers", | |
"device": "cpu", | |
"device_ids": null, | |
"seed": 42, | |
"inter_op_num_threads": null, | |
"intra_op_num_threads": null, | |
"hub_kwargs": { | |
"revision": "main", | |
"force_download": false, | |
"local_files_only": false, | |
"trust_remote_code": false | |
}, | |
"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", | |
"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-1018-azure-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.14", | |
"optimum_benchmark_version": "0.2.0", | |
"optimum_benchmark_commit": "40cdab56663479e2e7275c1c80c2a04578a9eafc", | |
"transformers_version": "4.40.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.30.1", | |
"accelerate_commit": null, | |
"diffusers_version": "0.27.2", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "0.9.16", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 948.854784, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 13, | |
"total": 0.6401660989999982, | |
"mean": 0.04924354607692294, | |
"stdev": 0.0021440113891737817, | |
"p50": 0.049729882000008274, | |
"p90": 0.05126852980000649, | |
"p95": 0.05144384919999538, | |
"p99": 0.05157724263998716, | |
"values": [ | |
0.051332688000002236, | |
0.05101189700002351, | |
0.049090221000000156, | |
0.05016652999998428, | |
0.05063057800001047, | |
0.04754371999999307, | |
0.04859973099999593, | |
0.04889405199998009, | |
0.04873199799999384, | |
0.04986942300001829, | |
0.049729882000008274, | |
0.051610590999985106, | |
0.042954788000002964 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 40.614459342059085 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.6426015231344437e-06, | |
"ram": 6.864565053732008e-08, | |
"gpu": 0.0, | |
"total": 1.7112471736717638e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1168738.2341784497 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 948.854784, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 13, | |
"total": 0.38900748100002147, | |
"mean": 0.029923652384617035, | |
"stdev": 0.0016211185072591183, | |
"p50": 0.030636574999988397, | |
"p90": 0.031217832600020756, | |
"p95": 0.031269527800014886, | |
"p99": 0.03127888636000648, | |
"values": [ | |
0.03126172900002189, | |
0.030636574999988397, | |
0.03099395600000321, | |
0.03128122600000438, | |
0.029306249000001117, | |
0.029724222999988115, | |
0.031042247000016232, | |
0.030328346999993983, | |
0.030649780000004512, | |
0.03087839899998812, | |
0.030180309000002126, | |
0.026071700000017017, | |
0.026652740999992375 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 33.41838045525732 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.346199532349906e-07, | |
"ram": 3.9062220221950386e-08, | |
"gpu": 0.0, | |
"total": 9.73682173456941e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1027029.1757007533 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 12, | |
"total": 0.9469444380000027, | |
"mean": 0.07891203650000023, | |
"stdev": 0.003054696336697735, | |
"p50": 0.07976452249998545, | |
"p90": 0.08141053410000723, | |
"p95": 0.08154644330000878, | |
"p99": 0.08160853346000949, | |
"values": [ | |
0.08162405600000966, | |
0.08011603699998204, | |
0.08148294200000805, | |
0.08000816099999497, | |
0.07728233900002124, | |
0.07960436699997331, | |
0.07925097400001846, | |
0.07940003299998466, | |
0.08075886299999979, | |
0.07992467799999758, | |
0.07787260700001752, | |
0.06961938099999543 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 12.672338015253189 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |