IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
558671e
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": "5df58267768a617f3aef53a7f4314a13676dc113", | |
"transformers_version": "4.45.2", | |
"transformers_commit": null, | |
"accelerate_version": "1.0.0", | |
"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 | |
}, | |
"print_report": true, | |
"log_report": true | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1120.817152, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
1.7256093429999737 | |
], | |
"count": 1, | |
"total": 1.7256093429999737, | |
"mean": 1.7256093429999737, | |
"p50": 1.7256093429999737, | |
"p90": 1.7256093429999737, | |
"p95": 1.7256093429999737, | |
"p99": 1.7256093429999737, | |
"stdev": 0, | |
"stdev_": 0 | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 975.85152, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.044510401999957594, | |
0.0444038929999806, | |
0.04385826200001475, | |
0.04379754899997579, | |
0.04436992899996994, | |
0.043106389000001855, | |
0.043681193999987045, | |
0.04527934199995798, | |
0.0450845979999599, | |
0.04320992399999568, | |
0.04319289199997911, | |
0.045730787000024975, | |
0.04302772199997662, | |
0.0424353650000171, | |
0.04215703500000245 | |
], | |
"count": 15, | |
"total": 0.6578452829998014, | |
"mean": 0.04385635219998676, | |
"p50": 0.04379754899997579, | |
"p90": 0.04520144439995875, | |
"p95": 0.04541477549997808, | |
"p99": 0.0456675847000156, | |
"stdev": 0.001002878650862011, | |
"stdev_": 2.2867352174864966 | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 45.60342800240016 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.6958212579710024e-06, | |
"ram": 7.091040252197183e-08, | |
"gpu": 0.0, | |
"total": 1.7667316604929743e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1132033.8253529326 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 975.85152, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.027273757000045862, | |
0.027377811999997448, | |
0.027329381999948055, | |
0.02663257900002236, | |
0.026864533000036772, | |
0.026551134999976966, | |
0.026436130000035973, | |
0.027827371000000767, | |
0.026957154000001537, | |
0.026049496000041472, | |
0.027868257000022822, | |
0.02598618899997973, | |
0.025900629000034314, | |
0.026645891999976357, | |
0.027726102000031005 | |
], | |
"count": 15, | |
"total": 0.40342641800015144, | |
"mean": 0.02689509453334343, | |
"p50": 0.026864533000036772, | |
"p90": 0.02778686340001286, | |
"p95": 0.027839636800007384, | |
"p99": 0.027862532960019736, | |
"stdev": 0.0006359576069487408, | |
"stdev_": 2.3645858770278974 | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 37.181501584247684 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.99882159066089e-07, | |
"ram": 4.181174090421233e-08, | |
"gpu": 0.0, | |
"total": 1.0416938999703016e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 959974.9024435199 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.02691092899999603, | |
0.02701147700003048, | |
0.02697854599995253, | |
0.026237551000008352, | |
0.026504740000007132, | |
0.02618659399996659, | |
0.02602094400003807, | |
0.027437512999995306, | |
0.026580290000026707, | |
0.02571431000001212, | |
0.027338787000019238, | |
0.02565610099998139, | |
0.025564040000006116, | |
0.026314763000016228, | |
0.027381347000016376 | |
], | |
"count": 15, | |
"total": 0.39783793200007267, | |
"mean": 0.026522528800004844, | |
"p50": 0.026504740000007132, | |
"p90": 0.02736432300001752, | |
"p95": 0.027398196800010054, | |
"p99": 0.027429649759998256, | |
"stdev": 0.0006139492809966901, | |
"stdev_": 2.314821809135251 | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 37.70379542390458 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |