IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
28a7835 verified
raw
history blame
No virus
9.4 kB
{
"config": {
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.4.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": null,
"numactl": false,
"numactl_kwargs": {},
"start_method": "spawn"
},
"environment": {
"cpu": " AMD EPYC 7763 64-Core Processor",
"cpu_count": 4,
"cpu_ram_mb": 16766.767104,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-6.8.0-1014-azure-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.15",
"optimum_benchmark_version": "0.4.0",
"optimum_benchmark_commit": "dad41f7a1213c56e1c7e335e5ce6e7b2ddb68a83",
"transformers_version": "4.44.2",
"transformers_commit": null,
"accelerate_version": "0.34.2",
"accelerate_commit": null,
"diffusers_version": "0.30.3",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.9",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 1105.42848,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 1,
"total": 4.9149300880000055,
"mean": 4.9149300880000055,
"stdev": 0.0,
"p50": 4.9149300880000055,
"p90": 4.9149300880000055,
"p95": 4.9149300880000055,
"p99": 4.9149300880000055,
"values": [
4.9149300880000055
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 6.79282660388888e-05,
"ram": 2.8408126328361804e-06,
"gpu": 0,
"total": 7.076907867172498e-05
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 959.152128,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 13,
"total": 0.6415781540000012,
"mean": 0.049352165692307784,
"stdev": 0.0019118220490110071,
"p50": 0.04955595500001664,
"p90": 0.05109879019998971,
"p95": 0.05126225059998433,
"p99": 0.05141014531998735,
"values": [
0.04824436999999193,
0.05093793100002131,
0.051447118999988106,
0.04714928900000359,
0.05113900499998181,
0.04930294300001492,
0.04896847000000548,
0.04942166399999337,
0.050713532999992594,
0.04955595500001664,
0.05067178499999159,
0.0498945360000107,
0.04413155399998914
]
},
"throughput": {
"unit": "tokens/s",
"value": 40.525070621403906
},
"energy": {
"unit": "kWh",
"cpu": 1.7115429705314165e-06,
"ram": 7.15690858187011e-08,
"gpu": 0.0,
"total": 1.7831120563501175e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1121634.5001299772
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 959.807488,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 13,
"total": 0.3940822840000351,
"mean": 0.030314021846156544,
"stdev": 0.001184464523760982,
"p50": 0.030562383000017235,
"p90": 0.030953277600002594,
"p95": 0.031235888600008366,
"p99": 0.0315741993200163,
"values": [
0.02986067599999842,
0.030896124999998165,
0.03052238899999793,
0.030355176999989908,
0.03015523400000575,
0.030196911999979648,
0.03095396300000175,
0.03072205099999792,
0.030562383000017235,
0.030950536000005968,
0.03165877700001829,
0.030750844000010602,
0.026497217000013507
]
},
"throughput": {
"unit": "tokens/s",
"value": 32.98803454965472
},
"energy": {
"unit": "kWh",
"cpu": 9.517155113204442e-07,
"ram": 3.979694298819333e-08,
"gpu": 0.0,
"total": 9.915124543086385e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1008560.2007866655
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 13,
"total": 0.38716385000003584,
"mean": 0.029781834615387373,
"stdev": 0.0011506784092365125,
"p50": 0.03003403800002502,
"p90": 0.030390923599986762,
"p95": 0.030671532399998112,
"p99": 0.031008010480014718,
"values": [
0.029305381000000352,
0.030330491000000848,
0.02999671899999612,
0.029767281999994566,
0.029622672000016337,
0.02964714699999149,
0.030391133999984277,
0.030167887999994036,
0.03003403800002502,
0.03039008199999671,
0.03109213000001887,
0.03032832700000654,
0.02609055900001067
]
},
"throughput": {
"unit": "tokens/s",
"value": 33.57751504950371
},
"energy": null,
"efficiency": null
}
}
}