![IlyasMoutawwakil's picture](https://cdn-avatars.huggingface.co/v1/production/uploads/1642598610696-noauth.jpeg)
IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
0a55aa6
verified
{ | |
"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, | |
"num_choices": 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": 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": "40840832071b47fad85a56ce96b8e82d55645609", | |
"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.12", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
}, | |
"print_report": true, | |
"log_report": true | |
}, | |
"report": { | |
"load_model": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1130.283008, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
1.8485716970000112 | |
], | |
"count": 1, | |
"total": 1.8485716970000112, | |
"mean": 1.8485716970000112, | |
"p50": 1.8485716970000112, | |
"p90": 1.8485716970000112, | |
"p95": 1.8485716970000112, | |
"p99": 1.8485716970000112, | |
"stdev": 0, | |
"stdev_": 0 | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 0.00019863456464444453, | |
"ram": 8.303009745672998e-06, | |
"gpu": 0, | |
"total": 0.00020693757439011753 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1014.784, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.10793218400004889, | |
0.10946573199998966, | |
0.11004401799999641, | |
0.11017489300002126, | |
0.11109281500000634, | |
0.10487525700000333, | |
0.10506668600004332 | |
], | |
"count": 7, | |
"total": 0.7586515850001092, | |
"mean": 0.10837879785715845, | |
"p50": 0.10946573199998966, | |
"p90": 0.11054206180001529, | |
"p95": 0.11081743840001082, | |
"p99": 0.11103773968000723, | |
"stdev": 0.0023296406282641608, | |
"stdev_": 2.1495354020576887 | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 18.453793911203633 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 4.278767783889002e-06, | |
"ram": 1.7881007598679773e-07, | |
"gpu": 0.0, | |
"total": 4.457577859875799e-06 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 448674.1595705354 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1022.808064, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.04858038399999032, | |
0.048843408000038835, | |
0.04863055800001348, | |
0.048281131999999616, | |
0.049523878999991666, | |
0.04181250300001693, | |
0.04184231900001123 | |
], | |
"count": 7, | |
"total": 0.3275141830000621, | |
"mean": 0.0467877404285803, | |
"p50": 0.04858038399999032, | |
"p90": 0.049115596400019966, | |
"p95": 0.04931973770000582, | |
"p99": 0.0494830507399945, | |
"stdev": 0.003156901056966333, | |
"stdev_": 6.747282574556516 | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 42.746240397159674 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.396108804999838e-06, | |
"ram": 5.8350869861048635e-08, | |
"gpu": 0.0, | |
"total": 1.454459674860889e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1375081.0933904296 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.04740218299997423, | |
0.04776777900002571, | |
0.04745439099997384, | |
0.04705864799996107, | |
0.048192530999983774, | |
0.040815782000038325, | |
0.04088275800000929 | |
], | |
"count": 7, | |
"total": 0.31957407199996624, | |
"mean": 0.04565343885713803, | |
"p50": 0.04740218299997423, | |
"p90": 0.04793767980000894, | |
"p95": 0.04806510539999635, | |
"p99": 0.04816704587998629, | |
"stdev": 0.0030555778104562428, | |
"stdev_": 6.692984990721013 | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |