IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
b1b63b1
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": "warn", | |
"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": "4b53fb2a7497cb7cece4f3351e6ebbf219605bed", | |
"transformers_version": "4.44.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.34.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": 1120.681984, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 4.814066833999988, | |
"mean": 4.814066833999988, | |
"stdev": 0.0, | |
"p50": 4.814066833999988, | |
"p90": 4.814066833999988, | |
"p95": 4.814066833999988, | |
"p99": 4.814066833999988, | |
"values": [ | |
4.814066833999988 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.754577977777767e-05, | |
"ram": 2.8232361212028025e-06, | |
"gpu": 0, | |
"total": 7.036901589898047e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 974.413824, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.6240094599999111, | |
"mean": 0.04160063066666074, | |
"stdev": 0.001987798602231482, | |
"p50": 0.04099312200000327, | |
"p90": 0.0449233361999859, | |
"p95": 0.045716563799987855, | |
"p99": 0.045920715160000326, | |
"values": [ | |
0.04054899499999465, | |
0.04153455200000167, | |
0.04099312200000327, | |
0.04076258799997845, | |
0.0420613949999904, | |
0.04087509900000441, | |
0.04027272399997628, | |
0.04560719699998117, | |
0.045971753000003446, | |
0.04141961600001309, | |
0.04174562000000037, | |
0.04389754499999299, | |
0.03919604499998286, | |
0.0395503940000026, | |
0.03957281499998544 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 48.07619422949818 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.5567237077777793e-06, | |
"ram": 6.505786791805442e-08, | |
"gpu": 0.0, | |
"total": 1.6217815756958338e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1233211.6913721194 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 974.938112, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.3827621280000528, | |
"mean": 0.025517475200003522, | |
"stdev": 0.0010470475682830907, | |
"p50": 0.025426801000008936, | |
"p90": 0.026198246400014114, | |
"p95": 0.027038847300016752, | |
"p99": 0.028394490260012048, | |
"values": [ | |
0.0251334179999958, | |
0.02602670100000637, | |
0.025159596999998257, | |
0.026312610000019276, | |
0.025190906999995377, | |
0.025981826999981195, | |
0.025559922000013557, | |
0.028733401000010872, | |
0.025426801000008936, | |
0.025721235999981218, | |
0.025630634999998847, | |
0.024734587000011743, | |
0.024529491000009784, | |
0.02446230300000707, | |
0.024158692000014526 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 39.188830092401226 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.380536807639245e-07, | |
"ram": 3.9204238274963506e-08, | |
"gpu": 0.0, | |
"total": 9.77257919038888e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1023271.3191861145 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.3773061200000143, | |
"mean": 0.025153741333334288, | |
"stdev": 0.0010326003233919843, | |
"p50": 0.02505859800001531, | |
"p90": 0.025725028600015777, | |
"p95": 0.026544751300011167, | |
"p99": 0.028025257459996167, | |
"values": [ | |
0.024761608000005708, | |
0.025685137000010627, | |
0.02482167099998378, | |
0.025751623000019208, | |
0.024827541999997038, | |
0.025646344999984194, | |
0.02505859800001531, | |
0.02839538399999242, | |
0.025089194999992515, | |
0.025350086999992527, | |
0.025299730999989833, | |
0.024411038000010876, | |
0.024220258000013928, | |
0.02414634800001636, | |
0.023841554999989967 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 39.75551735020739 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |