IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
7af033b verified
raw
history blame
9.64 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": "warn",
"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-1025-azure-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.14",
"optimum_benchmark_version": "0.4.0",
"optimum_benchmark_commit": "ea76e356b5c355783ee27d2d429a010ded791f8b",
"transformers_version": "4.44.2",
"transformers_commit": null,
"accelerate_version": "0.34.0",
"accelerate_commit": null,
"diffusers_version": "0.30.2",
"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": 1120.366592,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 1,
"total": 4.918687814999998,
"mean": 4.918687814999998,
"stdev": 0.0,
"p50": 4.918687814999998,
"p90": 4.918687814999998,
"p95": 4.918687814999998,
"p99": 4.918687814999998,
"values": [
4.918687814999998
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 6.851395802222209e-05,
"ram": 2.8637100374601876e-06,
"gpu": 0,
"total": 7.137766805968227e-05
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 974.381056,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.6524460319998866,
"mean": 0.04349640213332577,
"stdev": 0.0008420335523800986,
"p50": 0.043470724000030714,
"p90": 0.04431366519997937,
"p95": 0.044482252299962964,
"p99": 0.044766217659976064,
"values": [
0.04369766999997182,
0.043470724000030714,
0.044266618999984075,
0.043419276999998146,
0.04433012799995595,
0.04330064499998798,
0.04483720899997934,
0.04321312100000796,
0.043963650000023335,
0.0431257770000002,
0.0442889710000145,
0.04284532099995886,
0.04404234800000495,
0.041632043999982216,
0.04201252799998656
]
},
"throughput": {
"unit": "tokens/s",
"value": 45.98081454805325
},
"energy": {
"unit": "kWh",
"cpu": 1.6407745002315539e-06,
"ram": 6.85707082273642e-08,
"gpu": 0.0,
"total": 1.709345208458918e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1170038.6733485658
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 974.381056,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.39831485600007,
"mean": 0.026554323733338,
"stdev": 0.0006085477518003957,
"p50": 0.026404254999988552,
"p90": 0.027247266800009128,
"p95": 0.02754670319999377,
"p99": 0.028037500640000417,
"values": [
0.026663681999991695,
0.026277726999978768,
0.026314916999979232,
0.026237342000001718,
0.027192503000037505,
0.027283775999990212,
0.026454509000018334,
0.026404254999988552,
0.026972782000029838,
0.02643056400000887,
0.026195232000020496,
0.028160200000002078,
0.026207855999984986,
0.02592695900000308,
0.02559255200003463
]
},
"throughput": {
"unit": "tokens/s",
"value": 37.65865062285642
},
"energy": {
"unit": "kWh",
"cpu": 9.79518341990726e-07,
"ram": 4.093627066724052e-08,
"gpu": 0.0,
"total": 1.0204546126579664e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 979955.3920338617
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 15,
"total": 0.3926160600001367,
"mean": 0.026174404000009113,
"stdev": 0.0005707680242470367,
"p50": 0.0260541279999984,
"p90": 0.026847772800033455,
"p95": 0.027104114400037814,
"p99": 0.027536192480040425,
"values": [
0.026269812999998976,
0.0259137639999949,
0.02594395099998792,
0.02585419299998648,
0.02681046600002901,
0.026872644000036416,
0.026088843000025008,
0.0260541279999984,
0.026571117999992566,
0.026072902999999314,
0.025813575000029232,
0.02764421200004108,
0.025855784999976095,
0.025595787000042947,
0.02525487799999837
]
},
"throughput": {
"unit": "tokens/s",
"value": 38.205263432155014
},
"energy": null,
"efficiency": null
}
}
}