IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
ff0f92e verified
raw
history blame
9.53 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_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": "646643b121045387ff03e098548c9336e842d8f3",
"transformers_version": "4.42.4",
"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": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 1103.654912,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 1,
"total": 4.802844774999983,
"mean": 4.802844774999983,
"stdev": 0.0,
"p50": 4.802844774999983,
"p90": 4.802844774999983,
"p95": 4.802844774999983,
"p99": 4.802844774999983,
"values": [
4.802844774999983
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 6.701483858956231e-05,
"ram": 2.8010470724848345e-06,
"gpu": 0,
"total": 6.981588566204714e-05
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 957.386752,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.63883282900008,
"mean": 0.04563091635714857,
"stdev": 0.002213579680224542,
"p50": 0.0466473055000165,
"p90": 0.04742652990001943,
"p95": 0.047624304450005185,
"p99": 0.047748182489981444,
"values": [
0.04624605200001497,
0.046995641000023625,
0.04686951400003636,
0.04477609999997867,
0.047159608000015396,
0.046879262000004474,
0.046325641999999334,
0.04660511600002337,
0.04777915199997551,
0.04668949500000963,
0.04754092500002116,
0.042794276999984504,
0.04119587400003866,
0.04097617099995432
]
},
"throughput": {
"unit": "tokens/s",
"value": 43.829932853993164
},
"energy": {
"unit": "kWh",
"cpu": 1.6219968045199363e-06,
"ram": 6.778631195686556e-08,
"gpu": 0.0,
"total": 1.689783116476802e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1183583.8460559368
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 957.91104,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.3912477230001059,
"mean": 0.027946265928578993,
"stdev": 0.0017082342213221601,
"p50": 0.028471133000010695,
"p90": 0.029729090900002576,
"p95": 0.03000689654999178,
"p99": 0.030040838510001323,
"values": [
0.029984050999985357,
0.028462782000019615,
0.027959576999990077,
0.028787753000017346,
0.0286142979999795,
0.028372843999989072,
0.028479484000001776,
0.030049324000003708,
0.02913418400004275,
0.029015692000029958,
0.02499465699997927,
0.027672137000024577,
0.024902994999990824,
0.024817945000052077
]
},
"throughput": {
"unit": "tokens/s",
"value": 35.782955853767895
},
"energy": {
"unit": "kWh",
"cpu": 9.126513092606158e-07,
"ram": 3.8142029791856676e-08,
"gpu": 0.0,
"total": 9.507933390524726e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1051753.2663791745
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 14,
"total": 0.38511788700003535,
"mean": 0.027508420500002524,
"stdev": 0.00164165981417778,
"p50": 0.027988015500000074,
"p90": 0.02922959610000362,
"p95": 0.02949261089998174,
"p99": 0.029526584579980978,
"values": [
0.029469743999982256,
0.027960017999987485,
0.02752273599998034,
0.028305417000012767,
0.028165553999997428,
0.027890687999956754,
0.028016013000012663,
0.029535077999980786,
0.028669251000053464,
0.02851597300002595,
0.024673694000000523,
0.027320948000010503,
0.02456873699998141,
0.02450403600005302
]
},
"throughput": {
"unit": "tokens/s",
"value": 36.352505226532664
},
"energy": null,
"efficiency": null
}
}
}