IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
7dcbc4f
verified
{ | |
"config": { | |
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.3.0+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.354496, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-6.5.0-1021-azure-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.14", | |
"optimum_benchmark_version": "0.2.1", | |
"optimum_benchmark_commit": "9c5b122c5b131ce085c14c11b158b31af90e674e", | |
"transformers_version": "4.41.0", | |
"transformers_commit": null, | |
"accelerate_version": "0.30.1", | |
"accelerate_commit": null, | |
"diffusers_version": "0.27.2", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.3", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 955.711488, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 7, | |
"total": 0.7056788980000306, | |
"mean": 0.10081127114286151, | |
"stdev": 0.015688099450519424, | |
"p50": 0.09362313200000472, | |
"p90": 0.11864169800003312, | |
"p95": 0.12766414850003113, | |
"p99": 0.13488210890002958, | |
"values": [ | |
0.09335442100001501, | |
0.13668659900002922, | |
0.0964519539999742, | |
0.09254585599995835, | |
0.09362313200000472, | |
0.10661176400003569, | |
0.08640517200001341 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 19.839051500161755 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 4.959682034857479e-06, | |
"ram": 2.0727175843499404e-07, | |
"gpu": 0.0, | |
"total": 5.166953793292474e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 387075.263300461 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 955.711488, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 7, | |
"total": 0.40437483900001325, | |
"mean": 0.057767834142859034, | |
"stdev": 0.0026472389352107926, | |
"p50": 0.058321372000023075, | |
"p90": 0.06032705679997434, | |
"p95": 0.060845310399975004, | |
"p99": 0.061259913279975535, | |
"values": [ | |
0.05963605199997346, | |
0.06136356399997567, | |
0.058321372000023075, | |
0.0541982950000488, | |
0.05788041900001417, | |
0.05934210499998471, | |
0.053633031999993364 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 17.31067149803495 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.2932001808543267e-06, | |
"ram": 5.4025168118238503e-08, | |
"gpu": 0.0, | |
"total": 1.3472253489725645e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 742266.318520974 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 6, | |
"total": 0.9573631239999827, | |
"mean": 0.1595605206666638, | |
"stdev": 0.019005152167452244, | |
"p50": 0.15309262350001518, | |
"p90": 0.1821334959999774, | |
"p95": 0.19017806499998358, | |
"p99": 0.19661372019998852, | |
"values": [ | |
0.19822263399998974, | |
0.15473023600003444, | |
0.14681681700000127, | |
0.15145501099999592, | |
0.1660443579999651, | |
0.14009406799999624 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 6.267214445163973 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |