IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
d46c5e2
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": "8320ce6f24eaa5099bd3b49d8d44c0c1368af14b", | |
"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": 959.164416, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 13, | |
"total": 0.6223766909999426, | |
"mean": 0.04787513007691867, | |
"stdev": 0.0017945927878463672, | |
"p50": 0.048574317000003475, | |
"p90": 0.04902014799998824, | |
"p95": 0.04909183019998977, | |
"p99": 0.04915317803999073, | |
"values": [ | |
0.048787069000013616, | |
0.04862938499999814, | |
0.04893791199998532, | |
0.048004768999987846, | |
0.04729193500000406, | |
0.049168514999990975, | |
0.04904070699998897, | |
0.04848452899997824, | |
0.04879606099999023, | |
0.04728699599999686, | |
0.048574317000003475, | |
0.047292005000002746, | |
0.042082491000002165 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 41.77534341497759 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.6517899102634855e-06, | |
"ram": 6.903064184399455e-08, | |
"gpu": 0.0, | |
"total": 1.72082055210748e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1162236.2352370853 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 959.164416, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 13, | |
"total": 0.386678776000025, | |
"mean": 0.02974452123077115, | |
"stdev": 0.001264068974060705, | |
"p50": 0.030081289000008837, | |
"p90": 0.030794807599994554, | |
"p95": 0.030932861000002275, | |
"p99": 0.030998551400012956, | |
"values": [ | |
0.030189390999993293, | |
0.028978652000006377, | |
0.02993775100000562, | |
0.030081289000008837, | |
0.030878118999993376, | |
0.030085710000008703, | |
0.029639027999991185, | |
0.031014974000015627, | |
0.030021680999993805, | |
0.030082735000007688, | |
0.030461561999999276, | |
0.0295728049999866, | |
0.025735079000014593 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 33.61963678089009 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0131359652236656e-06, | |
"ram": 4.234165365818398e-08, | |
"gpu": 0.0, | |
"total": 1.0554776188818503e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 947438.3749220357 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 12, | |
"total": 0.9305574389999833, | |
"mean": 0.0775464532499986, | |
"stdev": 0.002967945048200692, | |
"p50": 0.0783755875000054, | |
"p90": 0.07931162779998999, | |
"p95": 0.07943719779999867, | |
"p99": 0.07953267076000714, | |
"values": [ | |
0.07760443999998756, | |
0.07896911700001397, | |
0.07810652699998855, | |
0.0781308910000007, | |
0.07933955499999001, | |
0.07862028400001009, | |
0.07955653900000925, | |
0.07884849899997448, | |
0.07734896300001992, | |
0.0790602829999898, | |
0.0769231790000049, | |
0.06804916199999411 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 12.895496287575448 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |