IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
09b1167
verified
{ | |
"config": { | |
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.4.0+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-1025-azure-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.14", | |
"optimum_benchmark_version": "0.4.0", | |
"optimum_benchmark_commit": "0b698510ea1d823135aec78328a8e6e308aed8da", | |
"transformers_version": "4.44.0", | |
"transformers_commit": null, | |
"accelerate_version": "0.33.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.0", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.8", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1109.64736, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 4.977120609999986, | |
"mean": 4.977120609999986, | |
"stdev": 0.0, | |
"p50": 4.977120609999986, | |
"p90": 4.977120609999986, | |
"p95": 4.977120609999986, | |
"p99": 4.977120609999986, | |
"values": [ | |
4.977120609999986 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.870146188889016e-05, | |
"ram": 2.8715503825602568e-06, | |
"gpu": 0, | |
"total": 7.157301227145042e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 963.129344, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.6368063909999364, | |
"mean": 0.04245375939999576, | |
"stdev": 0.0008930616303777435, | |
"p50": 0.04265156199994635, | |
"p90": 0.043509078000010956, | |
"p95": 0.04391224830000055, | |
"p99": 0.04407425685997396, | |
"values": [ | |
0.04266975600000933, | |
0.04265950699999621, | |
0.0421808209999881, | |
0.04126902599995219, | |
0.04265156199994635, | |
0.04231231799997204, | |
0.04303450800000519, | |
0.04244234100002586, | |
0.042804448000026696, | |
0.043825458000014805, | |
0.042112192999979925, | |
0.04411475899996731, | |
0.042907481000042935, | |
0.04118880599997965, | |
0.04063340700002982 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 47.11007996149806 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.6317983645832982e-06, | |
"ram": 6.819528805566978e-08, | |
"gpu": 0.0, | |
"total": 1.699993652638968e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1176474.9808890875 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 963.784704, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.3888445530000695, | |
"mean": 0.02592297020000463, | |
"stdev": 0.0008621126760667516, | |
"p50": 0.02578349899999921, | |
"p90": 0.026928857999985213, | |
"p95": 0.02748753299999862, | |
"p99": 0.02812478500002271, | |
"values": [ | |
0.027146147999985715, | |
0.025835807000021305, | |
0.025212791999990714, | |
0.025510219000011602, | |
0.02578349899999921, | |
0.02514550500001178, | |
0.025640542000019195, | |
0.025997508999978436, | |
0.026602922999984457, | |
0.0251036170000134, | |
0.028284098000028735, | |
0.025155324000024848, | |
0.026369434999992336, | |
0.025052883000000747, | |
0.026004252000007 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 38.57582646913745 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.77705203935302e-07, | |
"ram": 4.0859990541675055e-08, | |
"gpu": 0.0, | |
"total": 1.0185651944769772e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 981773.1897990975 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.38309650200011447, | |
"mean": 0.02553976680000763, | |
"stdev": 0.0008247296342154418, | |
"p50": 0.02529841200004057, | |
"p90": 0.026537225599975046, | |
"p95": 0.027070873999980448, | |
"p99": 0.027615664399997967, | |
"values": [ | |
0.026779021999971064, | |
0.025438975000042774, | |
0.024864791000027253, | |
0.025163219000035042, | |
0.02529841200004057, | |
0.024794489000043995, | |
0.025291099000014583, | |
0.02560798999996905, | |
0.026174530999981016, | |
0.024760866000008264, | |
0.027751862000002347, | |
0.024820557999987614, | |
0.02603175399997326, | |
0.024697047000017847, | |
0.025621886999999788 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 39.15462532726419 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |