IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
c0f328b verified
raw
history blame
9.51 kB
{
"config": {
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.4.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": null,
"numactl": false,
"numactl_kwargs": {},
"start_method": "spawn"
},
"environment": {
"cpu": " AMD EPYC 7763 64-Core Processor",
"cpu_count": 4,
"cpu_ram_mb": 16766.767104,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-6.8.0-1014-azure-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.15",
"optimum_benchmark_version": "0.4.0",
"optimum_benchmark_commit": "71ce2de79f92a4f427fbaf5458891d113254e906",
"transformers_version": "4.44.2",
"transformers_commit": null,
"accelerate_version": "0.34.2",
"accelerate_commit": null,
"diffusers_version": "0.30.3",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.9",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 1116.09856,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 1,
"total": 4.832708517000015,
"mean": 4.832708517000015,
"stdev": 0.0,
"p50": 4.832708517000015,
"p90": 4.832708517000015,
"p95": 4.832708517000015,
"p99": 4.832708517000015,
"values": [
4.832708517000015
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 6.824350077222272e-05,
"ram": 2.854018151649994e-06,
"gpu": 0,
"total": 7.109751892387272e-05
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 969.95328,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.6584324549998541,
"mean": 0.04703088964284673,
"stdev": 0.002484926620602794,
"p50": 0.047890897999991466,
"p90": 0.04860894719996054,
"p95": 0.0490566625999719,
"p99": 0.04962813011999117,
"values": [
0.04738129499997967,
0.04846177499996429,
0.048022119999984625,
0.0460693790000164,
0.04822648300000765,
0.04867202099995893,
0.04756405799997765,
0.04723407799997403,
0.04835496499998726,
0.04775967599999831,
0.04977099699999599,
0.04837178700000777,
0.041284093999991,
0.04125972700001057
]
},
"throughput": {
"unit": "tokens/s",
"value": 42.52524277529151
},
"energy": {
"unit": "kWh",
"cpu": 1.6316658798612017e-06,
"ram": 6.822746621136479e-08,
"gpu": 0.0,
"total": 1.6998933460725666e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1176544.4018125017
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 970.60864,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.40461865100002115,
"mean": 0.028901332214287225,
"stdev": 0.0016794526066220444,
"p50": 0.029464260000025888,
"p90": 0.029907232099986913,
"p95": 0.03003449939998859,
"p99": 0.030101976679992502,
"values": [
0.029539386999999806,
0.029401156999995237,
0.029453865000050428,
0.02947465500000135,
0.029371812000022146,
0.029660653999997066,
0.02965068599996812,
0.030118845999993482,
0.029360550000035346,
0.029989081999985956,
0.029716248999989148,
0.029224393999982112,
0.024926706000030663,
0.02473060799997029
]
},
"throughput": {
"unit": "tokens/s",
"value": 34.60048113303424
},
"energy": {
"unit": "kWh",
"cpu": 9.62399673472037e-07,
"ram": 4.0244014238066495e-08,
"gpu": 0.0,
"total": 1.002643687710104e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 997363.2829463657
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 14,
"total": 0.3977014180002243,
"mean": 0.028407244142873163,
"stdev": 0.0016172086808216586,
"p50": 0.028943110500023295,
"p90": 0.029375086900000725,
"p95": 0.02950108954999564,
"p99": 0.029565638709988205,
"values": [
0.028979083000024275,
0.0288971800000013,
0.028961640000034095,
0.028924581000012495,
0.028838139000015417,
0.029116872000031435,
0.029100592000020242,
0.02958177599998635,
0.02882050500005562,
0.029457643000000644,
0.02918245600000091,
0.028876340000010714,
0.024577579000037986,
0.024387031999992814
]
},
"throughput": {
"unit": "tokens/s",
"value": 35.20228836597234
},
"energy": null,
"efficiency": null
}
}
}