IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
960378e
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.338112, | |
"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": "c5b5d4e592cffa01a4a40ea2fa6fc657fea96c19", | |
"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": 1119.727616, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 4.805295403000002, | |
"mean": 4.805295403000002, | |
"stdev": 0.0, | |
"p50": 4.805295403000002, | |
"p90": 4.805295403000002, | |
"p95": 4.805295403000002, | |
"p99": 4.805295403000002, | |
"values": [ | |
4.805295403000002 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.882291161666704e-05, | |
"ram": 2.8766237252106276e-06, | |
"gpu": 0, | |
"total": 7.169953534187767e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 973.123584, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.6285574430001475, | |
"mean": 0.041903829533343165, | |
"stdev": 0.00043815872070960274, | |
"p50": 0.04187681700000212, | |
"p90": 0.042493441800013444, | |
"p95": 0.04253351840001187, | |
"p99": 0.04253880368001546, | |
"values": [ | |
0.041562279999993734, | |
0.04187681700000212, | |
0.041763825000032284, | |
0.04171002700002191, | |
0.041899059000002126, | |
0.04184262299997954, | |
0.04253068700000995, | |
0.042323901999964164, | |
0.04225015400004395, | |
0.041473925000047984, | |
0.042437574000018685, | |
0.042018051000013656, | |
0.04254012500001636, | |
0.04128737700000329, | |
0.04104101699999774 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 47.72833467186063 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.6272105726851348e-06, | |
"ram": 6.800125077823973e-08, | |
"gpu": 0.0, | |
"total": 1.6952118234633748e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1179793.5646260022 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 973.910016, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.392099824999832, | |
"mean": 0.026139988333322133, | |
"stdev": 0.000841700083405459, | |
"p50": 0.025964476000012837, | |
"p90": 0.027147551000007295, | |
"p95": 0.02793328989998258, | |
"p99": 0.02844800997996913, | |
"values": [ | |
0.026382557000033557, | |
0.02765754699998979, | |
0.025666881999995894, | |
0.02567648899997721, | |
0.02618562899999688, | |
0.025832981999997173, | |
0.026008869999998296, | |
0.025964476000012837, | |
0.02609311699995942, | |
0.02549881799996001, | |
0.028576689999965765, | |
0.025492575999976452, | |
0.026034728000013274, | |
0.02575701999995772, | |
0.0252714439999977 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 38.25556412836049 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.67495172129566e-07, | |
"ram": 4.04356540377094e-08, | |
"gpu": 0.0, | |
"total": 1.0079308261672743e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 992131.5769283178 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.3870212079999078, | |
"mean": 0.02580141386666052, | |
"stdev": 0.0008373633643657413, | |
"p50": 0.025601278999999977, | |
"p90": 0.026791791800008014, | |
"p95": 0.02758398670000588, | |
"p99": 0.028109680539969303, | |
"values": [ | |
0.02602593199998182, | |
0.027302365000025475, | |
0.025330764999978328, | |
0.025330644000007396, | |
0.025836376999961885, | |
0.02549725500000477, | |
0.025676799999985178, | |
0.025601278999999977, | |
0.02574647000000141, | |
0.025164243999995506, | |
0.02824110399996016, | |
0.025172408000003088, | |
0.025712456000007933, | |
0.02542970899997954, | |
0.024953400000015336 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 38.75756596781532 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |