IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
566a221 verified
raw
history blame
9.53 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": "4a884fa4ee31f882ca8d7e63513b8fff8137b30d",
"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.237824,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 1,
"total": 4.9653989300000205,
"mean": 4.9653989300000205,
"stdev": 0.0,
"p50": 4.9653989300000205,
"p90": 4.9653989300000205,
"p95": 4.9653989300000205,
"p99": 4.9653989300000205,
"values": [
4.9653989300000205
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 6.771148498333304e-05,
"ram": 2.83171407445898e-06,
"gpu": 0,
"total": 7.054319905779201e-05
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 970.354688,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.6295732419999638,
"mean": 0.0449695172857117,
"stdev": 0.0024287535148260976,
"p50": 0.04403330799999594,
"p90": 0.047781884499991635,
"p95": 0.0493668129000028,
"p99": 0.050944146580021936,
"values": [
0.04386620099998595,
0.0428761379999969,
0.04656094099999564,
0.04830514599998992,
0.05133848000002672,
0.04391149500000324,
0.04415512099998864,
0.04374348999999711,
0.04612090800000601,
0.04436016400001108,
0.04389773899998772,
0.04590895199999068,
0.041519129999983306,
0.04300933700000087
]
},
"throughput": {
"unit": "tokens/s",
"value": 44.47457123662446
},
"energy": {
"unit": "kWh",
"cpu": 1.6106152082222267e-06,
"ram": 6.734710288284976e-08,
"gpu": 0.0,
"total": 1.6779623111050764e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1191921.8845164855
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 970.747904,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.39320838299988736,
"mean": 0.028086313071420527,
"stdev": 0.0015801561390450282,
"p50": 0.027887114499989707,
"p90": 0.030684201199991892,
"p95": 0.031046544149991463,
"p99": 0.031118912029988052,
"values": [
0.028341383999986647,
0.02813963699998112,
0.030997834999993756,
0.0311370039999872,
0.029952388999987534,
0.026700082999980168,
0.027634591999998293,
0.02835668399998781,
0.027607150999983787,
0.02751096200000802,
0.026626907000007805,
0.02637916399999085,
0.025674875000021302,
0.02814971599997307
]
},
"throughput": {
"unit": "tokens/s",
"value": 35.604530842375276
},
"energy": {
"unit": "kWh",
"cpu": 9.9342749955553e-07,
"ram": 4.1537340480965794e-08,
"gpu": 0.0,
"total": 1.0349648400364965e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 966216.3981964223
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 14,
"total": 0.3877232919999756,
"mean": 0.027694520857141112,
"stdev": 0.0015320232748738006,
"p50": 0.027495255999994583,
"p90": 0.03021497729999112,
"p95": 0.030528359999998145,
"p99": 0.0305869224000034,
"values": [
0.027961392999998225,
0.027736191999991888,
0.030488942999994606,
0.030601563000004717,
0.029575723999982984,
0.02632083399998919,
0.02725431999999728,
0.027967977000002975,
0.027228253000004088,
0.027156969000003528,
0.026262125000016567,
0.026049757000009777,
0.025336342000002787,
0.027782899999976962
]
},
"throughput": {
"unit": "tokens/s",
"value": 36.108225347475084
},
"energy": null,
"efficiency": null
}
}
}