IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
6e6ce28 verified
raw
history blame
8.27 kB
{
"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": "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": {},
"hub_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,
"latency": true,
"memory": 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-1022-azure-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.14",
"optimum_benchmark_version": "0.2.1",
"optimum_benchmark_commit": "9a8b29987613b8b04c221447a49b37ee314548ff",
"transformers_version": "4.42.3",
"transformers_commit": null,
"accelerate_version": "0.31.0",
"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": {
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 956.526592,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 13,
"total": 0.6378364839999904,
"mean": 0.04906434492307618,
"stdev": 0.0021008574413539072,
"p50": 0.04890757800001211,
"p90": 0.0507737607999843,
"p95": 0.05221143759998767,
"p99": 0.05368967152000323,
"values": [
0.05405923000000712,
0.05097957599997471,
0.04890979299995024,
0.04814796700003399,
0.04814300800001092,
0.04995050000002266,
0.049756537000007484,
0.049341330999993716,
0.047951850000004015,
0.04882190799997943,
0.04890757800001211,
0.04872964499998034,
0.04413756100001365
]
},
"throughput": {
"unit": "tokens/s",
"value": 40.76279838517421
},
"energy": {
"unit": "kWh",
"cpu": 1.6674685809347367e-06,
"ram": 6.968496072403241e-08,
"gpu": 0.0,
"total": 1.737153541658769e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1151308.708204483
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 956.526592,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 13,
"total": 0.39171619900008636,
"mean": 0.03013201530769895,
"stdev": 0.0016810689361049936,
"p50": 0.030122733000041535,
"p90": 0.031056456599958437,
"p95": 0.03234407659997487,
"p99": 0.03383635291999781,
"values": [
0.03420942200000354,
0.029241294000030393,
0.030122733000041535,
0.03088023099996917,
0.03050217300000213,
0.031100512999955754,
0.0306525550000174,
0.029580258000009962,
0.03081067099998336,
0.028963894000014534,
0.02920186000000058,
0.030115740000042024,
0.026334855000015978
]
},
"throughput": {
"unit": "tokens/s",
"value": 33.18729231311961
},
"energy": {
"unit": "kWh",
"cpu": 9.912686546643571e-07,
"ram": 4.142798445337805e-08,
"gpu": 0.0,
"total": 1.0326966391177357e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 968338.5828139526
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 12,
"total": 0.9416927060000262,
"mean": 0.07847439216666885,
"stdev": 0.002556070288920903,
"p50": 0.0789358294999829,
"p90": 0.08043597459999888,
"p95": 0.08072864014998231,
"p99": 0.08099842482996791,
"values": [
0.08028523000001542,
0.07902762700001631,
0.07905465799996136,
0.07865735400002904,
0.08106587099996432,
0.08045272399999703,
0.07890389499999628,
0.07878092500004641,
0.07779963799998768,
0.07814285099999552,
0.07896776399996952,
0.0705541690000473
]
},
"throughput": {
"unit": "tokens/s",
"value": 12.74301045717101
},
"energy": null,
"efficiency": null
}
}
}