IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
7a3fc2d verified
raw
history blame
8.26 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",
"model": "openai-community/gpt2",
"library": "transformers",
"device": "cpu",
"device_ids": null,
"seed": 42,
"inter_op_num_threads": null,
"intra_op_num_threads": null,
"hub_kwargs": {
"revision": "main",
"force_download": false,
"local_files_only": false,
"trust_remote_code": false
},
"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.346304,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-6.5.0-1018-azure-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.14",
"optimum_benchmark_version": "0.2.0",
"optimum_benchmark_commit": "b41c364fc95b27c894c71df85ec2bf4c8adb0e4d",
"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": "0.9.16",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 958.48448,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 13,
"total": 0.619807150000014,
"mean": 0.04767747307692415,
"stdev": 0.0020603439226835464,
"p50": 0.04793384100000253,
"p90": 0.04962197659997969,
"p95": 0.05005140759998881,
"p99": 0.0503834255199979,
"values": [
0.05046643000000017,
0.04977472599998123,
0.04858234400001038,
0.04901097899997353,
0.04793384100000253,
0.04779403100002355,
0.048052360000014005,
0.047925254000006134,
0.048038834999999835,
0.04787614299999632,
0.04791021699998055,
0.04352561000001742,
0.0429163800000083
]
},
"throughput": {
"unit": "tokens/s",
"value": 41.94853189415355
},
"energy": {
"unit": "kWh",
"cpu": 1.6951477086102522e-06,
"ram": 7.083869228711849e-08,
"gpu": 0.0,
"total": 1.7659864008973708e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1132511.5521748737
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 958.48448,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 13,
"total": 0.39077802200003475,
"mean": 0.03005984784615652,
"stdev": 0.0016019761983703314,
"p50": 0.03050901500000691,
"p90": 0.03133402860001411,
"p95": 0.03159724700001334,
"p99": 0.0318806030000087,
"values": [
0.03122567500000173,
0.0313611170000172,
0.031951442000007546,
0.03052874200000133,
0.02999832700001548,
0.03087032499999509,
0.030327197999980626,
0.030084657999992714,
0.030817366999997375,
0.03050901500000691,
0.030050104000025613,
0.026382587999989937,
0.026671464000003198
]
},
"throughput": {
"unit": "tokens/s",
"value": 33.26696812032802
},
"energy": {
"unit": "kWh",
"cpu": 9.944128107141568e-07,
"ram": 4.156079957501959e-08,
"gpu": 0.0,
"total": 1.0359736102891767e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 965275.5534196134
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 12,
"total": 0.9292835340000067,
"mean": 0.07744029450000056,
"stdev": 0.0035348697271615466,
"p50": 0.07841481900000247,
"p90": 0.08042851870000049,
"p95": 0.08081492074999944,
"p99": 0.08109825214999916,
"values": [
0.08116908499999909,
0.08052514999999971,
0.07955883700000754,
0.07794265699999414,
0.07869141700001592,
0.0784128399999986,
0.07802812599999243,
0.07884813799998369,
0.07841679800000634,
0.07801235600001633,
0.07006920699998886,
0.0696089230000041
]
},
"throughput": {
"unit": "tokens/s",
"value": 12.913174032415291
},
"energy": null,
"efficiency": null
}
}
}