IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
5ead511
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": "error", | |
"numactl": false, | |
"numactl_kwargs": {}, | |
"start_method": "spawn" | |
}, | |
"environment": { | |
"cpu": " AMD EPYC 7763 64-Core Processor", | |
"cpu_count": 4, | |
"cpu_ram_mb": 16757.338112, | |
"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": "8e57994b5ce38f2b6b651d101ec502f7ee7fbb9a", | |
"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.329728, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 5.017070402999991, | |
"mean": 5.017070402999991, | |
"stdev": 0.0, | |
"p50": 5.017070402999991, | |
"p90": 5.017070402999991, | |
"p95": 5.017070402999991, | |
"p99": 5.017070402999991, | |
"values": [ | |
5.017070402999991 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.728224047222178e-05, | |
"ram": 2.8122199025803335e-06, | |
"gpu": 0, | |
"total": 7.00944603748021e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 974.061568, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 13, | |
"total": 0.6606835739999042, | |
"mean": 0.05082181338460801, | |
"stdev": 0.00118348843917796, | |
"p50": 0.050745018999975855, | |
"p90": 0.052376879400014786, | |
"p95": 0.05250148280000531, | |
"p99": 0.052639702159983696, | |
"values": [ | |
0.04951615900000661, | |
0.0508758940000007, | |
0.05048663799999531, | |
0.0488328349999847, | |
0.0526742569999783, | |
0.05238630000002331, | |
0.04905504999999266, | |
0.05033489999999574, | |
0.05167631199998368, | |
0.052339196999980686, | |
0.050607342999967386, | |
0.050745018999975855, | |
0.05115367000001925 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 39.3531805892964 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.8056321606061028e-06, | |
"ram": 7.545852330396526e-08, | |
"gpu": 0.0, | |
"total": 1.8810906839100681e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1063212.9631532514 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 974.716928, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 13, | |
"total": 0.39320495200001915, | |
"mean": 0.030246534769232242, | |
"stdev": 0.0011112364677568942, | |
"p50": 0.030108585999983006, | |
"p90": 0.03108527659999254, | |
"p95": 0.032026009600008364, | |
"p99": 0.03303110032001769, | |
"values": [ | |
0.030672646999960307, | |
0.030108585999983006, | |
0.029186296000034417, | |
0.030253605999973843, | |
0.033282373000020016, | |
0.03036757799998213, | |
0.029989742999987357, | |
0.03046646000001374, | |
0.031188434000000598, | |
0.02951857599998675, | |
0.029828453000050104, | |
0.030030740000029255, | |
0.028311459999997624 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 33.06163855230228 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.652748879125039e-07, | |
"ram": 4.034191692201517e-08, | |
"gpu": 0.0, | |
"total": 1.0056168048345194e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 994414.5674500301 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 13, | |
"total": 0.3864029629999095, | |
"mean": 0.029723304846146884, | |
"stdev": 0.001084611536461603, | |
"p50": 0.029584508999960235, | |
"p90": 0.03052344859999039, | |
"p95": 0.03146941699999388, | |
"p99": 0.03249196819998815, | |
"values": [ | |
0.030148078999957306, | |
0.029584508999960235, | |
0.028685021999990568, | |
0.02969060699996362, | |
0.03274760599998672, | |
0.029847748999998203, | |
0.029390385999988666, | |
0.029922548000001825, | |
0.03061729099999866, | |
0.02901574999998502, | |
0.029310028000054444, | |
0.029504210000027342, | |
0.0279391779999969 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 33.64363435278069 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |