IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
647f86c verified
raw
history blame
9.6 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": "76a02351fb822bf768d5e23c9b8129d5e0d491b2",
"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,
"llama_cpp_version": null,
"llama_cpp_commit": null
}
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 1105.760256,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 1,
"total": 4.723731064000049,
"mean": 4.723731064000049,
"stdev": 0.0,
"p50": 4.723731064000049,
"p90": 4.723731064000049,
"p95": 4.723731064000049,
"p99": 4.723731064000049,
"values": [
4.723731064000049
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 6.74566321902805e-05,
"ram": 2.8194437106458283e-06,
"gpu": 0,
"total": 7.027607590092632e-05
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 958.722048,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.6481861440000785,
"mean": 0.04629901028571989,
"stdev": 0.001758699695466626,
"p50": 0.046803149500021846,
"p90": 0.0475985139999807,
"p95": 0.047847456549990855,
"p99": 0.04790385210998863,
"values": [
0.04674380800003064,
0.04791795099998808,
0.04690429900000481,
0.04569910800000798,
0.047809497999992345,
0.04686249100001305,
0.04593874800002595,
0.04625518199998169,
0.04699240400003646,
0.04700537799999438,
0.047106217999953515,
0.04626177400001552,
0.04633940300004724,
0.04034988199998679
]
},
"throughput": {
"unit": "tokens/s",
"value": 43.1974676706397
},
"energy": {
"unit": "kWh",
"cpu": 1.599756611718072e-06,
"ram": 6.685694271645843e-08,
"gpu": 0.0,
"total": 1.6666135544345303e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1200038.2420258098
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 959.639552,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.40264283599992723,
"mean": 0.028760202571423372,
"stdev": 0.0015084525742300738,
"p50": 0.029379435500004547,
"p90": 0.030007666400001652,
"p95": 0.030119792300007477,
"p99": 0.03017199925999307,
"values": [
0.03018505099998947,
0.028981944000008752,
0.02946461999999883,
0.029540091999990636,
0.02982803099996545,
0.029573213999981363,
0.03008465300001717,
0.02953540199996496,
0.029294251000010263,
0.027784789000008914,
0.029219510000018545,
0.028362071999993077,
0.025037362999967172,
0.025751844000012625
]
},
"throughput": {
"unit": "tokens/s",
"value": 34.7702696987822
},
"energy": {
"unit": "kWh",
"cpu": 9.382102390130356e-07,
"ram": 3.921018097755962e-08,
"gpu": 0.0,
"total": 9.774204199905953e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1023101.1952969244
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 14,
"total": 0.3964874569998642,
"mean": 0.028320532642847444,
"stdev": 0.0014560318950426292,
"p50": 0.028920975000005456,
"p90": 0.029524747299990394,
"p95": 0.029633601899999463,
"p99": 0.02969835958000374,
"values": [
0.02971454900000481,
0.02852604899999278,
0.029012592000015047,
0.029074988999980178,
0.029372455999975955,
0.029123791000017718,
0.029590014999996583,
0.029069377999974222,
0.028829357999995864,
0.027328441999998176,
0.028752644000007876,
0.027912918999959402,
0.024732581999955983,
0.025447692999989613
]
},
"throughput": {
"unit": "tokens/s",
"value": 35.31007035111528
},
"energy": null,
"efficiency": null
}
}
}