IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
ed3e0ec verified
raw
history blame
8.14 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": "95e35b7a93b1f17a9d9f175b70953ccd720a014f",
"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": 959.328256,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 12,
"total": 0.598599255000039,
"mean": 0.04988327125000325,
"stdev": 0.001540353882087201,
"p50": 0.050015868499997396,
"p90": 0.051869482100013894,
"p95": 0.0521807059500091,
"p99": 0.052433675590004045,
"values": [
0.05249691800000278,
0.05036199799999963,
0.05003383700000086,
0.04999789999999393,
0.05192198700001427,
0.04727140800000029,
0.05032377700001689,
0.04906748600001265,
0.04789944799998125,
0.048067661999994016,
0.04975989600001185,
0.05139693800001055
]
},
"throughput": {
"unit": "tokens/s",
"value": 40.0936015197654
},
"energy": {
"unit": "kWh",
"cpu": 1.8045723438262942e-06,
"ram": 7.541489255998637e-08,
"gpu": 0.0,
"total": 1.8799872363862803e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1063837.0097897095
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 959.328256,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 12,
"total": 0.40489891399991507,
"mean": 0.03374157616665959,
"stdev": 0.004553991544903311,
"p50": 0.032008306500003414,
"p90": 0.03740018569998256,
"p95": 0.04227343494999189,
"p99": 0.046590807790002776,
"values": [
0.03275807399998598,
0.03785793999998077,
0.03268362500000421,
0.04767015100000549,
0.03113258399997676,
0.03188273199998548,
0.03105581999997753,
0.03135770299999763,
0.03194708200001628,
0.031203274999995756,
0.03206953099999055,
0.03328039699999863
]
},
"throughput": {
"unit": "tokens/s",
"value": 29.637026885190696
},
"energy": {
"unit": "kWh",
"cpu": 9.935961829291454e-07,
"ram": 4.152478330662028e-08,
"gpu": 0.0,
"total": 1.0351209662357651e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 966070.6648001893
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 11,
"total": 0.9184881439999799,
"mean": 0.08349892218181636,
"stdev": 0.00514898129836609,
"p50": 0.08189175300000784,
"p90": 0.08824428399998396,
"p95": 0.09295566149999956,
"p99": 0.09672476350001205,
"values": [
0.08824428399998396,
0.08274625600000718,
0.09766703900001517,
0.08310822999999345,
0.07918396499999858,
0.0814084820000005,
0.0804468199999917,
0.0798560370000132,
0.07924628199998551,
0.08189175300000784,
0.08468899599998281
]
},
"throughput": {
"unit": "tokens/s",
"value": 11.976202493039736
},
"energy": null,
"efficiency": null
}
}
}