IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
5c71e71 verified
raw
history blame
8.39 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": "20967d442ecbde73b309c993163c266eac5ccef4",
"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": 959.107072,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.6282161100002099,
"mean": 0.04487257928572928,
"stdev": 0.0025972818419692507,
"p50": 0.04363796800001296,
"p90": 0.04859491240003422,
"p95": 0.04904745035003373,
"p99": 0.049606544470021274,
"values": [
0.049746318000018164,
0.04867113700004211,
0.04697970400002305,
0.04841705500001581,
0.04274060400001645,
0.043753348999985064,
0.04396647699996947,
0.043421378000005006,
0.042680541000038374,
0.042395248000048014,
0.04352258700004086,
0.043032419999974536,
0.0470917620000364,
0.04179752999999664
]
},
"throughput": {
"unit": "tokens/s",
"value": 44.57064942188548
},
"energy": {
"unit": "kWh",
"cpu": 1.624810419700764e-06,
"ram": 6.790297741584795e-08,
"gpu": 0.0,
"total": 1.692713397116612e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1181534.92694441
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 959.107072,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.39081980100002056,
"mean": 0.02791570007143004,
"stdev": 0.0017350812802607318,
"p50": 0.0269323460000237,
"p90": 0.030495477599987452,
"p95": 0.030559910800005242,
"p99": 0.03062053656001865,
"values": [
0.030635693000022002,
0.030519104999996216,
0.030440346999967005,
0.026652302000002237,
0.026433882999981506,
0.02739581299999827,
0.027163759000018217,
0.02670093300002918,
0.026561302000004616,
0.026676016999999774,
0.02663800599998467,
0.029819677000034517,
0.029415596999967875,
0.025767367000014474
]
},
"throughput": {
"unit": "tokens/s",
"value": 35.822135839016156
},
"energy": {
"unit": "kWh",
"cpu": 9.84093182616763e-07,
"ram": 4.1128576920803384e-08,
"gpu": 0.0,
"total": 1.0252217595375671e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 975398.7278333387
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 13,
"total": 0.9390466639999886,
"mean": 0.07223435876922989,
"stdev": 0.003564706201283478,
"p50": 0.07114169800001946,
"p90": 0.07727933240000766,
"p95": 0.07814709059999814,
"p99": 0.07901396051998973,
"values": [
0.07923067799998762,
0.07742469900000515,
0.0752151799999865,
0.06920477400001346,
0.07115754699998433,
0.07114169800001946,
0.07014970099999118,
0.0692155049999883,
0.06913170699999682,
0.07016711500000383,
0.07270055300000422,
0.07669786600001771,
0.06760964099999
]
},
"throughput": {
"unit": "tokens/s",
"value": 13.843827467130174
},
"energy": null,
"efficiency": null
}
}
}