IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
4b14ab7 verified
raw
history blame
9.4 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_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-1023-azure-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.14",
"optimum_benchmark_version": "0.3.1",
"optimum_benchmark_commit": "b6683a24439f2dd9ea7e05cec40bf36c11a71f7a",
"transformers_version": "4.42.4",
"transformers_commit": null,
"accelerate_version": "0.32.1",
"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": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 1103.888384,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 1,
"total": 4.923219599000021,
"mean": 4.923219599000021,
"stdev": 0.0,
"p50": 4.923219599000021,
"p90": 4.923219599000021,
"p95": 4.923219599000021,
"p99": 4.923219599000021,
"values": [
4.923219599000021
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 6.688891781700983e-05,
"ram": 2.795761876168399e-06,
"gpu": 0,
"total": 6.968467969317822e-05
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 957.759488,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 13,
"total": 0.6384947779999663,
"mean": 0.049114982923074334,
"stdev": 0.0015710323550845065,
"p50": 0.04923834199999533,
"p90": 0.05079238959999657,
"p95": 0.05164564539999787,
"p99": 0.052489769079996904,
"values": [
0.04761659700000109,
0.0492790669999863,
0.048430805000009514,
0.04632397500000707,
0.05270079999999666,
0.0495008609999843,
0.048120036000000255,
0.04830081299999733,
0.04923834199999533,
0.050942208999998684,
0.050193111999988105,
0.04999807900000519,
0.04785008199999652
]
},
"throughput": {
"unit": "tokens/s",
"value": 40.720771564401694
},
"energy": {
"unit": "kWh",
"cpu": 1.6877939855610887e-06,
"ram": 7.053619218439167e-08,
"gpu": 0.0,
"total": 1.75833017774548e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1137442.7996022836
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 958.283776,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 13,
"total": 0.39746424799994884,
"mean": 0.030574172923072986,
"stdev": 0.0013522381556191905,
"p50": 0.031017617999992808,
"p90": 0.031744244200001506,
"p95": 0.031773450799994406,
"p99": 0.03179830375998563,
"values": [
0.03171026100000063,
0.03003296299999647,
0.03123821099998736,
0.031189600999994127,
0.030182600999978604,
0.031049068000015723,
0.031804516999983434,
0.030656965999980912,
0.031017617999992808,
0.029742552000016076,
0.030658339000012802,
0.03175274000000172,
0.026428810999988173
]
},
"throughput": {
"unit": "tokens/s",
"value": 32.70734428421264
},
"energy": {
"unit": "kWh",
"cpu": 1.0164049047010916e-06,
"ram": 4.2475098146923066e-08,
"gpu": 0.0,
"total": 1.058880002848015e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 944394.0742202624
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 13,
"total": 0.3911294010000006,
"mean": 0.030086877000000047,
"stdev": 0.0013132503407730603,
"p50": 0.030503820000006954,
"p90": 0.03121630099999493,
"p95": 0.03126037939999833,
"p99": 0.031308142279997356,
"values": [
0.03122057699999914,
0.029550102000001743,
0.03072844999999802,
0.03070298299999763,
0.029703447000002825,
0.030579452000011997,
0.03132008299999711,
0.030135564000005388,
0.030503820000006954,
0.02922971500001381,
0.03016792500000065,
0.031199196999978085,
0.026088085999987243
]
},
"throughput": {
"unit": "tokens/s",
"value": 33.237082067374374
},
"energy": null,
"efficiency": null
}
}
}