IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
80a98e7
verified
{ | |
"config": { | |
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.4.1+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": null, | |
"numactl": false, | |
"numactl_kwargs": {}, | |
"start_method": "spawn" | |
}, | |
"environment": { | |
"cpu": " AMD EPYC 7763 64-Core Processor", | |
"cpu_count": 4, | |
"cpu_ram_mb": 16766.783488, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-6.8.0-1015-azure-x86_64-with-glibc2.39", | |
"processor": "x86_64", | |
"python_version": "3.10.15", | |
"optimum_benchmark_version": "0.5.0.dev0", | |
"optimum_benchmark_commit": "8bd7430b5a210454e1554b813733827ac7ec1b24", | |
"transformers_version": "4.45.2", | |
"transformers_commit": null, | |
"accelerate_version": "1.0.1", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.3", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.9", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
}, | |
"print_report": true, | |
"log_report": true | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1110.016, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
1.7292733259999977 | |
], | |
"count": 1, | |
"total": 1.7292733259999977, | |
"mean": 1.7292733259999977, | |
"p50": 1.7292733259999977, | |
"p90": 1.7292733259999977, | |
"p95": 1.7292733259999977, | |
"p99": 1.7292733259999977, | |
"stdev": 0, | |
"stdev_": 0 | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 964.919296, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.04501948000000766, | |
0.047382779000002984, | |
0.046812334999998484, | |
0.045631452000009176, | |
0.04779497799998467, | |
0.04717372999999725, | |
0.046959538999999495, | |
0.04702669200000287, | |
0.04181747600000563, | |
0.0433772159999819, | |
0.04225576400000364, | |
0.04178940400001352, | |
0.04560540299999616, | |
0.04098342099999286 | |
], | |
"count": 14, | |
"total": 0.6296296689999963, | |
"mean": 0.04497354778571402, | |
"p50": 0.04561842750000267, | |
"p90": 0.04732006430000126, | |
"p95": 0.04752704864999657, | |
"p99": 0.04774139212998705, | |
"stdev": 0.002344230777024213, | |
"stdev_": 5.212465754744981 | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 44.47058545457483 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.5803893326666414e-06, | |
"ram": 6.6084389566432e-08, | |
"gpu": 0.0, | |
"total": 1.6464737222330734e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1214717.2305230887 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 964.919296, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.02989563400001316, | |
0.029509383999993588, | |
0.02903209299998366, | |
0.028076089999984788, | |
0.029271791000013536, | |
0.028792616000004045, | |
0.02767226599999617, | |
0.025971913999995877, | |
0.026846465999994962, | |
0.025433750000019018, | |
0.02545092200000454, | |
0.025575043999992886, | |
0.025036908999993557, | |
0.02471843499998272 | |
], | |
"count": 14, | |
"total": 0.3812833139999725, | |
"mean": 0.027234522428569465, | |
"p50": 0.027259365999995566, | |
"p90": 0.029438106099999573, | |
"p95": 0.02964457150000044, | |
"p99": 0.029845421500010617, | |
"stdev": 0.001793810652407703, | |
"stdev_": 6.586532431815165 | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 36.71810301145518 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.435761162916518e-07, | |
"ram": 3.94576204612214e-08, | |
"gpu": 0.0, | |
"total": 9.83033736752873e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1017259.0854340049 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.029344946999998456, | |
0.02897485700000857, | |
0.028547678999984782, | |
0.027589772999988327, | |
0.028735250000011092, | |
0.02826010300000803, | |
0.027154830999990054, | |
0.025599760000005745, | |
0.026319763000003604, | |
0.02506910000002449, | |
0.02510053800000378, | |
0.025194623999993837, | |
0.024704068000005464, | |
0.02435802299999068 | |
], | |
"count": 14, | |
"total": 0.3749533160000169, | |
"mean": 0.026782379714286923, | |
"p50": 0.02673729699999683, | |
"p90": 0.028902974900009325, | |
"p95": 0.02910438850000503, | |
"p99": 0.029296835299999772, | |
"stdev": 0.0017190599063488178, | |
"stdev_": 6.418622708988754 | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 37.33798156354848 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |