IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
4edca51
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_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-1023-azure-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.14", | |
"optimum_benchmark_version": "0.3.1", | |
"optimum_benchmark_commit": "9337b863a5d9e4991ca83847e6c2f66a543b52d9", | |
"transformers_version": "4.42.4", | |
"transformers_commit": null, | |
"accelerate_version": "0.32.1", | |
"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": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1104.871424, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 4.861996637000004, | |
"mean": 4.861996637000004, | |
"stdev": 0.0, | |
"p50": 4.861996637000004, | |
"p90": 4.861996637000004, | |
"p95": 4.861996637000004, | |
"p99": 4.861996637000004, | |
"values": [ | |
4.861996637000004 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.76175355911255e-05, | |
"ram": 2.8262370250956792e-06, | |
"gpu": 0, | |
"total": 7.044377261622118e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 957.837312, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.6256429129999788, | |
"mean": 0.04170952753333192, | |
"stdev": 0.0011496563714208457, | |
"p50": 0.04148193000003175, | |
"p90": 0.04210067239999944, | |
"p95": 0.04315091539998547, | |
"p99": 0.045098023079974604, | |
"values": [ | |
0.04148193000003175, | |
0.04091366699998389, | |
0.04156128900001477, | |
0.0409023650000222, | |
0.04188536499998463, | |
0.041423310000027413, | |
0.041969993000009254, | |
0.04558479999997189, | |
0.0421078219999913, | |
0.04145823599998266, | |
0.04201367600001049, | |
0.042089948000011645, | |
0.04084351499994909, | |
0.040836481999974694, | |
0.040570515000013074 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 47.95067502027474 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.5984437200758194e-06, | |
"ram": 6.679857145177265e-08, | |
"gpu": 0.0, | |
"total": 1.665242291527592e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1201026.4273106598 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 958.754816, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.38464119599990454, | |
"mean": 0.025642746399993636, | |
"stdev": 0.0007683506818851199, | |
"p50": 0.025471498000001702, | |
"p90": 0.02625179379997462, | |
"p95": 0.026817009199970696, | |
"p99": 0.027748677839971377, | |
"values": [ | |
0.026317900999970334, | |
0.025534565999976166, | |
0.025353346999963833, | |
0.025404021999975157, | |
0.02615263299998105, | |
0.025805042000001777, | |
0.02543534000000136, | |
0.025886714000023403, | |
0.025702200000012, | |
0.025471498000001702, | |
0.02798159499997155, | |
0.024593644999981734, | |
0.02506134100002555, | |
0.024889359000042077, | |
0.025051992999976846 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 38.997382901242126 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.002853231297599e-06, | |
"ram": 4.191633443542456e-08, | |
"gpu": 0.0, | |
"total": 1.0447695657330235e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 957148.861144694 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.37935215699997116, | |
"mean": 0.025290143799998076, | |
"stdev": 0.0007329655968907013, | |
"p50": 0.025135860000034427, | |
"p90": 0.025905071400006818, | |
"p95": 0.026424169699993172, | |
"p99": 0.027273896339960402, | |
"values": [ | |
0.025968959000010727, | |
0.025185541999974248, | |
0.02502156599996397, | |
0.025059135999981663, | |
0.025809240000000955, | |
0.025469763999979023, | |
0.025096306000023105, | |
0.02551998800004185, | |
0.025340041999982077, | |
0.025135860000034427, | |
0.02748632799995221, | |
0.024284476999980598, | |
0.02470008500000631, | |
0.024573778000046786, | |
0.02470108599999321 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 39.541095847785414 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |