IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
3745baf
verified
{ | |
"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.342208, | |
"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": "8d79709992edcccdc1bf81d55005e3bb3ccf994a", | |
"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": 958.517248, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.6466673000000185, | |
"mean": 0.04311115333333457, | |
"stdev": 0.000628344142034814, | |
"p50": 0.04300828999998885, | |
"p90": 0.04377932500000838, | |
"p95": 0.044056888800011504, | |
"p99": 0.044363279360003956, | |
"values": [ | |
0.04389275100001555, | |
0.04296841599997947, | |
0.042400681000003715, | |
0.04348359200000118, | |
0.04281238599998005, | |
0.043486647000008816, | |
0.04346382599999288, | |
0.042831762000020035, | |
0.043609185999997635, | |
0.04300828999998885, | |
0.043395868999994036, | |
0.042539683000001105, | |
0.04214698800001315, | |
0.04443987700000207, | |
0.04218734600001994 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 46.391707142141165 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.6796448164516025e-06, | |
"ram": 7.019462726404414e-08, | |
"gpu": 0.0, | |
"total": 1.7498394437156467e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1142962.0055615827 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 958.517248, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.40138098100004527, | |
"mean": 0.026758732066669684, | |
"stdev": 0.0006395512971557634, | |
"p50": 0.026560845000005884, | |
"p90": 0.027579339199996868, | |
"p95": 0.027994945499995084, | |
"p99": 0.028276997899993148, | |
"values": [ | |
0.028347510999992664, | |
0.0264083320000168, | |
0.026787815999995246, | |
0.026950647999996136, | |
0.026431716000018923, | |
0.027182578999997986, | |
0.02709183000001758, | |
0.02641869100000349, | |
0.026634330000007367, | |
0.026560845000005884, | |
0.02641063600000848, | |
0.026550085000025092, | |
0.02784384599999612, | |
0.025873698999987482, | |
0.025888416999976016 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 37.37097847194286 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.204493076712996e-07, | |
"ram": 3.846905034495762e-08, | |
"gpu": 0.0, | |
"total": 9.589183580162575e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1042841.6471958357 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.9760648460000141, | |
"mean": 0.06971891757142958, | |
"stdev": 0.0007157762539604539, | |
"p50": 0.06970139349999727, | |
"p90": 0.07056339270000364, | |
"p95": 0.07060894270000802, | |
"p99": 0.0706569293400213, | |
"values": [ | |
0.06939534200000708, | |
0.06911407999999142, | |
0.0705324730000143, | |
0.06928323399998249, | |
0.07066892600002461, | |
0.07057664399999908, | |
0.06926396800000134, | |
0.07027315199999862, | |
0.06957379299998934, | |
0.06982941699999401, | |
0.06910669000001235, | |
0.0698289940000052, | |
0.07052190299998529, | |
0.06809623000000897 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 14.343309317380946 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |