IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
207b733
verified
{ | |
"config": { | |
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.4.0+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": "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-1025-azure-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.14", | |
"optimum_benchmark_version": "0.4.0", | |
"optimum_benchmark_commit": "266cd5c4efbc5c3204bf4ed430519c2bcc4cc6ea", | |
"transformers_version": "4.44.0", | |
"transformers_commit": null, | |
"accelerate_version": "0.33.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.0", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.8", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1121.247232, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 4.948866862000017, | |
"mean": 4.948866862000017, | |
"stdev": 0.0, | |
"p50": 4.948866862000017, | |
"p90": 4.948866862000017, | |
"p95": 4.948866862000017, | |
"p99": 4.948866862000017, | |
"values": [ | |
4.948866862000017 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.84622259611113e-05, | |
"ram": 2.8615595150098235e-06, | |
"gpu": 0, | |
"total": 7.132378547612112e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 974.471168, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.6250813649999714, | |
"mean": 0.04167209099999809, | |
"stdev": 0.00091063541993514, | |
"p50": 0.04196631599995726, | |
"p90": 0.04269432720002442, | |
"p95": 0.04285745260000908, | |
"p99": 0.04307746651999309, | |
"values": [ | |
0.04273958800001765, | |
0.04123443999998244, | |
0.0431324699999891, | |
0.04125055000002931, | |
0.042037617999994836, | |
0.04262643600003457, | |
0.04196631599995726, | |
0.0419887969999877, | |
0.0419676569999865, | |
0.04154005999998844, | |
0.041039326000031906, | |
0.04042091299999129, | |
0.04259058899998536, | |
0.0408810110000104, | |
0.039665593999984594 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 47.99375198139425 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.5755029515555384e-06, | |
"ram": 6.584333929817691e-08, | |
"gpu": 0.0, | |
"total": 1.6413462908537152e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1218511.9076607155 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 975.2576, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.3786796600000457, | |
"mean": 0.025245310666669716, | |
"stdev": 0.00064052289658602, | |
"p50": 0.025506288000030963, | |
"p90": 0.025740118600003824, | |
"p95": 0.0260418654000091, | |
"p99": 0.026416845879982703, | |
"values": [ | |
0.025161364999974012, | |
0.02556267300002446, | |
0.025229532000025756, | |
0.025588821999974698, | |
0.025840983000023243, | |
0.025552795000010065, | |
0.025506288000030963, | |
0.025571318999993764, | |
0.025535973999978978, | |
0.025258666000013363, | |
0.024563439000019116, | |
0.026510590999976102, | |
0.024534877000007782, | |
0.024419590999968932, | |
0.02384274500002448 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 39.61131685815443 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.320323258750267e-07, | |
"ram": 3.8952522403511095e-08, | |
"gpu": 0.0, | |
"total": 9.709848482785383e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1029882.1879382596 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.37301483200002394, | |
"mean": 0.024867655466668262, | |
"stdev": 0.0006003914831792962, | |
"p50": 0.025130366000041704, | |
"p90": 0.02535730419997435, | |
"p95": 0.025609253199991144, | |
"p99": 0.025892699440018988, | |
"values": [ | |
0.024784190999980638, | |
0.02517036099999359, | |
0.024829325000041536, | |
0.025207149999971534, | |
0.02545740699997623, | |
0.025178267000001142, | |
0.025130366000041704, | |
0.02519322400002011, | |
0.02516187600002695, | |
0.024915065000016057, | |
0.024212704999968082, | |
0.025963561000025948, | |
0.024204730999997537, | |
0.024075769999967633, | |
0.023530832999995255 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 40.2128781838869 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |