IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
5ae0cb1 verified
raw
history blame
9.65 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": "bca546ad398da0b080272f4f8173e22ecca10c92",
"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": 1109.385216,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 1,
"total": 4.915471243000013,
"mean": 4.915471243000013,
"stdev": 0.0,
"p50": 4.915471243000013,
"p90": 4.915471243000013,
"p95": 4.915471243000013,
"p99": 4.915471243000013,
"values": [
4.915471243000013
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 6.796866475000012e-05,
"ram": 2.840855823631332e-06,
"gpu": 0,
"total": 7.080952057363145e-05
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 962.736128,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.6442781190000062,
"mean": 0.04295187460000041,
"stdev": 0.0023650345439494686,
"p50": 0.04423893199998474,
"p90": 0.045441237200009255,
"p95": 0.04548435869999708,
"p99": 0.04553237813999317,
"values": [
0.04541514200002439,
0.0449561679999988,
0.04423893199998474,
0.044683939999998756,
0.04487329400001272,
0.044226258999998436,
0.045544382999992195,
0.04426767599997561,
0.045458633999999165,
0.03973912300000393,
0.04058706099999654,
0.039977656000019124,
0.040067563999997446,
0.04009131800000887,
0.040150968999995484
]
},
"throughput": {
"unit": "tokens/s",
"value": 46.56374183025718
},
"energy": {
"unit": "kWh",
"cpu": 1.5516485235042786e-06,
"ram": 6.48468905853602e-08,
"gpu": 0.0,
"total": 1.6164954140896387e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1237244.4626614295
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 963.52256,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.3981269340000324,
"mean": 0.02654179560000216,
"stdev": 0.0017111403890028775,
"p50": 0.027532461000021158,
"p90": 0.028267251400001213,
"p95": 0.028405583899996145,
"p99": 0.02852962557998353,
"values": [
0.028560635999980377,
0.028016592000000173,
0.027532461000021158,
0.028339133000002903,
0.02753778100000659,
0.028004750000008016,
0.02815942899999868,
0.0280052820000094,
0.02699743400000898,
0.02441738999999643,
0.024401581000006445,
0.024384839999981978,
0.02426232199999845,
0.024858741999992162,
0.024648561000020663
]
},
"throughput": {
"unit": "tokens/s",
"value": 37.676426081734974
},
"energy": {
"unit": "kWh",
"cpu": 9.040574851762788e-07,
"ram": 3.7782285990378704e-08,
"gpu": 0.0,
"total": 9.41839771166658e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1061751.7231846123
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 15,
"total": 0.3916473880000524,
"mean": 0.02610982586667016,
"stdev": 0.0016240268945102102,
"p50": 0.02703779999998801,
"p90": 0.027745428000002903,
"p95": 0.027890555100003666,
"p99": 0.028018804619993034,
"values": [
0.028050866999990376,
0.027489751000018714,
0.027058027000009588,
0.027821850000009363,
0.02703779999998801,
0.027482027000019116,
0.027630794999993213,
0.0274839610000015,
0.02658993500000406,
0.024092515000006642,
0.024073520000001736,
0.024044175000000223,
0.02393537300000048,
0.024523729000009098,
0.024333063000000266
]
},
"throughput": {
"unit": "tokens/s",
"value": 38.299757535975175
},
"energy": null,
"efficiency": null
}
}
}