IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
a92af00 verified
raw
history blame
9.64 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-1025-azure-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.14",
"optimum_benchmark_version": "0.4.0",
"optimum_benchmark_commit": "4b4932677f0bd8749fe6357b1db4dd74ebedf5df",
"transformers_version": "4.44.0",
"transformers_commit": null,
"accelerate_version": "0.33.0",
"accelerate_commit": null,
"diffusers_version": "0.30.0",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.8",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 1120.944128,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 1,
"total": 4.809990911999989,
"mean": 4.809990911999989,
"stdev": 0.0,
"p50": 4.809990911999989,
"p90": 4.809990911999989,
"p95": 4.809990911999989,
"p99": 4.809990911999989,
"values": [
4.809990911999989
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 6.845658691666616e-05,
"ram": 2.861322221564184e-06,
"gpu": 0,
"total": 7.131790913823034e-05
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 974.37696,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.6560074889999612,
"mean": 0.04373383259999741,
"stdev": 0.002657781229069294,
"p50": 0.04562066400001186,
"p90": 0.046380059799986384,
"p95": 0.04667643519998421,
"p99": 0.04671609103998264,
"values": [
0.04570361899999398,
0.04562066400001186,
0.04568014500000572,
0.045657262999981185,
0.04672600499998225,
0.04665519099998505,
0.04572765399998957,
0.04596736299998838,
0.04518461600000023,
0.04033635400000435,
0.04046084600000199,
0.0407497080000212,
0.040607101000006196,
0.0401722960000086,
0.04075866399998063
]
},
"throughput": {
"unit": "tokens/s",
"value": 45.73118524261508
},
"energy": {
"unit": "kWh",
"cpu": 1.606152154444418e-06,
"ram": 6.712271606460244e-08,
"gpu": 0.0,
"total": 1.6732748705090205e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1195260.8834623732
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 975.294464,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.4037108720000333,
"mean": 0.026914058133335552,
"stdev": 0.0017395565423275526,
"p50": 0.02798457099999041,
"p90": 0.028890031800006,
"p95": 0.029011108399996034,
"p99": 0.02909402088000036,
"values": [
0.028966690999993716,
0.02798457099999041,
0.02911474900000144,
0.028675986000024523,
0.02820175799999447,
0.028775043000024425,
0.02814622400001099,
0.02803780100001063,
0.026053944000011597,
0.02511296099999072,
0.025346278000000666,
0.025024504999976216,
0.024971555999997008,
0.024912956000008535,
0.02438584899999796
]
},
"throughput": {
"unit": "tokens/s",
"value": 37.155303560907726
},
"energy": {
"unit": "kWh",
"cpu": 9.647049212500382e-07,
"ram": 4.031963516036232e-08,
"gpu": 0.0,
"total": 1.0050245564104004e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 995000.5635401125
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 15,
"total": 0.3976489830000389,
"mean": 0.026509932200002594,
"stdev": 0.0016554512884103959,
"p50": 0.027487138999987337,
"p90": 0.02840292500001169,
"p95": 0.02851676910000549,
"p99": 0.02859350421998613,
"values": [
0.02847566100001586,
0.027487138999987337,
0.02861268799998129,
0.028196458000024904,
0.02770928500001446,
0.028293821000005437,
0.02767283700001144,
0.027579292000012856,
0.025718666000017265,
0.024811545999995133,
0.025053169000017306,
0.024692602999976998,
0.024668116999976064,
0.024613885999997365,
0.024063815000005206
]
},
"throughput": {
"unit": "tokens/s",
"value": 37.721710959332526
},
"energy": null,
"efficiency": null
}
}
}