IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
2e128b5 verified
raw
history blame
8.34 kB
{
"config": {
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.3.0+cpu",
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
"task": "text-generation",
"library": "transformers",
"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": {},
"hub_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,
"latency": true,
"memory": 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",
"start_method": "spawn"
},
"environment": {
"cpu": " AMD EPYC 7763 64-Core Processor",
"cpu_count": 4,
"cpu_ram_mb": 16757.354496,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-6.5.0-1021-azure-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.14",
"optimum_benchmark_version": "0.2.0",
"optimum_benchmark_commit": "519f5ad32b6cd1fea2bd501503e24d19a1e23c22",
"transformers_version": "4.40.2",
"transformers_commit": null,
"accelerate_version": "0.30.1",
"accelerate_commit": null,
"diffusers_version": "0.27.2",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.3",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 956.19072,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.6442976150000845,
"mean": 0.04602125821429175,
"stdev": 0.0026015645220651335,
"p50": 0.04631292800002029,
"p90": 0.04780322490003073,
"p95": 0.04933660205002468,
"p99": 0.05137414040999999,
"values": [
0.04726590799998576,
0.046043585000006715,
0.04630186700001104,
0.046715800000015406,
0.04742532500000607,
0.04647002000001521,
0.046113835999960884,
0.046229230999983884,
0.04632398900002954,
0.047965182000041295,
0.051883524999993824,
0.04167295299998841,
0.04202367700003151,
0.04186271700001498
]
},
"throughput": {
"unit": "tokens/s",
"value": 43.45817732073449
},
"energy": {
"unit": "kWh",
"cpu": 1.6599653495682612e-06,
"ram": 6.937188619229317e-08,
"gpu": 0.0,
"total": 1.7293372357605545e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1156512.4249004037
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 956.19072,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.4015182429998845,
"mean": 0.028679874499991747,
"stdev": 0.001459387188051206,
"p50": 0.029090048999989904,
"p90": 0.02968808949997879,
"p95": 0.03020780624997883,
"p99": 0.030976322049983764,
"values": [
0.02939843000001474,
0.028604666999967776,
0.029300426999952833,
0.029416293999986465,
0.02969053599997551,
0.028834668000001784,
0.028879671000026974,
0.029672622000020965,
0.031168450999984998,
0.029682380999986435,
0.028366564000009475,
0.025951943999984906,
0.026268525999967096,
0.02628306200000452
]
},
"throughput": {
"unit": "tokens/s",
"value": 34.86765606314936
},
"energy": {
"unit": "kWh",
"cpu": 9.77447904922344e-07,
"ram": 4.085141083469303e-08,
"gpu": 0.0,
"total": 1.0182993157570368e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 982029.531519981
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 13,
"total": 0.9695522889999779,
"mean": 0.0745809453076906,
"stdev": 0.00385916121725017,
"p50": 0.07558691600002021,
"p90": 0.07765270479999345,
"p95": 0.07877236819998643,
"p99": 0.08009081443998865,
"values": [
0.074671445999968,
0.07558691600002021,
0.07616815000000088,
0.07712849500001084,
0.07534657600001538,
0.07502181099999916,
0.07584827299996277,
0.07756887200002893,
0.07767366299998457,
0.08042042599998922,
0.06766062399998418,
0.06827810600003659,
0.06817893099997718
]
},
"throughput": {
"unit": "tokens/s",
"value": 13.408250537377976
},
"energy": null,
"efficiency": null
}
}
}