IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
92adc62
verified
{ | |
"config": { | |
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.4.0+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": "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-1024-azure-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.14", | |
"optimum_benchmark_version": "0.3.1", | |
"optimum_benchmark_commit": "b0801269b3611e452bb077a62163b08a99ceb2a9", | |
"transformers_version": "4.42.4", | |
"transformers_commit": null, | |
"accelerate_version": "0.33.0", | |
"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": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1120.772096, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 4.834404436999989, | |
"mean": 4.834404436999989, | |
"stdev": 0.0, | |
"p50": 4.834404436999989, | |
"p90": 4.834404436999989, | |
"p95": 4.834404436999989, | |
"p99": 4.834404436999989, | |
"values": [ | |
4.834404436999989 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.756949822107951e-05, | |
"ram": 2.824225813326393e-06, | |
"gpu": 0, | |
"total": 7.03937240344059e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 974.503936, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 13, | |
"total": 0.624935255000139, | |
"mean": 0.04807194269231839, | |
"stdev": 0.0008469223243709784, | |
"p50": 0.04825908699996262, | |
"p90": 0.04896189200001118, | |
"p95": 0.04909340240002393, | |
"p99": 0.0491845716800367, | |
"values": [ | |
0.04638163900000336, | |
0.04825908699996262, | |
0.0490174280000133, | |
0.047192688999984966, | |
0.04920736400003989, | |
0.04796389400001999, | |
0.04654725000000326, | |
0.04873974800000269, | |
0.04834172200003195, | |
0.04849652199999355, | |
0.047984503000009227, | |
0.04873014000003195, | |
0.048073269000042274 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 41.604309873659176 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.723505678960091e-06, | |
"ram": 7.202735670489345e-08, | |
"gpu": 0.0, | |
"total": 1.7955330356649845e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1113875.356383677 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 975.290368, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 13, | |
"total": 0.38288725999984763, | |
"mean": 0.029452866153834432, | |
"stdev": 0.0012264574497014423, | |
"p50": 0.030012737999982164, | |
"p90": 0.03021878959998503, | |
"p95": 0.03050145339997243, | |
"p99": 0.03082699947996616, | |
"values": [ | |
0.03017328800001451, | |
0.030088269000032142, | |
0.02921427199999016, | |
0.029231182999978955, | |
0.030908385999964594, | |
0.029763671000011982, | |
0.028035321999993812, | |
0.03009783699997115, | |
0.03023016499997766, | |
0.029081232000010004, | |
0.030117623999956322, | |
0.030012737999982164, | |
0.025933272999964174 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 33.95255303089785 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.012130290413824e-06, | |
"ram": 4.230164102523302e-08, | |
"gpu": 0.0, | |
"total": 1.0544319314390573e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 948377.9561144642 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 13, | |
"total": 0.3764351199998828, | |
"mean": 0.028956547692298676, | |
"stdev": 0.0011848917693045647, | |
"p50": 0.029534071000000495, | |
"p90": 0.029664990599974315, | |
"p95": 0.029957622599977182, | |
"p99": 0.030304674119988703, | |
"values": [ | |
0.02965130100000124, | |
0.029608870000004117, | |
0.02871185100002549, | |
0.028710967999984405, | |
0.030391436999991583, | |
0.029231543999969745, | |
0.027562686000010217, | |
0.029564206999964426, | |
0.029668412999967586, | |
0.02856910200000584, | |
0.029638755999997102, | |
0.029534071000000495, | |
0.025591913999960525 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 34.534503581929464 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |