IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
e5ef348 verified
raw
history blame
9.52 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-1025-azure-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.14",
"optimum_benchmark_version": "0.4.0",
"optimum_benchmark_commit": "7bf21f8f337be20576044baf0fee5e705e4928fa",
"transformers_version": "4.44.0",
"transformers_commit": null,
"accelerate_version": "0.33.0",
"accelerate_commit": null,
"diffusers_version": "0.30.0",
"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": 1120.673792,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 1,
"total": 4.951380179000012,
"mean": 4.951380179000012,
"stdev": 0.0,
"p50": 4.951380179000012,
"p90": 4.951380179000012,
"p95": 4.951380179000012,
"p99": 4.951380179000012,
"values": [
4.951380179000012
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 6.907910442222216e-05,
"ram": 2.887335711031522e-06,
"gpu": 0,
"total": 7.196644013325369e-05
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 974.143488,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.6282671150000283,
"mean": 0.04487622250000202,
"stdev": 0.0025580467398338947,
"p50": 0.044886641000005056,
"p90": 0.04818485429999555,
"p95": 0.048596968749970416,
"p99": 0.048922168949958975,
"values": [
0.046761202000027424,
0.04900346899995611,
0.04773398500003623,
0.04547815300003322,
0.048378083999978116,
0.04544010199998638,
0.04199639799998067,
0.04263835299997254,
0.04359836200001155,
0.04433318000002373,
0.04246567200004847,
0.047377950999987206,
0.04118855399997301,
0.04187365000001364
]
},
"throughput": {
"unit": "tokens/s",
"value": 44.56703101514193
},
"energy": {
"unit": "kWh",
"cpu": 1.6872348629629256e-06,
"ram": 7.051244712126714e-08,
"gpu": 0.0,
"total": 1.7577473100841928e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1137819.9747631552
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 974.798848,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.38019824100007327,
"mean": 0.027157017214290948,
"stdev": 0.0016913367913499366,
"p50": 0.02652138150003225,
"p90": 0.02990361449997181,
"p95": 0.030082794199989847,
"p99": 0.030326243640025723,
"values": [
0.029867868999986058,
0.03038710600003469,
0.028403250999986085,
0.029918933999965702,
0.026827366000020447,
0.026010444999997162,
0.02583866500003751,
0.026505006000036246,
0.02681026400000519,
0.026332734999982677,
0.02635287199996128,
0.02653775700002825,
0.02533035800001926,
0.02507561300001271
]
},
"throughput": {
"unit": "tokens/s",
"value": 36.82289524321419
},
"energy": {
"unit": "kWh",
"cpu": 1.006280074074063e-06,
"ram": 4.2054794630134116e-08,
"gpu": 0.0,
"total": 1.0483348687041972e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 953893.674485957
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 14,
"total": 0.374511580999922,
"mean": 0.026750827214280144,
"stdev": 0.0016268243078416131,
"p50": 0.026178117000029033,
"p90": 0.029391921999967964,
"p95": 0.029568790299981627,
"p99": 0.029802955660006774,
"values": [
0.029346988999975565,
0.02986149700001306,
0.027940238999974554,
0.029411178999964704,
0.0264470380000148,
0.025657186999978876,
0.025496748000023217,
0.0261564770000291,
0.026443320999987918,
0.02597231400000055,
0.025830508999945323,
0.026199757000028967,
0.02500447099998837,
0.024743854999996984
]
},
"throughput": {
"unit": "tokens/s",
"value": 37.38202157225925
},
"energy": null,
"efficiency": null
}
}
}