IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
f8ed710
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.338112, | |
"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.4.0", | |
"optimum_benchmark_commit": "2680e6fb8019f9b6eb6fcaa00b283acdac4d3d3d", | |
"transformers_version": "4.43.3", | |
"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.8", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1109.782528, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 4.920071282000009, | |
"mean": 4.920071282000009, | |
"stdev": 0.0, | |
"p50": 4.920071282000009, | |
"p90": 4.920071282000009, | |
"p95": 4.920071282000009, | |
"p99": 4.920071282000009, | |
"values": [ | |
4.920071282000009 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.822527647018433e-05, | |
"ram": 2.85164914573168e-06, | |
"gpu": 0, | |
"total": 7.107692561591601e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 963.91168, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.6557002839999768, | |
"mean": 0.043713352266665124, | |
"stdev": 0.001833955673665855, | |
"p50": 0.04305079699997805, | |
"p90": 0.04637091340000552, | |
"p95": 0.04670799010000337, | |
"p99": 0.04718837882001026, | |
"values": [ | |
0.04182814500001086, | |
0.042546221000009155, | |
0.042195072999987815, | |
0.04213407900002153, | |
0.04308730599998967, | |
0.044872701000002735, | |
0.04645063899999968, | |
0.04730847600001198, | |
0.04591074599997569, | |
0.046251325000014276, | |
0.04235310799998615, | |
0.04305079699997805, | |
0.04342699099998981, | |
0.042189702000001716, | |
0.0420949749999977 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 45.75261095967599 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.674929702723468e-06, | |
"ram": 6.999726153395219e-08, | |
"gpu": 0.0, | |
"total": 1.74492696425742e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1146179.7777026903 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 964.042752, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.41091040200007, | |
"mean": 0.02739402680000467, | |
"stdev": 0.001738751206448274, | |
"p50": 0.026316252000015083, | |
"p90": 0.029707975200005877, | |
"p95": 0.030344682000011856, | |
"p99": 0.03113776520000158, | |
"values": [ | |
0.026500427999991416, | |
0.02621785799999543, | |
0.026316252000015083, | |
0.02601022899997929, | |
0.02626473500001225, | |
0.029919816000017363, | |
0.029055566000010913, | |
0.029390213999988646, | |
0.029010993000014196, | |
0.03133603599999901, | |
0.02647350800000936, | |
0.0260753109999996, | |
0.02613719700002548, | |
0.026217087000020456, | |
0.025985171999991508 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 36.504308304167594 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0179526055300679e-06, | |
"ram": 4.253845248311529e-08, | |
"gpu": 0.0, | |
"total": 1.0604910580131839e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 942959.3889018612 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.4052224840000065, | |
"mean": 0.0270148322666671, | |
"stdev": 0.0016745766944833633, | |
"p50": 0.025983117999999195, | |
"p90": 0.029169348400012042, | |
"p95": 0.029860259600016547, | |
"p99": 0.030737864720004494, | |
"values": [ | |
0.026155031000001827, | |
0.025871397999992496, | |
0.025983117999999195, | |
0.025663569999977653, | |
0.025922272999991947, | |
0.029390114000023004, | |
0.028572400000001608, | |
0.028838199999995595, | |
0.028528958999999077, | |
0.030957266000001482, | |
0.02615005199999132, | |
0.025761473000017077, | |
0.02583687400002077, | |
0.02591060299999981, | |
0.02568115299999363 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 37.01670216305115 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |