IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
c27d29c
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": "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": {}, | |
"hub_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, | |
"latency": true, | |
"memory": 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-1022-azure-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.14", | |
"optimum_benchmark_version": "0.2.1", | |
"optimum_benchmark_commit": "f85421c91b2a2b1bc0a30ceba32f9580499bf023", | |
"transformers_version": "4.42.3", | |
"transformers_commit": null, | |
"accelerate_version": "0.31.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": { | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 956.485632, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.6631392349999032, | |
"mean": 0.047367088214278805, | |
"stdev": 0.0018567794314982196, | |
"p50": 0.04688193900000215, | |
"p90": 0.050500270799983586, | |
"p95": 0.050989113499980476, | |
"p99": 0.051011613899976285, | |
"values": [ | |
0.04723268100002542, | |
0.04848425199998019, | |
0.046664858000042386, | |
0.04642622199997959, | |
0.04709901999996191, | |
0.0459951049999745, | |
0.045254389999968225, | |
0.04939497499998424, | |
0.051017238999975234, | |
0.0509739689999833, | |
0.04739707700002782, | |
0.045059476000005816, | |
0.04588531000001694, | |
0.04625466099997766 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 42.22341029181313 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.818288335896502e-06, | |
"ram": 7.598500345641862e-08, | |
"gpu": 0.0, | |
"total": 1.8942733393529205e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1055813.8355487785 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 956.485632, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.40755572500006565, | |
"mean": 0.029111123214290404, | |
"stdev": 0.001426597778332552, | |
"p50": 0.028622850500028107, | |
"p90": 0.03139698610000892, | |
"p95": 0.03165521325000782, | |
"p99": 0.03190958424999962, | |
"values": [ | |
0.02949103399998876, | |
0.028605528000014147, | |
0.028484881999986555, | |
0.028399842999988323, | |
0.02864017300004207, | |
0.029520700000034594, | |
0.02798283000004176, | |
0.031484002000013334, | |
0.03197317699999758, | |
0.03119394899999861, | |
0.02743047899997464, | |
0.02714351299999862, | |
0.028884759999982634, | |
0.02832085500000403 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 34.3511307564082 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0542290379302673e-06, | |
"ram": 4.4061355000001764e-08, | |
"gpu": 0.0, | |
"total": 1.0982903929302686e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 910506.0068239083 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 13, | |
"total": 0.994253824999987, | |
"mean": 0.07648106346153746, | |
"stdev": 0.0032515038066005513, | |
"p50": 0.07515090300000793, | |
"p90": 0.08192981380002493, | |
"p95": 0.0825456231999965, | |
"p99": 0.08292924543996605, | |
"values": [ | |
0.07714477199999692, | |
0.07515090300000793, | |
0.07483810700000504, | |
0.07575853999998117, | |
0.07551517399997465, | |
0.07325420099999747, | |
0.08074531700003718, | |
0.08302515099995844, | |
0.08222593800002187, | |
0.07500976699998319, | |
0.07224853299999268, | |
0.07463676100002203, | |
0.0747006610000085 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 13.075131996600737 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |