IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
48858e5
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.7712, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-6.8.0-1014-azure-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.15", | |
"optimum_benchmark_version": "0.5.0.dev0", | |
"optimum_benchmark_commit": "d58bb2582b872c25ab476fece19d4fa78e190673", | |
"transformers_version": "4.45.2", | |
"transformers_commit": null, | |
"accelerate_version": "1.0.0", | |
"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": 1109.07392, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
1.7240251780000335 | |
], | |
"count": 1, | |
"total": 1.7240251780000335, | |
"mean": 1.7240251780000335, | |
"p50": 1.7240251780000335, | |
"p90": 1.7240251780000335, | |
"p95": 1.7240251780000335, | |
"p99": 1.7240251780000335, | |
"stdev": 0, | |
"stdev_": 0 | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 963.846144, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.044325733999983186, | |
0.046656127000005654, | |
0.04602376299999378, | |
0.04482350600000018, | |
0.04703615800002581, | |
0.04651230700000042, | |
0.04715224500000659, | |
0.047393817999989096, | |
0.04669404699995994, | |
0.046344292000014775, | |
0.04505232399998249, | |
0.046444330000042555, | |
0.04550921999998536, | |
0.04164678899996943 | |
], | |
"count": 14, | |
"total": 0.6416146599999593, | |
"mean": 0.04582961857142566, | |
"p50": 0.046394311000028665, | |
"p90": 0.04711741890001235, | |
"p95": 0.04723679555000047, | |
"p99": 0.04736241350999137, | |
"stdev": 0.0014566473654861242, | |
"stdev_": 3.1783973135537513 | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 43.63990062197422 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.5686112648888362e-06, | |
"ram": 6.559172118757639e-08, | |
"gpu": 0.0, | |
"total": 1.6342029860764127e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1223838.1749637087 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 963.846144, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.029395216000011715, | |
0.028904386000021987, | |
0.028949842000031367, | |
0.028062862000012956, | |
0.0296402039999748, | |
0.028636885999958395, | |
0.03286818700001959, | |
0.028652415000010478, | |
0.02902867000000242, | |
0.029044880000014928, | |
0.02906714099998453, | |
0.029056611999976667, | |
0.02869999700004655, | |
0.024351965000050768 | |
], | |
"count": 14, | |
"total": 0.40435926300011715, | |
"mean": 0.02888280450000837, | |
"p50": 0.028989256000016894, | |
"p90": 0.029566707599985875, | |
"p95": 0.030769998049990477, | |
"p99": 0.03244854921001376, | |
"stdev": 0.0016514922537984003, | |
"stdev_": 5.717908223898139 | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 34.62267661714465 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.325137187917918e-07, | |
"ram": 3.8994803545862905e-08, | |
"gpu": 0.0, | |
"total": 9.715085223376544e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1029327.0486127997 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.02890178199999127, | |
0.028432864000023983, | |
0.02848377899999832, | |
0.027586831000007805, | |
0.02910801799998808, | |
0.02814412300000413, | |
0.03236446400001114, | |
0.0281719550000048, | |
0.02853302200003327, | |
0.028574991000027694, | |
0.028604325000003428, | |
0.02854023499997993, | |
0.028211693000002924, | |
0.02403777700004639 | |
], | |
"count": 14, | |
"total": 0.39769585900012316, | |
"mean": 0.02840684707143737, | |
"p50": 0.028508400500015796, | |
"p90": 0.029046147199989037, | |
"p95": 0.03024777409999615, | |
"p99": 0.03194112602000814, | |
"stdev": 0.0016131246023041014, | |
"stdev_": 5.6786471171806765 | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 35.202780424212726 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |