IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
163f087
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.7712, | |
"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": "1d52d2c35074aaaacac2a8342653779fa0d40c86", | |
"transformers_version": "4.45.1", | |
"transformers_commit": null, | |
"accelerate_version": "0.34.2", | |
"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 | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1122.46784, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
1.7530449449999992 | |
], | |
"count": 1, | |
"total": 1.7530449449999992, | |
"mean": 1.7530449449999992, | |
"p50": 1.7530449449999992, | |
"p90": 1.7530449449999992, | |
"p95": 1.7530449449999992, | |
"p99": 1.7530449449999992, | |
"stdev": 0, | |
"stdev_": 0 | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 976.846848, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.04475181399999428, | |
0.04635989000001928, | |
0.04564587999999503, | |
0.04473374999997759, | |
0.044882556999993994, | |
0.044579342000020006, | |
0.04701173600000175, | |
0.04668405500001427, | |
0.04642194699999891, | |
0.04683937499999047, | |
0.04586274399997592, | |
0.048819994999973915, | |
0.047081325000021934, | |
0.04525933000002169 | |
], | |
"count": 14, | |
"total": 0.644933739999999, | |
"mean": 0.04606669571428564, | |
"p50": 0.0461113169999976, | |
"p90": 0.04706044830001588, | |
"p95": 0.04768985950000513, | |
"p99": 0.048593967899980155, | |
"stdev": 0.0011552411049127027, | |
"stdev_": 2.507757691321571 | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 43.41531271103919 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.813345296212166e-06, | |
"ram": 7.582284233777658e-08, | |
"gpu": 0.0, | |
"total": 1.8891681385499426e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1058667.0181380087 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 976.846848, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.028068726000014976, | |
0.029693993999956092, | |
0.02843563900000845, | |
0.027791218000004392, | |
0.02799295400001256, | |
0.027714114999980666, | |
0.031720549999988634, | |
0.028388199999994868, | |
0.028711142000020118, | |
0.028218223999999736, | |
0.02761716399999159, | |
0.03170004200001131, | |
0.028573396000012963, | |
0.027913205999993806 | |
], | |
"count": 14, | |
"total": 0.40253856999999016, | |
"mean": 0.028752754999999297, | |
"p50": 0.028303211999997302, | |
"p90": 0.031098227599994744, | |
"p95": 0.03170721980000337, | |
"p99": 0.03171788395999158, | |
"stdev": 0.0013086594938723289, | |
"stdev_": 4.551422964068524 | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 34.77927593373311 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.1213189260100731e-06, | |
"ram": 4.688936083362013e-08, | |
"gpu": 0.0, | |
"total": 1.1682082868436928e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 856011.7328921164 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.027695480000033967, | |
0.029309737999994923, | |
0.028077191000022594, | |
0.027402214000005642, | |
0.027616974000011396, | |
0.027318316999981107, | |
0.031161537999992106, | |
0.028007200999979887, | |
0.0283186909999813, | |
0.027850898999986384, | |
0.02726062900001125, | |
0.03134149400000297, | |
0.028211983000005603, | |
0.02756093900001133 | |
], | |
"count": 14, | |
"total": 0.39713328800002046, | |
"mean": 0.02836666342857289, | |
"p50": 0.027929049999983135, | |
"p90": 0.030605997999992952, | |
"p95": 0.031224522599995908, | |
"p99": 0.03131809972000155, | |
"stdev": 0.0012808980300018803, | |
"stdev_": 4.515504734024059 | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 35.252647972434076 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |