IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
3b7c947
verified
{ | |
"config": { | |
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.4.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": 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": null, | |
"numactl": false, | |
"numactl_kwargs": {}, | |
"start_method": "spawn" | |
}, | |
"environment": { | |
"cpu": " AMD EPYC 7763 64-Core Processor", | |
"cpu_count": 4, | |
"cpu_ram_mb": 16766.767104, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-6.8.0-1014-azure-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.15", | |
"optimum_benchmark_version": "0.4.0", | |
"optimum_benchmark_commit": "ca2be18fea34395d17487b7c6eecaa82f8012043", | |
"transformers_version": "4.44.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.34.2", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.3", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.9", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1115.807744, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 4.757095363000019, | |
"mean": 4.757095363000019, | |
"stdev": 0.0, | |
"p50": 4.757095363000019, | |
"p90": 4.757095363000019, | |
"p95": 4.757095363000019, | |
"p99": 4.757095363000019, | |
"values": [ | |
4.757095363000019 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.743913843333348e-05, | |
"ram": 2.820380514057901e-06, | |
"gpu": 0, | |
"total": 7.025951894739139e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 969.662464, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.6427957999999876, | |
"mean": 0.04285305333333251, | |
"stdev": 0.003935147467958309, | |
"p50": 0.043626797000001716, | |
"p90": 0.04804409319998513, | |
"p95": 0.04839714199998752, | |
"p99": 0.04902743319996489, | |
"values": [ | |
0.04414833999999246, | |
0.04431408499999634, | |
0.0440924700000096, | |
0.04918500599995923, | |
0.04802100399996334, | |
0.04774544800000058, | |
0.04805948599999965, | |
0.043626797000001716, | |
0.041853596999999354, | |
0.038897602000020015, | |
0.03856050000001687, | |
0.038488185000005615, | |
0.038353642999993554, | |
0.03858729099999891, | |
0.03886234600003036 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 46.671120128663844 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.51039865876068e-06, | |
"ram": 6.315836445575439e-08, | |
"gpu": 0.0, | |
"total": 1.5735570232164344e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1271005.7344549824 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 969.924608, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.40231720400015547, | |
"mean": 0.026821146933343698, | |
"stdev": 0.002765657165012031, | |
"p50": 0.02720427400004155, | |
"p90": 0.03047745080001505, | |
"p95": 0.030581464700026116, | |
"p99": 0.030736522540037184, | |
"values": [ | |
0.027984401000026082, | |
0.02780559100000346, | |
0.029534071000000495, | |
0.03044603000000734, | |
0.029669474000002083, | |
0.030775287000039953, | |
0.030498398000020188, | |
0.02720427400004155, | |
0.024006669000016245, | |
0.023883268000020053, | |
0.02397936900001696, | |
0.024158393999982763, | |
0.02381470000000263, | |
0.02491421999997101, | |
0.023643058000004658 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 37.28401333787904 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.346649339476497e-07, | |
"ram": 3.9084277811903546e-08, | |
"gpu": 0.0, | |
"total": 9.737492117595535e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1026958.4693095789 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.3961799060000999, | |
"mean": 0.02641199373333999, | |
"stdev": 0.0026691713212963373, | |
"p50": 0.026731447000031494, | |
"p90": 0.02999455140002283, | |
"p95": 0.030077812600018204, | |
"p99": 0.030186044920044425, | |
"values": [ | |
0.027465107000011812, | |
0.02732536999997137, | |
0.02902361399998199, | |
0.02995663200005083, | |
0.02916061000001946, | |
0.030213103000050978, | |
0.03001983100000416, | |
0.026731447000031494, | |
0.023712458000034076, | |
0.023575811999990037, | |
0.02368599900000845, | |
0.02386509399997294, | |
0.02350448800001459, | |
0.024598337999975683, | |
0.023342002999982014 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 37.861587053827556 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |