IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
91053ea
verified
{ | |
"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": "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": {}, | |
"hub_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, | |
"latency": true, | |
"memory": 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-1022-azure-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.14", | |
"optimum_benchmark_version": "0.2.1", | |
"optimum_benchmark_commit": "cc9b50765eac8085269af1a207e20c6a9b260b67", | |
"transformers_version": "4.42.3", | |
"transformers_commit": null, | |
"accelerate_version": "0.31.0", | |
"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": { | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 958.701568, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.6206544219999159, | |
"mean": 0.04137696146666106, | |
"stdev": 0.000980044966808141, | |
"p50": 0.04133036400000378, | |
"p90": 0.042819870999989004, | |
"p95": 0.04316442219999317, | |
"p99": 0.04318656683999507, | |
"values": [ | |
0.04319210299999554, | |
0.04133036400000378, | |
0.0416202829999861, | |
0.04186916699998733, | |
0.04088244899998017, | |
0.041697036000016396, | |
0.04110925099999463, | |
0.04109152899999913, | |
0.04134485000000154, | |
0.04232083899998429, | |
0.04124133699997401, | |
0.04315255899999215, | |
0.03996029999998996, | |
0.03991145000000529, | |
0.03993090500000562 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 48.33607710927429 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.5738640891181098e-06, | |
"ram": 6.577387281481605e-08, | |
"gpu": 0.0, | |
"total": 1.639637961932926e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1219781.4678810271 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 958.701568, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.3851833770000326, | |
"mean": 0.02567889180000217, | |
"stdev": 0.00042161841643527256, | |
"p50": 0.025794049999973367, | |
"p90": 0.026149616599991533, | |
"p95": 0.026321228499989503, | |
"p99": 0.026431148099998154, | |
"values": [ | |
0.02598052700000153, | |
0.025794049999973367, | |
0.025869980999999598, | |
0.02585163700001658, | |
0.02580014100001904, | |
0.025732444999988502, | |
0.025672182999983306, | |
0.0254760970000234, | |
0.026262342999984867, | |
0.025796194000008654, | |
0.025522954000024356, | |
0.026458628000000317, | |
0.025063748999997415, | |
0.025032490000000962, | |
0.024869958000010683 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 38.94249050108601 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.598968260818065e-07, | |
"ram": 4.0117768873315646e-08, | |
"gpu": 0.0, | |
"total": 1.0000145949551217e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 999985.4052578879 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.9368994339999972, | |
"mean": 0.06692138814285695, | |
"stdev": 0.0012713785597442747, | |
"p50": 0.06697029549999911, | |
"p90": 0.06804008079999732, | |
"p95": 0.06869282215000538, | |
"p99": 0.06944883403001398, | |
"values": [ | |
0.06714446999998813, | |
0.06749774900001171, | |
0.06770434399999203, | |
0.06673009799999363, | |
0.06744313600000851, | |
0.06679612100001009, | |
0.06658860499999264, | |
0.06756092599999874, | |
0.0681839679999996, | |
0.0667909009999903, | |
0.06963783700001613, | |
0.06504497800000308, | |
0.06496284399997876, | |
0.06481345700001384 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 14.942905814585048 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |