IlyasMoutawwakil HF Staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
5b4184f 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_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": {}, | |
| "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-1023-azure-x86_64-with-glibc2.35", | |
| "processor": "x86_64", | |
| "python_version": "3.10.14", | |
| "optimum_benchmark_version": "0.3.1", | |
| "optimum_benchmark_commit": "73dd36ea04ff1cc8259f4039b6f9d56dfb9eecd1", | |
| "transformers_version": "4.42.4", | |
| "transformers_commit": null, | |
| "accelerate_version": "0.32.1", | |
| "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.676992, | |
| "max_global_vram": null, | |
| "max_process_vram": null, | |
| "max_reserved": null, | |
| "max_allocated": null | |
| }, | |
| "latency": { | |
| "unit": "s", | |
| "count": 14, | |
| "total": 0.6240213380000057, | |
| "mean": 0.04457295271428612, | |
| "stdev": 0.002248398340949452, | |
| "p50": 0.0439782100000059, | |
| "p90": 0.04811202700001331, | |
| "p95": 0.04822143360001263, | |
| "p99": 0.0482479619199907, | |
| "values": [ | |
| 0.04465148899998894, | |
| 0.04317359399999532, | |
| 0.044614469999999073, | |
| 0.047898407999980464, | |
| 0.046864871999986235, | |
| 0.04820357800002739, | |
| 0.04825459399998522, | |
| 0.04497116400000323, | |
| 0.04241037600002073, | |
| 0.041918514999991885, | |
| 0.042843706000013526, | |
| 0.042792009999999436, | |
| 0.04208261200000152, | |
| 0.04334195000001273 | |
| ] | |
| }, | |
| "throughput": { | |
| "unit": "tokens/s", | |
| "value": 44.870260510225926 | |
| }, | |
| "energy": { | |
| "unit": "kWh", | |
| "cpu": 1.7233355609691087e-06, | |
| "ram": 7.202007672731269e-08, | |
| "gpu": 0.0, | |
| "total": 1.7953556376964215e-06 | |
| }, | |
| "efficiency": { | |
| "unit": "tokens/kWh", | |
| "value": 1113985.4177115308 | |
| } | |
| }, | |
| "decode": { | |
| "memory": { | |
| "unit": "MB", | |
| "max_ram": 958.676992, | |
| "max_global_vram": null, | |
| "max_process_vram": null, | |
| "max_reserved": null, | |
| "max_allocated": null | |
| }, | |
| "latency": { | |
| "unit": "s", | |
| "count": 14, | |
| "total": 0.38974459700003194, | |
| "mean": 0.02783889978571657, | |
| "stdev": 0.001896955198045718, | |
| "p50": 0.027079275999994934, | |
| "p90": 0.030024262100010902, | |
| "p95": 0.030671428650002497, | |
| "p99": 0.031562749729992845, | |
| "values": [ | |
| 0.027287241000010454, | |
| 0.027206430000006776, | |
| 0.029914038000015353, | |
| 0.030071501000008993, | |
| 0.02981774700000983, | |
| 0.03178557999999043, | |
| 0.02955305200001135, | |
| 0.026001975000014, | |
| 0.02609896699999581, | |
| 0.02641866599998366, | |
| 0.026952121999983092, | |
| 0.0267860120000023, | |
| 0.026324259000006123, | |
| 0.025527006999993773 | |
| ] | |
| }, | |
| "throughput": { | |
| "unit": "tokens/s", | |
| "value": 35.92095979716392 | |
| }, | |
| "energy": { | |
| "unit": "kWh", | |
| "cpu": 1.2515852416771045e-06, | |
| "ram": 5.230767169239569e-08, | |
| "gpu": 0.0, | |
| "total": 1.3038929133695e-06 | |
| }, | |
| "efficiency": { | |
| "unit": "tokens/kWh", | |
| "value": 766934.1475411622 | |
| } | |
| }, | |
| "per_token": { | |
| "memory": null, | |
| "latency": { | |
| "unit": "s", | |
| "count": 14, | |
| "total": 0.3842460230000313, | |
| "mean": 0.027446144500002236, | |
| "stdev": 0.0018049372392434002, | |
| "p50": 0.026758721000007313, | |
| "p90": 0.029516916400018543, | |
| "p95": 0.030141334150009413, | |
| "p99": 0.030999338829995792, | |
| "values": [ | |
| 0.026924081000004207, | |
| 0.02687641200000712, | |
| 0.02940744900001846, | |
| 0.02956383100001858, | |
| 0.0293159679999917, | |
| 0.031213839999992388, | |
| 0.029072882999997773, | |
| 0.025692104999990306, | |
| 0.025784267999995336, | |
| 0.026106690999995408, | |
| 0.026641030000007504, | |
| 0.026417162000001326, | |
| 0.026001134000011916, | |
| 0.025229168999999274 | |
| ] | |
| }, | |
| "throughput": { | |
| "unit": "tokens/s", | |
| "value": 36.43498998556677 | |
| }, | |
| "energy": null, | |
| "efficiency": null | |
| } | |
| } | |
| } |