IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
0cc36f2
verified
{ | |
"config": { | |
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.5.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": 2, | |
"sequence_length": 16, | |
"num_choices": 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": 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.15", | |
"optimum_benchmark_version": "0.5.0.dev0", | |
"optimum_benchmark_commit": "22a6f3b2a99a5a143a8dca22ee7b35a1943f94ee", | |
"transformers_version": "4.46.3", | |
"transformers_commit": null, | |
"accelerate_version": "1.1.1", | |
"accelerate_commit": null, | |
"diffusers_version": "0.31.0", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.12", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
}, | |
"print_report": true, | |
"log_report": true | |
}, | |
"report": { | |
"load_model": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1131.835392, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
1.8840917169999898 | |
], | |
"count": 1, | |
"total": 1.8840917169999898, | |
"mean": 1.8840917169999898, | |
"p50": 1.8840917169999898, | |
"p90": 1.8840917169999898, | |
"p95": 1.8840917169999898, | |
"p99": 1.8840917169999898, | |
"stdev": 0, | |
"stdev_": 0 | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 0.0002017557724388894, | |
"ram": 8.433477306050846e-06, | |
"gpu": 0, | |
"total": 0.00021018924974494025 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1014.21056, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.1126072079999858, | |
0.11016039800000499, | |
0.11430931600000349, | |
0.11227174600000467, | |
0.11181485800000246, | |
0.10404508199999896, | |
0.10586791399998674 | |
], | |
"count": 7, | |
"total": 0.7710765219999871, | |
"mean": 0.11015378885714101, | |
"p50": 0.11181485800000246, | |
"p90": 0.11328805119999288, | |
"p95": 0.11379868359999819, | |
"p99": 0.11420718952000243, | |
"stdev": 0.0035095305123613784, | |
"stdev_": 3.1860279603390724 | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 18.156434025104755 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 5.219046466666715e-06, | |
"ram": 2.181179693160957e-07, | |
"gpu": 0.0, | |
"total": 5.437164435982807e-06 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 367838.7923609828 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1023.143936, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.04995592099999158, | |
0.04796003800001358, | |
0.05059438600000021, | |
0.05005529499999284, | |
0.04850659199999541, | |
0.04318630000000212, | |
0.04278779099999497 | |
], | |
"count": 7, | |
"total": 0.3330463229999907, | |
"mean": 0.047578046142855816, | |
"p50": 0.04850659199999541, | |
"p90": 0.05027093139999579, | |
"p95": 0.050432658699998, | |
"p99": 0.05056204053999977, | |
"stdev": 0.003026819419194819, | |
"stdev_": 6.361798486021515 | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 42.036194466558904 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 4.4725443333327964e-07, | |
"ram": 1.8674589722154554e-08, | |
"gpu": 0.0, | |
"total": 4.6592902305544084e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 4292499.288592332 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.04888273000000254, | |
0.046777353999999605, | |
0.04936157900002058, | |
0.048706202000005305, | |
0.04762423500000068, | |
0.04217543400000068, | |
0.04178799600001071 | |
], | |
"count": 7, | |
"total": 0.3253155300000401, | |
"mean": 0.046473647142862874, | |
"p50": 0.04762423500000068, | |
"p90": 0.049074269600009754, | |
"p95": 0.04921792430001517, | |
"p99": 0.0493328480600195, | |
"stdev": 0.002951372197575485, | |
"stdev_": 6.350636068012445 | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |