IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
21704dd verified
raw
history blame
8.45 kB
{
"config": {
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.3.1+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",
"numactl": false,
"numactl_kwargs": {},
"start_method": "spawn"
},
"environment": {
"cpu": " AMD EPYC 7763 64-Core Processor",
"cpu_count": 4,
"cpu_ram_mb": 16757.338112,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-6.5.0-1023-azure-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.14",
"optimum_benchmark_version": "0.3.1",
"optimum_benchmark_commit": "c895bf73a88625eb69457460ea71175ef52a6cb9",
"transformers_version": "4.42.3",
"transformers_commit": null,
"accelerate_version": "0.32.1",
"accelerate_commit": null,
"diffusers_version": "0.29.2",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.7",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 951.296,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.6263326659999962,
"mean": 0.0447380475714283,
"stdev": 0.0029586513659995736,
"p50": 0.046470490999993785,
"p90": 0.04748351039999647,
"p95": 0.047532928550003815,
"p99": 0.047536616910015254,
"values": [
0.047537539000018114,
0.04641709599999899,
0.04753044599999612,
0.045910859999992226,
0.04665894800001524,
0.04737399399999731,
0.0469719330000089,
0.04677776899998776,
0.04652388599998858,
0.04329594600000064,
0.04044702400000233,
0.04043652499998984,
0.04012838899998883,
0.04032231100001127
]
},
"throughput": {
"unit": "tokens/s",
"value": 44.70467775346747
},
"energy": {
"unit": "kWh",
"cpu": 1.5846464898851183e-06,
"ram": 6.622484247565507e-08,
"gpu": 0.0,
"total": 1.6508713323607735e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1211481.452730763
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 951.296,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.38897942500000227,
"mean": 0.027784244642857305,
"stdev": 0.0021795230420107296,
"p50": 0.029203817000009735,
"p90": 0.029673101800000268,
"p95": 0.029818707600006177,
"p99": 0.0298983071200081,
"values": [
0.029765131000004885,
0.029441837000007354,
0.029363930999977583,
0.02991820700000858,
0.028975855999988198,
0.029458366999989494,
0.029244217000012895,
0.02921480300000212,
0.02919283100001735,
0.02494374399998378,
0.024798943999996936,
0.024913598000011916,
0.025219410000005382,
0.024528548999995792
]
},
"throughput": {
"unit": "tokens/s",
"value": 35.99162089357276
},
"energy": {
"unit": "kWh",
"cpu": 9.554523030916855e-07,
"ram": 3.993149819015848e-08,
"gpu": 0.0,
"total": 9.953838012818435e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1004637.6068328738
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 14,
"total": 0.38289486800002237,
"mean": 0.027349633428573026,
"stdev": 0.002107019988854247,
"p50": 0.028686471000014535,
"p90": 0.02919502419998423,
"p95": 0.02933636414999512,
"p99": 0.02941392163001467,
"values": [
0.02928416199998196,
0.02894623100002036,
0.028887901999979704,
0.029433311000019557,
0.02851327199999787,
0.02898703599998953,
0.028753160000007938,
0.028707726000021694,
0.028665216000007376,
0.024597567999990133,
0.024487983000000213,
0.024588980999993737,
0.02482866900001568,
0.024213650999996617
]
},
"throughput": {
"unit": "tokens/s",
"value": 36.56356135856901
},
"energy": null,
"efficiency": null
}
}
}