IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
4d7e0be
verified
{ | |
"config": { | |
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.3.0+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", | |
"start_method": "spawn" | |
}, | |
"environment": { | |
"cpu": " AMD EPYC 7763 64-Core Processor", | |
"cpu_count": 4, | |
"cpu_ram_mb": 16757.354496, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-6.5.0-1021-azure-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.14", | |
"optimum_benchmark_version": "0.2.0", | |
"optimum_benchmark_commit": "6fd377459e287bb09e9383ba2516b1b2a271a562", | |
"transformers_version": "4.40.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.30.1", | |
"accelerate_commit": null, | |
"diffusers_version": "0.27.2", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "0.9.16", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 948.24448, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.6625425460000542, | |
"mean": 0.044169503066670286, | |
"stdev": 0.0009472706701762553, | |
"p50": 0.04394076400001268, | |
"p90": 0.045213300800003256, | |
"p95": 0.04587641910000002, | |
"p99": 0.046457753419995244, | |
"values": [ | |
0.04556499000000258, | |
0.043650205000005826, | |
0.04660308699999405, | |
0.04447290200002385, | |
0.04424561099997959, | |
0.04468576700000426, | |
0.04394076400001268, | |
0.04347251500001903, | |
0.044680306999993036, | |
0.04356178099999397, | |
0.043785547000027236, | |
0.04382420799998954, | |
0.04419610900001203, | |
0.04340082199999529, | |
0.04245793100000128 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 45.280110962108 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.685131037676776e-06, | |
"ram": 7.042427836042955e-08, | |
"gpu": 0.0, | |
"total": 1.7555553160372056e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1139240.6617608475 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 948.24448, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.4013152069999535, | |
"mean": 0.026754347133330234, | |
"stdev": 0.00046463600228426256, | |
"p50": 0.026856557999991537, | |
"p90": 0.027272766799995907, | |
"p95": 0.02735589909999021, | |
"p99": 0.027469443019996334, | |
"values": [ | |
0.026856557999991537, | |
0.026271821999984013, | |
0.02723930900000937, | |
0.02729507199998693, | |
0.026379181999999446, | |
0.02653050300000359, | |
0.026603848999997126, | |
0.027058142999976553, | |
0.02700592600001528, | |
0.026911350000005996, | |
0.026138985999978104, | |
0.027204554000007874, | |
0.027497828999997864, | |
0.026504294000005757, | |
0.025817829999994046 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 37.37710342982776 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0025930404663087e-06, | |
"ram": 4.19014193139778e-08, | |
"gpu": 0.0, | |
"total": 1.0444944597802864e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 957400.9614281286 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.9916712409999775, | |
"mean": 0.07083366007142697, | |
"stdev": 0.0012201529007763755, | |
"p50": 0.07062559400000623, | |
"p90": 0.07175336229998663, | |
"p95": 0.07250598824998775, | |
"p99": 0.07358856324999608, | |
"values": [ | |
0.06992857000000186, | |
0.07385920699999815, | |
0.07177733199998215, | |
0.07064844600000697, | |
0.0712027149999983, | |
0.07060274200000549, | |
0.07053561699999022, | |
0.07169743299999709, | |
0.07049989000000778, | |
0.06994229599999358, | |
0.07104756700002213, | |
0.07166975299998057, | |
0.0699853050000172, | |
0.068274367999976 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 14.11758193762152 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |