IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
ca977fa verified
raw
history blame
9.53 kB
{
"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-1024-azure-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.14",
"optimum_benchmark_version": "0.3.1",
"optimum_benchmark_commit": "e185b4a299427f88d515b3c18d3c0c0dc8e91cd8",
"transformers_version": "4.43.3",
"transformers_commit": null,
"accelerate_version": "0.33.0",
"accelerate_commit": null,
"diffusers_version": "0.29.2",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.8",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 1121.181696,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 1,
"total": 4.9229796939999915,
"mean": 4.9229796939999915,
"stdev": 0.0,
"p50": 4.9229796939999915,
"p90": 4.9229796939999915,
"p95": 4.9229796939999915,
"p99": 4.9229796939999915,
"values": [
4.9229796939999915
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 6.818298763699002e-05,
"ram": 2.8498839763472004e-06,
"gpu": 0,
"total": 7.103287161333722e-05
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 974.92992,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.6255480579999357,
"mean": 0.044682004142852554,
"stdev": 0.0008305212294736774,
"p50": 0.044716764500009276,
"p90": 0.0455243362999795,
"p95": 0.04579019419997508,
"p99": 0.046159390039973686,
"values": [
0.043439609999950335,
0.04440303500001619,
0.04351444999997511,
0.04625168899997334,
0.04351709700000583,
0.04497875699996712,
0.044284193000009964,
0.04512453900002811,
0.04524391199998945,
0.044454772000051435,
0.04554169699997601,
0.045228952999991634,
0.045483827999987625,
0.04408152600001358
]
},
"throughput": {
"unit": "tokens/s",
"value": 44.7607496209394
},
"energy": {
"unit": "kWh",
"cpu": 1.6783583495352006e-06,
"ram": 7.014120424955195e-08,
"gpu": 0.0,
"total": 1.7484995537847528e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1143837.866970487
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 975.454208,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.3787723810000898,
"mean": 0.027055170071434986,
"stdev": 0.000787602164861275,
"p50": 0.026988293000016483,
"p90": 0.028080331900002878,
"p95": 0.028665916400012748,
"p99": 0.028962339280027435,
"values": [
0.02682267100004765,
0.026663422000012815,
0.02697696700005281,
0.026459482999996453,
0.027085407999948075,
0.027040214999999534,
0.027148187000022972,
0.026999618999980157,
0.029036445000031108,
0.027179504000002908,
0.02683565400002408,
0.02846640100000286,
0.026121924999984003,
0.025936479999984385
]
},
"throughput": {
"unit": "tokens/s",
"value": 36.96151224921724
},
"energy": {
"unit": "kWh",
"cpu": 1.0035566157764864e-06,
"ram": 4.194064190701851e-08,
"gpu": 0.0,
"total": 1.0454972576835038e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 956482.6618633973
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 14,
"total": 0.37318256800011795,
"mean": 0.02665589771429414,
"stdev": 0.0007650391159718242,
"p50": 0.026545257500004027,
"p90": 0.027581045499971424,
"p95": 0.02817562644998759,
"p99": 0.0285625828900055,
"values": [
0.026448624000011023,
0.026291629000013472,
0.02640648500005227,
0.02609491399999797,
0.02670488899997281,
0.0266649660000553,
0.026768660000016098,
0.02662639400000444,
0.02865932200000998,
0.026801409999961834,
0.026464121000003615,
0.027915174999975534,
0.025757406000025185,
0.025578573000018423
]
},
"throughput": {
"unit": "tokens/s",
"value": 37.51514995736772
},
"energy": null,
"efficiency": null
}
}
}