IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
6645bdd
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": "60a4093f9bbbc9f0ae2a8e8453ec3c0b2f7def5c", | |
"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.11", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
}, | |
"print_report": true, | |
"log_report": true | |
}, | |
"report": { | |
"load_model": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1142.571008, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
1.760818807000021 | |
], | |
"count": 1, | |
"total": 1.760818807000021, | |
"mean": 1.760818807000021, | |
"p50": 1.760818807000021, | |
"p90": 1.760818807000021, | |
"p95": 1.760818807000021, | |
"p99": 1.760818807000021, | |
"stdev": 0, | |
"stdev_": 0 | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 0.00019393261455555517, | |
"ram": 8.106523785515393e-06, | |
"gpu": 0, | |
"total": 0.00020203913834107055 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1023.315968, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.14636186000001317, | |
0.14530741400000124, | |
0.09915533400004506, | |
0.09986710699996593, | |
0.09874603700001217, | |
0.0991684310000096, | |
0.10075472200003333 | |
], | |
"count": 7, | |
"total": 0.7893609050000805, | |
"mean": 0.11276584357144007, | |
"p50": 0.09986710699996593, | |
"p90": 0.145729192400006, | |
"p95": 0.1460455262000096, | |
"p99": 0.14629859324001246, | |
"stdev": 0.020924971917033013, | |
"stdev_": 18.556125910392808 | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 17.735866966959268 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 3.896039661111136e-06, | |
"ram": 1.6282152677890987e-07, | |
"gpu": 0.0, | |
"total": 4.058861187890045e-06 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 492749.05137607775 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1029.758976, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.04584590600001093, | |
0.04777445100000932, | |
0.04130455299997493, | |
0.04086023000002115, | |
0.04021899700001086, | |
0.04050131699995063, | |
0.04105906199998799 | |
], | |
"count": 7, | |
"total": 0.2975645159999658, | |
"mean": 0.04250921657142369, | |
"p50": 0.04105906199998799, | |
"p90": 0.046617324000010285, | |
"p95": 0.0471958875000098, | |
"p99": 0.04765873830000942, | |
"stdev": 0.002787889002179422, | |
"stdev_": 6.5583165888160515 | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 47.04862054184447 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.6360200937500943e-06, | |
"ram": 6.838287425822514e-08, | |
"gpu": 0.0, | |
"total": 1.7044029680083203e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1173431.4229322772 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.04536392200003547, | |
0.04742691000001287, | |
0.04092196499999545, | |
0.04051136600003247, | |
0.03987283800000796, | |
0.04015766199995596, | |
0.04070796399997789 | |
], | |
"count": 7, | |
"total": 0.2949626270000181, | |
"mean": 0.04213751814285972, | |
"p50": 0.04070796399997789, | |
"p90": 0.04618911720002643, | |
"p95": 0.04680801360001965, | |
"p99": 0.04730313072001422, | |
"stdev": 0.00276719352016538, | |
"stdev_": 6.567053880068839 | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |