IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
af63d1d
verified
{ | |
"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.342208, | |
"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.3.1", | |
"optimum_benchmark_commit": "8ebe8531a5b12ea7926cab66905381c76b24fcc4", | |
"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": 956.649472, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.6301878069999987, | |
"mean": 0.04501341478571419, | |
"stdev": 0.0013203565164908336, | |
"p50": 0.045144573499996454, | |
"p90": 0.046806418899990376, | |
"p95": 0.04694154044998413, | |
"p99": 0.04706634408998525, | |
"values": [ | |
0.045499759999984235, | |
0.04233386399999972, | |
0.04709754499998553, | |
0.04404092300001139, | |
0.04403666500002146, | |
0.045522672999993574, | |
0.04530207100000894, | |
0.044834240000000136, | |
0.04467866100000606, | |
0.04513705499999787, | |
0.046687141000006704, | |
0.04685753799998338, | |
0.04515209199999504, | |
0.043007579000004625 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 44.43119922185365 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.7108322917551234e-06, | |
"ram": 7.149711481929443e-08, | |
"gpu": 0.0, | |
"total": 1.782329406574418e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1122127.02804693 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 956.649472, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.3809905000000242, | |
"mean": 0.02721360714285887, | |
"stdev": 0.000960422394388218, | |
"p50": 0.027168287500003885, | |
"p90": 0.028461729999986574, | |
"p95": 0.028787240649991476, | |
"p99": 0.029091460929999185, | |
"values": [ | |
0.027574559000015597, | |
0.027371571000003314, | |
0.029167516000001115, | |
0.02817998699998725, | |
0.02784611499998846, | |
0.02663270499999726, | |
0.028582476999986284, | |
0.0264063039999769, | |
0.02755323900001372, | |
0.026474641000021393, | |
0.026401705000012043, | |
0.025897627000006196, | |
0.02593705000001023, | |
0.026965004000004456 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 36.74632307104537 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.1579869450002485e-06, | |
"ram": 4.839096792084418e-08, | |
"gpu": 0.0, | |
"total": 1.2063779129210915e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 828927.6430622196 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 27, | |
"total": 0.9655346810000083, | |
"mean": 0.03576054374074105, | |
"stdev": 0.009326294914120306, | |
"p50": 0.028800883000002386, | |
"p90": 0.04637811979999924, | |
"p95": 0.04720854969999948, | |
"p99": 0.0474358005999909, | |
"values": [ | |
0.02718095599999515, | |
0.0427433570000062, | |
0.026989680000014005, | |
0.0474957669999867, | |
0.028800883000002386, | |
0.04442264400000795, | |
0.027806350999981078, | |
0.04442583000002287, | |
0.027471897999987505, | |
0.04591250900000432, | |
0.026268676999990248, | |
0.04568092700000648, | |
0.028226262999993423, | |
0.04520602300001997, | |
0.02605820599998765, | |
0.04504269899999258, | |
0.027151110000005474, | |
0.045556465999993634, | |
0.026099833000017725, | |
0.04707653599999162, | |
0.026010536999990563, | |
0.04726512700000285, | |
0.025559686999997666, | |
0.045505421000001434, | |
0.02558416300001909, | |
0.04337626499997782, | |
0.026616866000011896 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 27.963780619496738 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |