IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
232a209 verified
raw
history blame
8.4 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": "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": {},
"hub_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,
"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",
"numactl": false,
"numactl_kwargs": {},
"start_method": "spawn"
},
"environment": {
"cpu": " AMD EPYC 7763 64-Core Processor",
"cpu_count": 4,
"cpu_ram_mb": 16757.338112,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-6.5.0-1022-azure-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.14",
"optimum_benchmark_version": "0.2.1",
"optimum_benchmark_commit": "43734676b09236e2ae4d7c19f90e8e23d1f2f201",
"transformers_version": "4.42.3",
"transformers_commit": null,
"accelerate_version": "0.31.0",
"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": {
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 957.730816,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.6305692740000381,
"mean": 0.04504066242857415,
"stdev": 0.0020508533707154523,
"p50": 0.04452774099999601,
"p90": 0.04782471090000797,
"p95": 0.04875130180001293,
"p99": 0.049478546760011566,
"values": [
0.046071154999992814,
0.04422421000001009,
0.04556567100001985,
0.04372975700002257,
0.044831271999981936,
0.045557145999993054,
0.043521991000005755,
0.04404308100001231,
0.04966035800001123,
0.04826181000001384,
0.04680481299999428,
0.04360270999998761,
0.042076264000002084,
0.04261903599999073
]
},
"throughput": {
"unit": "tokens/s",
"value": 44.4043202777405
},
"energy": {
"unit": "kWh",
"cpu": 1.6607974966367086e-06,
"ram": 6.940670158339657e-08,
"gpu": 0.0,
"total": 1.7302041982201053e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1155932.9251757907
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 957.730816,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.3915116819999298,
"mean": 0.02796512014285213,
"stdev": 0.0013255724187727885,
"p50": 0.027736829500000226,
"p90": 0.02994573939999441,
"p95": 0.03060482189999334,
"p99": 0.03079026117999206,
"values": [
0.028048681999990777,
0.026582316999991917,
0.02869911499999489,
0.028481237999983477,
0.02774341200000663,
0.027730246999993824,
0.02767386299998975,
0.02848849299999756,
0.030836620999991737,
0.030480006999994202,
0.02705568799999014,
0.02668397700000469,
0.026275514999980487,
0.026732507000019723
]
},
"throughput": {
"unit": "tokens/s",
"value": 35.75883081823982
},
"energy": {
"unit": "kWh",
"cpu": 1.03067425666032e-06,
"ram": 4.3075214760642815e-08,
"gpu": 0.0,
"total": 1.0737494714209624e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 931315.9415823834
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 13,
"total": 0.9481760999999835,
"mean": 0.07293662307692181,
"stdev": 0.003312683151205613,
"p50": 0.07240250399999582,
"p90": 0.07784803560001023,
"p95": 0.07944043740001235,
"p99": 0.08027723148000859,
"values": [
0.07085972499999116,
0.07426774199998931,
0.07222024300000385,
0.07258946199999627,
0.07323373299999503,
0.07126167600000599,
0.07240250399999582,
0.08048643000000766,
0.07874310900001547,
0.07409448699999643,
0.07030967000000032,
0.06837167499998031,
0.06933564400000591
]
},
"throughput": {
"unit": "tokens/s",
"value": 13.710533307051534
},
"energy": null,
"efficiency": null
}
}
}