IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
a72530b verified
raw
history blame
9.52 kB
{
"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": "error",
"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-1023-azure-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.14",
"optimum_benchmark_version": "0.3.1",
"optimum_benchmark_commit": "79d3ec77efb824aa9ddc7c6cb7c102910e1d6a65",
"transformers_version": "4.43.1",
"transformers_commit": null,
"accelerate_version": "0.33.0",
"accelerate_commit": null,
"diffusers_version": "0.29.2",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.7",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 1121.042432,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 1,
"total": 4.936982617000012,
"mean": 4.936982617000012,
"stdev": 0.0,
"p50": 4.936982617000012,
"p90": 4.936982617000012,
"p95": 4.936982617000012,
"p99": 4.936982617000012,
"values": [
4.936982617000012
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 6.822013987435236e-05,
"ram": 2.8514227142011347e-06,
"gpu": 0,
"total": 7.107156258855349e-05
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 974.512128,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.6449851859999853,
"mean": 0.04607037042857038,
"stdev": 0.0026675020492795054,
"p50": 0.047381491999999525,
"p90": 0.04860497500001202,
"p95": 0.048803914900000224,
"p99": 0.04899154857999576,
"values": [
0.04777507599999353,
0.04903845699999465,
0.04706360099999074,
0.04818681800003333,
0.04735905500001536,
0.04740392899998369,
0.04820380000001023,
0.04867762300000322,
0.04843546300003254,
0.04195286300000589,
0.04248100499995644,
0.042860426999993706,
0.042477658999985124,
0.043069409999986874
]
},
"throughput": {
"unit": "tokens/s",
"value": 43.41184977231498
},
"energy": {
"unit": "kWh",
"cpu": 1.6821563243865968e-06,
"ram": 7.029964838352497e-08,
"gpu": 0.0,
"total": 1.7524559727701218e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1141255.4900529587
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 975.429632,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.3958192169999961,
"mean": 0.028272801214285437,
"stdev": 0.001637875174370469,
"p50": 0.02892281349997461,
"p90": 0.029832055999975182,
"p95": 0.030295684449995974,
"p99": 0.030766059290036195,
"values": [
0.029468317000009847,
0.03088365300004625,
0.02898259500000222,
0.029246902000011232,
0.028920478999964416,
0.0289251479999848,
0.029979085999968902,
0.029488985999989836,
0.02890974299998561,
0.02595910999997386,
0.0260834930000442,
0.026109082000004946,
0.02698225099999263,
0.02588037200001736
]
},
"throughput": {
"unit": "tokens/s",
"value": 35.36968241741567
},
"energy": {
"unit": "kWh",
"cpu": 1.0023479549973097e-06,
"ram": 4.188948307228204e-08,
"gpu": 0.0,
"total": 1.0442374380695918e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 957636.6097816122
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 14,
"total": 0.3894102689999954,
"mean": 0.027815019214285388,
"stdev": 0.0015732841568136388,
"p50": 0.02843140049998283,
"p90": 0.029307803299980152,
"p95": 0.029771794299981023,
"p99": 0.030245284460003744,
"values": [
0.02893938500000104,
0.030363657000009425,
0.028458340999975462,
0.028729910999970798,
0.028404459999990195,
0.028401856000016323,
0.029453098999965732,
0.028968780000013794,
0.02853339699998969,
0.02558810400000766,
0.02571118500003422,
0.02574228299999959,
0.02658881199999996,
0.025526999000021533
]
},
"throughput": {
"unit": "tokens/s",
"value": 35.95179972000216
},
"energy": null,
"efficiency": null
}
}
}