IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
df574cb verified
raw
history blame
8.62 kB
{
"config": {
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.5.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": 2,
"sequence_length": 16
},
"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": 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.15",
"optimum_benchmark_version": "0.5.0.dev0",
"optimum_benchmark_commit": "78351930eda4599a64ff2da35e08ab39722c146a",
"transformers_version": "4.46.3",
"transformers_commit": null,
"accelerate_version": "1.1.1",
"accelerate_commit": null,
"diffusers_version": "0.31.0",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.11",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
},
"print_report": true,
"log_report": true
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 1130.131456,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"values": [
1.729620362999981
],
"count": 1,
"total": 1.729620362999981,
"mean": 1.729620362999981,
"p50": 1.729620362999981,
"p90": 1.729620362999981,
"p95": 1.729620362999981,
"p99": 1.729620362999981,
"stdev": 0,
"stdev_": 0
},
"throughput": null,
"energy": null,
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1012.9408,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"values": [
0.11181075799999007,
0.11175713799997311,
0.11346434699999008,
0.11161373999999569,
0.11186165300000539,
0.11016897400003245,
0.10539807800000744
],
"count": 7,
"total": 0.7760746879999942,
"mean": 0.11086781257142775,
"p50": 0.11175713799997311,
"p90": 0.11250273059999927,
"p95": 0.11298353879999468,
"p99": 0.113368185359991,
"stdev": 0.002401563032534055,
"stdev_": 2.166149919289535
},
"throughput": {
"unit": "tokens/s",
"value": 288.6320137270109
},
"energy": {
"unit": "kWh",
"cpu": 4.1028787838888865e-06,
"ram": 1.7146501767519396e-07,
"gpu": 0.0,
"total": 4.274343801564081e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7486529.274573202
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1021.165568,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"values": [
0.048550939999984166,
0.04944406900000331,
0.05041163700002471,
0.05172216400001162,
0.043825201999993624,
0.04386520700001029,
0.044645284000012
],
"count": 7,
"total": 0.3324645030000397,
"mean": 0.047494929000005674,
"p50": 0.048550939999984166,
"p90": 0.050935847800019474,
"p95": 0.051329005900015545,
"p99": 0.0516435323800124,
"stdev": 0.0030718366295885494,
"stdev_": 6.467714962976748
},
"throughput": {
"unit": "tokens/s",
"value": 42.10975870707715
},
"energy": {
"unit": "kWh",
"cpu": 1.7078363438890663e-06,
"ram": 7.13773045056449e-08,
"gpu": 0.0,
"total": 1.77921364839471e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1124092.0964182655
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"values": [
0.04743105799997238,
0.048128159999976106,
0.04940531699998019,
0.049881485000014436,
0.04293889600000966,
0.04281313199999204,
0.04363895400001638
],
"count": 7,
"total": 0.3242370019999612,
"mean": 0.046319571714280174,
"p50": 0.04743105799997238,
"p90": 0.049595784199993886,
"p95": 0.04973863460000416,
"p99": 0.049852914920012384,
"stdev": 0.0028691771508014734,
"stdev_": 6.194308463169394
},
"throughput": {
"unit": "tokens/s",
"value": 43.178292155568585
},
"energy": null,
"efficiency": null
}
}
}