IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
e76cff5 verified
raw
history blame
8.45 kB
{
"config": {
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.3.1+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.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": "bf00581ca84403c7aba5a4a8f646e796f7b72599",
"transformers_version": "4.42.3",
"transformers_commit": null,
"accelerate_version": "0.32.1",
"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": {
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 962.048,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.6365873449998389,
"mean": 0.045470524642845636,
"stdev": 0.002563014198834841,
"p50": 0.04655033499997785,
"p90": 0.047761842700009535,
"p95": 0.04795784630002231,
"p99": 0.04809651886002371,
"values": [
0.04786450900002137,
0.04751678799999581,
0.04592823799998769,
0.048131187000024056,
0.04752228799998193,
0.04712417399997548,
0.04635588599995799,
0.04626427599998806,
0.04701781599999322,
0.04674478399999771,
0.04172550699996691,
0.04161751499998445,
0.04167481100000714,
0.04109956599995712
]
},
"throughput": {
"unit": "tokens/s",
"value": 43.984537581417186
},
"energy": {
"unit": "kWh",
"cpu": 1.606097804175483e-06,
"ram": 6.712110951034447e-08,
"gpu": 0.0,
"total": 1.6732189136858274e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1195300.856117104
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 962.048,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.3936966590001134,
"mean": 0.02812118992857953,
"stdev": 0.0017452619961330588,
"p50": 0.02884964049997052,
"p90": 0.029497711600026833,
"p95": 0.029891198600029156,
"p99": 0.03047370052002293,
"values": [
0.029069496999966304,
0.029189061000010952,
0.029499130000033347,
0.028629783999974734,
0.029494402000011632,
0.030619326000021374,
0.029092160000004696,
0.028553692000002684,
0.02924239000003581,
0.028308092999964174,
0.025472690000015064,
0.025248892000035994,
0.025246077000019795,
0.02603146500001685
]
},
"throughput": {
"unit": "tokens/s",
"value": 35.56037289103834
},
"energy": {
"unit": "kWh",
"cpu": 9.982922695301194e-07,
"ram": 4.171832787837956e-08,
"gpu": 0.0,
"total": 1.0400105974085e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 961528.6637384287
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 14,
"total": 0.3872701830000551,
"mean": 0.027662155928575367,
"stdev": 0.0016662209608155868,
"p50": 0.028340829499995834,
"p90": 0.028956401000027655,
"p95": 0.029356640250017562,
"p99": 0.029941970450014423,
"values": [
0.028581664999990153,
0.028696420000017042,
0.02894177800004627,
0.028118377999987842,
0.028962668000019676,
0.03008830300001364,
0.028563281000003826,
0.028057924999984607,
0.02875592000003735,
0.02783537899995281,
0.025136701999997513,
0.024909067000010054,
0.024908354999979565,
0.025714342000014767
]
},
"throughput": {
"unit": "tokens/s",
"value": 36.150472240198276
},
"energy": null,
"efficiency": null
}
}
}