IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
3160fd0 verified
raw
history blame
8.4 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": "01d97c3b80521824bd48931fdf6fe2b93ae98bbb",
"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.664128,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.6259215840000252,
"mean": 0.04470868457143037,
"stdev": 0.0022939663500018918,
"p50": 0.043769357000002174,
"p90": 0.048089518100005085,
"p95": 0.04964159665000238,
"p99": 0.05047913932999904,
"values": [
0.05068852499999821,
0.04907786600000463,
0.04293400700001371,
0.04381882900000278,
0.04392255199999795,
0.04289968300000169,
0.04357318199998872,
0.04327136300000234,
0.043123398000005864,
0.04357777199999191,
0.04384216200000424,
0.045688987000005454,
0.04371988500000157,
0.04578337300000612
]
},
"throughput": {
"unit": "tokens/s",
"value": 44.73403812193649
},
"energy": {
"unit": "kWh",
"cpu": 1.6915323653658808e-06,
"ram": 7.069100939563554e-08,
"gpu": 0.0,
"total": 1.7622233747615162e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1134929.9008536092
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 959.664128,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.3884702349999998,
"mean": 0.027747873928571413,
"stdev": 0.0012341039342716373,
"p50": 0.02734965800000566,
"p90": 0.029258482399990272,
"p95": 0.030247627199992164,
"p99": 0.031161741440000695,
"values": [
0.03139027000000283,
0.029632357999986425,
0.027422628000010718,
0.02744358600000396,
0.026854253999999855,
0.027125967999978684,
0.027495414000014762,
0.026990998000002264,
0.02702737499998875,
0.026978214000024536,
0.02691326299998309,
0.02753311300000405,
0.027276688000000604,
0.028386105999999245
]
},
"throughput": {
"unit": "tokens/s",
"value": 36.038797155205486
},
"energy": {
"unit": "kWh",
"cpu": 1.0187692457927022e-06,
"ram": 4.257896128252051e-08,
"gpu": 0.0,
"total": 1.0613482070752237e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 942197.8511234479
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 13,
"total": 0.9325598359999958,
"mean": 0.07173537199999967,
"stdev": 0.0023415807633051866,
"p50": 0.07083575400000086,
"p90": 0.07400461379999115,
"p95": 0.07602001719998838,
"p99": 0.07821214503999158,
"values": [
0.07876017699999238,
0.07035103500001583,
0.0712637789999917,
0.07083575400000086,
0.07004571900000656,
0.0710509239999908,
0.07031886600000803,
0.07016754399998604,
0.07057194600000116,
0.07075963299999444,
0.07325009300001284,
0.07099112200000945,
0.07419324399998573
]
},
"throughput": {
"unit": "tokens/s",
"value": 13.940124266728617
},
"energy": null,
"efficiency": null
}
}
}