IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
5525044 verified
raw
history blame
9.76 kB
{
"config": {
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.4.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": null,
"numactl": false,
"numactl_kwargs": {},
"start_method": "spawn"
},
"environment": {
"cpu": " AMD EPYC 7763 64-Core Processor",
"cpu_count": 4,
"cpu_ram_mb": 16766.7712,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-6.8.0-1014-azure-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.15",
"optimum_benchmark_version": "0.4.0",
"optimum_benchmark_commit": "4c0c433dfc68fac2cdc0ae637f343f8377f20210",
"transformers_version": "4.44.2",
"transformers_commit": null,
"accelerate_version": "0.34.2",
"accelerate_commit": null,
"diffusers_version": "0.30.3",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.9",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 1105.317888,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 1,
"total": 4.777414066999995,
"mean": 4.777414066999995,
"stdev": 0.0,
"p50": 4.777414066999995,
"p90": 4.777414066999995,
"p95": 4.777414066999995,
"p99": 4.777414066999995,
"values": [
4.777414066999995
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 6.754000201666612e-05,
"ram": 2.824555962431037e-06,
"gpu": 0,
"total": 7.036455797909716e-05
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 959.565824,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 16,
"total": 0.6653379390000111,
"mean": 0.0415836211875007,
"stdev": 0.002331773318880812,
"p50": 0.04087210000000141,
"p90": 0.04421091650000619,
"p95": 0.04584172000001274,
"p99": 0.04827571600001477,
"values": [
0.04093480400001681,
0.04096295700000496,
0.04063050799999246,
0.04038059699999508,
0.0412952940000082,
0.040338307000013174,
0.0448275550000119,
0.04111088599998425,
0.048884215000015274,
0.04080939599998601,
0.04234673900000985,
0.043594278000000486,
0.03939995399997542,
0.039782244000008404,
0.039904914999993935,
0.04013528999999494
]
},
"throughput": {
"unit": "tokens/s",
"value": 48.095859448651495
},
"energy": {
"unit": "kWh",
"cpu": 1.563478483777772e-06,
"ram": 6.537758030201996e-08,
"gpu": 0.0,
"total": 1.6288560640797918e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1227855.57552004
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 959.696896,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 16,
"total": 0.3982250120000401,
"mean": 0.024889063250002508,
"stdev": 0.000748778551336215,
"p50": 0.02467789750001259,
"p90": 0.02581466350000028,
"p95": 0.026133350000002054,
"p99": 0.026600385200002564,
"values": [
0.025640240000001313,
0.025058952999984285,
0.025058553000008033,
0.024515826999987667,
0.02456513999999288,
0.025690574999998717,
0.024722617000008995,
0.02671714400000269,
0.02479471399999511,
0.024633178000016187,
0.02593875200000184,
0.023645192999993014,
0.02427608000002124,
0.024189256999989084,
0.024436103000027742,
0.024342686000011327
]
},
"throughput": {
"unit": "tokens/s",
"value": 40.17828995632848
},
"energy": {
"unit": "kWh",
"cpu": 9.375074089305749e-07,
"ram": 3.9203395214945344e-08,
"gpu": 0.0,
"total": 9.767108041455208e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1023844.5154447266
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 16,
"total": 0.3923681409999915,
"mean": 0.02452300881249947,
"stdev": 0.000696552623871863,
"p50": 0.024319005000009497,
"p90": 0.025346129499993708,
"p95": 0.025645875499989756,
"p99": 0.02618407189999914,
"values": [
0.02527063200000157,
0.024680427999982157,
0.02472408100001644,
0.024178860999995777,
0.024224567000004527,
0.02510044099997799,
0.02434411199999431,
0.026318621000001485,
0.024422290999979168,
0.024293898000024683,
0.025421626999985847,
0.023347010999998474,
0.023975945000017873,
0.023876336999990144,
0.024139815000012277,
0.024049474000008786
]
},
"throughput": {
"unit": "tokens/s",
"value": 40.77803044666755
},
"energy": null,
"efficiency": null
}
}
}