IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
fecccd7
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": {}, | |
"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-1023-azure-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.14", | |
"optimum_benchmark_version": "0.3.1", | |
"optimum_benchmark_commit": "61123f7169ae188508e9e8c5ca6b9a54a00965ed", | |
"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": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1103.826944, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 4.815016288999999, | |
"mean": 4.815016288999999, | |
"stdev": 0.0, | |
"p50": 4.815016288999999, | |
"p90": 4.815016288999999, | |
"p95": 4.815016288999999, | |
"p99": 4.815016288999999, | |
"values": [ | |
4.815016288999999 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.787963178422717e-05, | |
"ram": 2.837184156568355e-06, | |
"gpu": 0, | |
"total": 7.071681594079552e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 957.292544, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.649780125000035, | |
"mean": 0.04641286607143107, | |
"stdev": 0.0021017405518133666, | |
"p50": 0.046997310999998376, | |
"p90": 0.04843621450001194, | |
"p95": 0.04877234005001156, | |
"p99": 0.04919454001000446, | |
"values": [ | |
0.04801482000002011, | |
0.04848816700001635, | |
0.048314992000001666, | |
0.04620872199998871, | |
0.04930009000000268, | |
0.048168908999997484, | |
0.04717622699999424, | |
0.04827287400001978, | |
0.044453621000002386, | |
0.04392718400001172, | |
0.04435945399998786, | |
0.04681839500000251, | |
0.043093159999983754, | |
0.043183510000005754 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 43.09149960534495 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.6921039940654368e-06, | |
"ram": 7.071460148836194e-08, | |
"gpu": 0.0, | |
"total": 1.7628185955537987e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1134546.6884933158 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 958.34112, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.40178420000006554, | |
"mean": 0.02869887142857611, | |
"stdev": 0.0020055303466046926, | |
"p50": 0.028683768999997028, | |
"p90": 0.030827087599996618, | |
"p95": 0.030911896549996244, | |
"p99": 0.030993064910004194, | |
"values": [ | |
0.03085726399999089, | |
0.030564666000003626, | |
0.03059406100001638, | |
0.030162001000007876, | |
0.030756676000009975, | |
0.03071923600001014, | |
0.03101335700000618, | |
0.026851593000003504, | |
0.026902168000020765, | |
0.0271348339999804, | |
0.027056368000017983, | |
0.02720553699998618, | |
0.02599590900001658, | |
0.02597052999999505 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 34.844575769773215 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.910391801413323e-07, | |
"ram": 4.141869096656594e-08, | |
"gpu": 0.0, | |
"total": 1.0324578711078993e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 968562.5224852324 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.39606571600003804, | |
"mean": 0.028290408285717, | |
"stdev": 0.0019376003125794723, | |
"p50": 0.02828171550000036, | |
"p90": 0.030349178500000563, | |
"p95": 0.03042934630000076, | |
"p99": 0.030509196459997553, | |
"values": [ | |
0.030375601000002916, | |
0.030089615000008507, | |
0.030133626999997887, | |
0.0296856479999974, | |
0.03028752599999507, | |
0.030229167000015877, | |
0.030529158999996753, | |
0.02650943099999381, | |
0.026529409000005444, | |
0.02678993699998955, | |
0.026714536000014277, | |
0.02687778300000332, | |
0.02566045000000372, | |
0.025653827000013507 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 35.34766942564313 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |