IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
589f42e
verified
{ | |
"config": { | |
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.4.1+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": null, | |
"numactl": false, | |
"numactl_kwargs": {}, | |
"start_method": "spawn" | |
}, | |
"environment": { | |
"cpu": " AMD EPYC 7763 64-Core Processor", | |
"cpu_count": 4, | |
"cpu_ram_mb": 16766.767104, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-6.8.0-1014-azure-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.15", | |
"optimum_benchmark_version": "0.5.0", | |
"optimum_benchmark_commit": "5df58267768a617f3aef53a7f4314a13676dc113", | |
"transformers_version": "4.45.2", | |
"transformers_commit": null, | |
"accelerate_version": "1.0.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.3", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.9", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
}, | |
"print_report": true, | |
"log_report": true | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1110.401024, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
1.7492073910000272 | |
], | |
"count": 1, | |
"total": 1.7492073910000272, | |
"mean": 1.7492073910000272, | |
"p50": 1.7492073910000272, | |
"p90": 1.7492073910000272, | |
"p95": 1.7492073910000272, | |
"p99": 1.7492073910000272, | |
"stdev": 0, | |
"stdev_": 0 | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 965.435392, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.0469246920000046, | |
0.04534173100000771, | |
0.04693319899996595, | |
0.046087471000021196, | |
0.04837400200000275, | |
0.04575596800003723, | |
0.04643042399999331, | |
0.053024359999994886, | |
0.05649528499998269, | |
0.05381768000000875, | |
0.04604037199999311, | |
0.0461801449999939, | |
0.05084146299998338 | |
], | |
"count": 13, | |
"total": 0.6322467919999895, | |
"mean": 0.048634368615383804, | |
"p50": 0.0469246920000046, | |
"p90": 0.05365901600000598, | |
"p95": 0.05488872199999832, | |
"p99": 0.05617397239998581, | |
"stdev": 0.003529126282737263, | |
"stdev_": 7.256445150232599 | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 41.123182163968075 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.7976905969696947e-06, | |
"ram": 7.516910123715328e-08, | |
"gpu": 0.0, | |
"total": 1.8728596982068478e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1067885.6520405035 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 965.435392, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.031163470000024063, | |
0.02828420600002346, | |
0.027108389000034094, | |
0.02983712099995728, | |
0.029030346999945777, | |
0.027811157999963143, | |
0.03219346400004497, | |
0.03247170599996707, | |
0.032270067000013114, | |
0.029523791999963578, | |
0.0273697499999912, | |
0.02965790400003243, | |
0.026559930000018994 | |
], | |
"count": 13, | |
"total": 0.3832813039999792, | |
"mean": 0.02948317723076763, | |
"p50": 0.029523791999963578, | |
"p90": 0.032254746400019484, | |
"p95": 0.0323507225999947, | |
"p99": 0.032447509319972596, | |
"stdev": 0.0019634027734148703, | |
"stdev_": 6.659400233723558 | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 33.91764707625996 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0591147446969237e-06, | |
"ram": 4.42889008469965e-08, | |
"gpu": 0.0, | |
"total": 1.1034036455439193e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 906286.6558747439 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.030714207000016813, | |
0.02786681300000282, | |
0.026713538000024073, | |
0.029434424999976727, | |
0.028616228999965188, | |
0.027420183999993242, | |
0.03154908400000522, | |
0.031857612999999674, | |
0.03171201899999687, | |
0.029107961999955023, | |
0.026962055000012697, | |
0.029036378000000695, | |
0.02615705400000934 | |
], | |
"count": 13, | |
"total": 0.3771475609999584, | |
"mean": 0.029011350846150644, | |
"p50": 0.029036378000000695, | |
"p90": 0.03167943199999854, | |
"p95": 0.03177025659999799, | |
"p99": 0.03184014171999934, | |
"stdev": 0.0018922523228497373, | |
"stdev_": 6.52245506555173 | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 34.46926705699002 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |