IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
1614c2c verified
raw
history blame
8.28 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",
"model": "openai-community/gpt2",
"library": "transformers",
"device": "cpu",
"device_ids": null,
"seed": 42,
"inter_op_num_threads": null,
"intra_op_num_threads": null,
"hub_kwargs": {
"revision": "main",
"force_download": false,
"local_files_only": false,
"trust_remote_code": false
},
"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",
"start_method": "spawn"
},
"environment": {
"cpu": " AMD EPYC 7763 64-Core Processor",
"cpu_count": 4,
"cpu_ram_mb": 16757.346304,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-6.5.0-1018-azure-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.14",
"optimum_benchmark_version": "0.2.0",
"optimum_benchmark_commit": "e14790977359c910adbb4ec8a2b60fcf3ce6bd46",
"transformers_version": "4.40.2",
"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": "0.9.16",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 958.111744,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 13,
"total": 0.6382197259999884,
"mean": 0.049093825076922185,
"stdev": 0.0007731883750524893,
"p50": 0.049111820000007356,
"p90": 0.05007328540000344,
"p95": 0.05018169000000512,
"p99": 0.050292320400004656,
"values": [
0.04926742099999615,
0.048682788000007804,
0.04817413799997894,
0.05000843499999519,
0.05031997800000454,
0.047461395999988554,
0.04953364900001134,
0.049256611000004114,
0.048475201000002244,
0.049111820000007356,
0.050089498000005506,
0.04873665899998514,
0.049102132000001575
]
},
"throughput": {
"unit": "tokens/s",
"value": 40.73832089608661
},
"energy": {
"unit": "kWh",
"cpu": 1.6455986433558995e-06,
"ram": 6.877161840219989e-08,
"gpu": 0.0,
"total": 1.7143702617580994e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1166609.1302522859
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 958.111744,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 13,
"total": 0.39937626200006093,
"mean": 0.03072125092308161,
"stdev": 0.00035723684655425766,
"p50": 0.03074223499999107,
"p90": 0.031131962200015552,
"p95": 0.03132310800000937,
"p99": 0.03149465519999808,
"values": [
0.030524438000014698,
0.030542642000000342,
0.030888378000014427,
0.030939203000002635,
0.03082215400002042,
0.03074223499999107,
0.030791696999983742,
0.030571025000000418,
0.03118015200001878,
0.031537541999995256,
0.03020081299999333,
0.030347988000016812,
0.030287995000009005
]
},
"throughput": {
"unit": "tokens/s",
"value": 32.5507578615126
},
"energy": {
"unit": "kWh",
"cpu": 9.966359646232034e-07,
"ram": 4.1652888083997174e-08,
"gpu": 0.0,
"total": 1.0382888527072012e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 963123.1206928899
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 12,
"total": 0.9580520140000033,
"mean": 0.07983766783333361,
"stdev": 0.0008466106598761555,
"p50": 0.07974531200000001,
"p90": 0.08093956989999924,
"p95": 0.08106122949999701,
"p99": 0.0811508618999943,
"values": [
0.07928427000001648,
0.07905473200000301,
0.08096955999999977,
0.08117326999999364,
0.07821165600000768,
0.08035131399998363,
0.07985349500000893,
0.07963712899999109,
0.08066965899999445,
0.08033977300001993,
0.07910885299997972,
0.07939830300000494
]
},
"throughput": {
"unit": "tokens/s",
"value": 12.525415973918049
},
"energy": null,
"efficiency": null
}
}
}