IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
592c588 verified
raw
history blame
9.52 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_type": "gpt2",
"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": {},
"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,
"memory": true,
"latency": 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.342208,
"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": "593b48b93d71bee250bc8db76a7279c4b590c2bb",
"transformers_version": "4.42.4",
"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": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 1116.520448,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 1,
"total": 4.786965309999999,
"mean": 4.786965309999999,
"stdev": 0.0,
"p50": 4.786965309999999,
"p90": 4.786965309999999,
"p95": 4.786965309999999,
"p99": 4.786965309999999,
"values": [
4.786965309999999
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 6.8828993373447e-05,
"ram": 2.876880492468672e-06,
"gpu": 0,
"total": 7.170587386591567e-05
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 969.879552,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.6412512749999735,
"mean": 0.04580366249999811,
"stdev": 0.002235273592184407,
"p50": 0.046888499499999625,
"p90": 0.04789130350000335,
"p95": 0.04798499729999293,
"p99": 0.04808726985998277,
"values": [
0.045135852000015575,
0.04681051599999364,
0.04654692199997612,
0.04428011999999626,
0.047171520999995664,
0.0470295359999966,
0.047051658000015095,
0.04696648300000561,
0.04811283799998023,
0.04791615999999976,
0.047833305000011705,
0.04391087199999788,
0.04158371799999827,
0.040901773999991065
]
},
"throughput": {
"unit": "tokens/s",
"value": 43.664630530366054
},
"energy": {
"unit": "kWh",
"cpu": 1.585328155093723e-06,
"ram": 6.625360244115655e-08,
"gpu": 0.0,
"total": 1.6515817575348795e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1210960.3359782584
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 970.40384,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.39326086500003044,
"mean": 0.02809006178571646,
"stdev": 0.0018255096504469737,
"p50": 0.028999244000004865,
"p90": 0.02941002029999993,
"p95": 0.029506065149999473,
"p99": 0.029508690629989474,
"values": [
0.029509346999986974,
0.029187634999999545,
0.028634500000009666,
0.028765985999996246,
0.0295042980000062,
0.029136229000016556,
0.02919003899998529,
0.02892060700000343,
0.029105282000017496,
0.0290778810000063,
0.028283005999981015,
0.024626143000006095,
0.02489924299999302,
0.0244206690000226
]
},
"throughput": {
"unit": "tokens/s",
"value": 35.59977929662266
},
"energy": {
"unit": "kWh",
"cpu": 9.507205850548213e-07,
"ram": 3.973350785343543e-08,
"gpu": 0.0,
"total": 9.90454092908257e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1009637.9096821273
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 14,
"total": 0.38681820599998673,
"mean": 0.02762987185714191,
"stdev": 0.0017575742333629444,
"p50": 0.028494019999996567,
"p90": 0.02891739779998943,
"p95": 0.029001300599992418,
"p99": 0.029008214520002865,
"values": [
0.028996646999985387,
0.028732482999998865,
0.02817853700000228,
0.02826763299998447,
0.029009943000005478,
0.028647905000013907,
0.028677119000008133,
0.02842166499999621,
0.02857890800001428,
0.028566374999996924,
0.027782069999972236,
0.02430279899999732,
0.02456940700000132,
0.024086715000009917
]
},
"throughput": {
"unit": "tokens/s",
"value": 36.19271219100913
},
"energy": null,
"efficiency": null
}
}
}