IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
4b3dd18
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-1025-azure-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.14", | |
"optimum_benchmark_version": "0.4.0", | |
"optimum_benchmark_commit": "a15c900c7e611bd78abdf66d3df121367de8fb9d", | |
"transformers_version": "4.44.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.33.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.1", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.9", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1120.477184, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 4.9673591110000075, | |
"mean": 4.9673591110000075, | |
"stdev": 0.0, | |
"p50": 4.9673591110000075, | |
"p90": 4.9673591110000075, | |
"p95": 4.9673591110000075, | |
"p99": 4.9673591110000075, | |
"values": [ | |
4.9673591110000075 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.906000134444462e-05, | |
"ram": 2.88652526594931e-06, | |
"gpu": 0, | |
"total": 7.194652661039393e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 974.467072, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.6554840529998955, | |
"mean": 0.04682028949999254, | |
"stdev": 0.0017965995308690773, | |
"p50": 0.047383084500012274, | |
"p90": 0.04858553899995286, | |
"p95": 0.048710198599965795, | |
"p99": 0.04881442531999539, | |
"values": [ | |
0.048418642000001455, | |
0.04754755800001931, | |
0.04843193599998585, | |
0.048840482000002794, | |
0.04812807600001179, | |
0.04845835599996917, | |
0.04721861100000524, | |
0.04864004599994587, | |
0.04554207500001439, | |
0.04420054899998149, | |
0.04427260400001387, | |
0.046799392999957945, | |
0.04355986699999903, | |
0.04542585799998733 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 42.71652357041318 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.7181120900966576e-06, | |
"ram": 7.180293029325482e-08, | |
"gpu": 0.0, | |
"total": 1.7899150203899122e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1117371.4825658724 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 974.99136, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.41142645299999003, | |
"mean": 0.029387603785713572, | |
"stdev": 0.002102789351616295, | |
"p50": 0.029868926500000725, | |
"p90": 0.031437050799979716, | |
"p95": 0.032643023749997724, | |
"p99": 0.033910775950042195, | |
"values": [ | |
0.030544453000004523, | |
0.029879015000005893, | |
0.030614135000007536, | |
0.029858837999995558, | |
0.030048152999995636, | |
0.030471546000001126, | |
0.03178972899996779, | |
0.03422771400005331, | |
0.026836398999989797, | |
0.02721934699997064, | |
0.028515087000016592, | |
0.026871454000001904, | |
0.02674436600000263, | |
0.027806216999977096 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 34.0279529862907 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.937815206441199e-07, | |
"ram": 4.1532771394503896e-08, | |
"gpu": 0.0, | |
"total": 1.0353142920386235e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 965890.2689645223 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.4049488000000565, | |
"mean": 0.028924914285718323, | |
"stdev": 0.002060162086208982, | |
"p50": 0.029355683500028817, | |
"p90": 0.030875779000007243, | |
"p95": 0.032140681700008146, | |
"p99": 0.033502001140014954, | |
"values": [ | |
0.029977508999991187, | |
0.029383465000023534, | |
0.03006230900001583, | |
0.0293279020000341, | |
0.029540309999958936, | |
0.02993815600001426, | |
0.03122440900000356, | |
0.03384233100001666, | |
0.02649626099997704, | |
0.026859923000017716, | |
0.02812861199998906, | |
0.02653352000004361, | |
0.02638704499997857, | |
0.027247047999992446 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 34.57227185263432 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |