IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
f3a94b5
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", | |
"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", | |
"start_method": "spawn" | |
}, | |
"environment": { | |
"cpu": " AMD EPYC 7763 64-Core Processor", | |
"cpu_count": 4, | |
"cpu_ram_mb": 16757.354496, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-6.5.0-1021-azure-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.14", | |
"optimum_benchmark_version": "0.2.1", | |
"optimum_benchmark_commit": "eee61510ab9c7b38bd9807712fa942e2f5ba255c", | |
"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": "1.0.3", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 946.23744, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.6247380229999635, | |
"mean": 0.044624144499997395, | |
"stdev": 0.0016402672051428968, | |
"p50": 0.044231582000008984, | |
"p90": 0.04473934469998255, | |
"p95": 0.04679859764998895, | |
"p99": 0.04970904752999985, | |
"values": [ | |
0.050436660000002576, | |
0.04414278500001956, | |
0.04450531999998475, | |
0.04446495199999845, | |
0.04399746100000357, | |
0.04426325200000747, | |
0.04483964099998161, | |
0.0441999120000105, | |
0.04391604599999255, | |
0.043811779999998635, | |
0.0443330939999953, | |
0.04395183399998359, | |
0.04360586100000319, | |
0.044269424999981766 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 44.818786385924255 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.71949016875115e-06, | |
"ram": 7.18599193592942e-08, | |
"gpu": 0.0, | |
"total": 1.7913500881104441e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1116476.345564392 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 946.23744, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.38339510600005156, | |
"mean": 0.027385364714289397, | |
"stdev": 0.0008429822368610816, | |
"p50": 0.027193816000007587, | |
"p90": 0.02856532549999713, | |
"p95": 0.029108513399997094, | |
"p99": 0.02933801227999453, | |
"values": [ | |
0.02895404299999882, | |
0.026951100999980326, | |
0.027552197000005663, | |
0.027658317999993187, | |
0.027315552000004573, | |
0.02760267200000044, | |
0.027024159000006875, | |
0.0270720800000106, | |
0.027009413000001814, | |
0.027418234000009534, | |
0.02683309900001518, | |
0.02651868500001342, | |
0.02939538699999389, | |
0.026090166000017234 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 36.51585474332611 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0065921032486324e-06, | |
"ram": 4.2065653425551774e-08, | |
"gpu": 0.0, | |
"total": 1.048657756674185e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 953599.9649413715 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 13, | |
"total": 0.9289998639999908, | |
"mean": 0.07146152799999929, | |
"stdev": 0.0006324581272485751, | |
"p50": 0.07132981199998767, | |
"p90": 0.07212279980000176, | |
"p95": 0.07241363499999239, | |
"p99": 0.07274163339998609, | |
"values": [ | |
0.07113019599998438, | |
0.07205278700001827, | |
0.07214030299999763, | |
0.07134183599998778, | |
0.07182213300001195, | |
0.07189762400000177, | |
0.07132981199998767, | |
0.0709568180000133, | |
0.07120635799998354, | |
0.07121162999999342, | |
0.07049653800001465, | |
0.07282363299998451, | |
0.07059019600001193 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 13.993543490981748 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |