IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
303471b verified
raw
history blame
8.41 kB
{
"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",
"numactl": false,
"numactl_kwargs": {},
"start_method": "spawn"
},
"environment": {
"cpu": " AMD EPYC 7763 64-Core Processor",
"cpu_count": 4,
"cpu_ram_mb": 16757.3504,
"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": "079be6729111d58c45eb7f4a60e984bbf86c5a81",
"transformers_version": "4.41.0",
"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": 945.188864,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.6507624449999696,
"mean": 0.046483031785712114,
"stdev": 0.0025931696521897915,
"p50": 0.04685008900000298,
"p90": 0.04941318399999375,
"p95": 0.04946861384999579,
"p99": 0.04947727237000095,
"values": [
0.04929188599999179,
0.04929744599999708,
0.04859576000001198,
0.049479437000002235,
0.047691623000019945,
0.04946278599999232,
0.048718202999992855,
0.044902570999994396,
0.04432747100000256,
0.04600855499998602,
0.04369961399999056,
0.043183895999987953,
0.043099161000014874,
0.043004035999985035
]
},
"throughput": {
"unit": "tokens/s",
"value": 43.026453378085314
},
"energy": {
"unit": "kWh",
"cpu": 1.7221060352049015e-06,
"ram": 7.196881503093039e-08,
"gpu": 0.0,
"total": 1.7940748502358317e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1114780.690302358
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 945.188864,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.40974110100006556,
"mean": 0.029267221500004683,
"stdev": 0.0019924853510575693,
"p50": 0.028559895500009702,
"p90": 0.03147580570001196,
"p95": 0.031805798900010986,
"p99": 0.032286317380001886,
"values": [
0.031460481999999956,
0.030927090999995244,
0.03144768699999645,
0.031058118000004242,
0.032406446999999616,
0.031482373000017105,
0.026856685000012703,
0.02789954200000011,
0.028339708000004293,
0.0276303569999925,
0.02878008300001511,
0.027664181000005783,
0.026879301000008127,
0.026909046000014314
]
},
"throughput": {
"unit": "tokens/s",
"value": 34.167917169719715
},
"energy": {
"unit": "kWh",
"cpu": 1.0228716156141002e-06,
"ram": 4.274881207725351e-08,
"gpu": 0.0,
"total": 1.0656204276913535e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 938420.4487957134
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 13,
"total": 0.9801761749999969,
"mean": 0.07539816730769207,
"stdev": 0.004209267217350242,
"p50": 0.07353072899999802,
"p90": 0.0804910333999885,
"p95": 0.08072025119998898,
"p99": 0.0809270198399895,
"values": [
0.08026339099998836,
0.08009171700001616,
0.08054794399998855,
0.0801051040000118,
0.08097871199998963,
0.07573630000001685,
0.07281929399999854,
0.07264711199999851,
0.07353072899999802,
0.0726410000000044,
0.07087467799999558,
0.07000869899999884,
0.06993149499999163
]
},
"throughput": {
"unit": "tokens/s",
"value": 13.262921841576125
},
"energy": null,
"efficiency": null
}
}
}