IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
91b8cfc
verified
{ | |
"config": { | |
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.4.0+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-1025-azure-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.14", | |
"optimum_benchmark_version": "0.4.0", | |
"optimum_benchmark_commit": "04f11cfa2362366194d86281303d45b96dbfadaa", | |
"transformers_version": "4.44.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.34.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.2", | |
"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": 1120.960512, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 4.758172658999996, | |
"mean": 4.758172658999996, | |
"stdev": 0.0, | |
"p50": 4.758172658999996, | |
"p90": 4.758172658999996, | |
"p95": 4.758172658999996, | |
"p99": 4.758172658999996, | |
"values": [ | |
4.758172658999996 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.742940143333415e-05, | |
"ram": 2.818373824614878e-06, | |
"gpu": 0, | |
"total": 7.024777525794902e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 974.176256, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 16, | |
"total": 0.6409076480000238, | |
"mean": 0.040056728000001485, | |
"stdev": 0.0010853986982244232, | |
"p50": 0.04008023400001548, | |
"p90": 0.04165960349999409, | |
"p95": 0.042246985249995817, | |
"p99": 0.04231527305000356, | |
"values": [ | |
0.04110067499999559, | |
0.04233234500000549, | |
0.04034389100002045, | |
0.04221853199999259, | |
0.04050169600000686, | |
0.0400704510000196, | |
0.04005926899998258, | |
0.04009001700001136, | |
0.04012074499999585, | |
0.040222594999988814, | |
0.039350876999975526, | |
0.03923366800000849, | |
0.038506578999999874, | |
0.03920915199998376, | |
0.03872630000000754, | |
0.03882085600002938 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 49.92919042214147 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.5288759634615585e-06, | |
"ram": 6.389469317014736e-08, | |
"gpu": 0.0, | |
"total": 1.5927706566317058e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1255673.5595754117 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 974.962688, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 16, | |
"total": 0.39342278099999817, | |
"mean": 0.024588923812499885, | |
"stdev": 0.0006171843995977209, | |
"p50": 0.02457302499999514, | |
"p90": 0.025064998499999547, | |
"p95": 0.025402351249994126, | |
"p99": 0.026146282250005013, | |
"values": [ | |
0.02485407500000747, | |
0.0249489310000115, | |
0.024588408999989042, | |
0.026332265000007737, | |
0.02447769099998709, | |
0.024896002999980738, | |
0.025037617000009504, | |
0.02509237999998959, | |
0.02437222399998973, | |
0.02455764100000124, | |
0.024643802000014148, | |
0.023822327999994286, | |
0.02401862499999652, | |
0.024023353000018233, | |
0.02385097200001951, | |
0.023906464999981836 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 40.668717656184924 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.175050827189744e-07, | |
"ram": 3.834346358419673e-08, | |
"gpu": 0.0, | |
"total": 9.558485463031712e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1046190.8467273277 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 16, | |
"total": 0.38801420800007236, | |
"mean": 0.024250888000004522, | |
"stdev": 0.0006041895025125381, | |
"p50": 0.024242066499994053, | |
"p90": 0.024716031500005897, | |
"p95": 0.02503671774999816, | |
"p99": 0.025771006749999967, | |
"values": [ | |
0.024514710999994804, | |
0.024604979000002913, | |
0.024257179999978007, | |
0.02595457900000042, | |
0.024139569999988453, | |
0.02455254099999138, | |
0.024701299000014387, | |
0.024730763999997407, | |
0.02403589599998668, | |
0.0242269530000101, | |
0.02429985900002407, | |
0.02351462300001117, | |
0.023698347000021158, | |
0.02369771500002571, | |
0.02352442200000837, | |
0.023560770000017328 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 41.23560341377246 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |