IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
77628ef 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": "034e40c3ab573ad44343a7fcce8e83f9a39327de",
"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": 1115.365376,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 1,
"total": 4.762582393000002,
"mean": 4.762582393000002,
"stdev": 0.0,
"p50": 4.762582393000002,
"p90": 4.762582393000002,
"p95": 4.762582393000002,
"p99": 4.762582393000002,
"values": [
4.762582393000002
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 6.732519467671713e-05,
"ram": 2.8140236325225484e-06,
"gpu": 0,
"total": 7.013921830923968e-05
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 968.982528,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.6370306800000378,
"mean": 0.04550219142857413,
"stdev": 0.00231082484740105,
"p50": 0.046459437000009984,
"p90": 0.04711479129999816,
"p95": 0.04722313900000472,
"p99": 0.047379419800010966,
"values": [
0.046816761000002316,
0.047085180000010496,
0.047418490000012525,
0.0451441920000093,
0.047107420999992655,
0.04711795000000052,
0.04653160099999809,
0.04638727300002188,
0.04665427899999486,
0.045672484000021996,
0.045932907999997497,
0.0449094749999972,
0.04010269899998775,
0.04014996699999074
]
},
"throughput": {
"unit": "tokens/s",
"value": 43.95392699139441
},
"energy": {
"unit": "kWh",
"cpu": 1.5932177437676324e-06,
"ram": 6.658396984598766e-08,
"gpu": 0.0,
"total": 1.65980171361362e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1204963.2095183954
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 969.506816,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.3865949159998934,
"mean": 0.027613922571420955,
"stdev": 0.0017606049491948248,
"p50": 0.028410178999990876,
"p90": 0.028891455399983102,
"p95": 0.02918994339998875,
"p99": 0.02946532707999921,
"values": [
0.028580460000000585,
0.029004588999981706,
0.028256507999998348,
0.028627476999986357,
0.02953417300000183,
0.02836241499997527,
0.02845794300000648,
0.028546475999974064,
0.028553329000004624,
0.027918899999974656,
0.027451150999979745,
0.02555762099999015,
0.023979066000009652,
0.023764808000009907
]
},
"throughput": {
"unit": "tokens/s",
"value": 36.21361642532273
},
"energy": {
"unit": "kWh",
"cpu": 9.199000133408446e-07,
"ram": 3.844411820522567e-08,
"gpu": 0.0,
"total": 9.583441315460704e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1043466.5034017868
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 14,
"total": 0.3801921429999311,
"mean": 0.027156581642852222,
"stdev": 0.001693766891991129,
"p50": 0.027950138499988952,
"p90": 0.02838088299998276,
"p95": 0.028687899799982118,
"p99": 0.02896411755999509,
"values": [
0.02807176400000344,
0.02850198399997339,
0.027788517999994156,
0.02809831400000462,
0.02903317199999833,
0.027891569999979993,
0.028008706999997912,
0.028067094999983055,
0.02802950500000634,
0.027416024999979527,
0.026949568999981466,
0.025240181000015127,
0.02365433200000666,
0.023441407000007075
]
},
"throughput": {
"unit": "tokens/s",
"value": 36.82348585515755
},
"energy": null,
"efficiency": null
}
}
}