IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
b300f1c
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.4.0", | |
"optimum_benchmark_commit": "3e7bebdc507bc4e37dce5660074b7586de6b39b2", | |
"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": 1122.054144, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 4.8629198769999675, | |
"mean": 4.8629198769999675, | |
"stdev": 0.0, | |
"p50": 4.8629198769999675, | |
"p90": 4.8629198769999675, | |
"p95": 4.8629198769999675, | |
"p99": 4.8629198769999675, | |
"values": [ | |
4.8629198769999675 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.84105740653144e-05, | |
"ram": 2.8593950816866705e-06, | |
"gpu": 0, | |
"total": 7.126996914700107e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 975.532032, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.6452148300000431, | |
"mean": 0.04301432200000287, | |
"stdev": 0.0025467053337200137, | |
"p50": 0.04381685800001378, | |
"p90": 0.045459058000005825, | |
"p95": 0.04558387700000708, | |
"p99": 0.0456675354000015, | |
"values": [ | |
0.04301685199999383, | |
0.04553906000001007, | |
0.0456884500000001, | |
0.043512259000010545, | |
0.04533905499999946, | |
0.04493996000002198, | |
0.044405439000001934, | |
0.044776003000038145, | |
0.044671797999967566, | |
0.04381685800001378, | |
0.043606834999991406, | |
0.039279619000012644, | |
0.03912189400000443, | |
0.03903086399998301, | |
0.03846988399999418 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 46.49614144795462 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.5410803831540622e-06, | |
"ram": 6.44046018464031e-08, | |
"gpu": 0.0, | |
"total": 1.6054849850004652e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1245729.4952524395 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 976.318464, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.3967744990000597, | |
"mean": 0.026451633266670646, | |
"stdev": 0.001787957952556385, | |
"p50": 0.02737672000000657, | |
"p90": 0.028281494599991675, | |
"p95": 0.028349378800010074, | |
"p99": 0.028455770960015343, | |
"values": [ | |
0.02829238300000725, | |
0.02848236900001666, | |
0.02656584300001441, | |
0.027470545000028324, | |
0.027494169999954465, | |
0.027504679000003307, | |
0.02786685699999225, | |
0.028265161999968313, | |
0.02737672000000657, | |
0.027142001000015625, | |
0.025278875000026346, | |
0.023635140000010324, | |
0.02405518599999823, | |
0.02385666399999309, | |
0.02348790500002451 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 37.80484894518824 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.161490787807691e-07, | |
"ram": 3.828817535259294e-08, | |
"gpu": 0.0, | |
"total": 9.544372541333623e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1047737.8116469365 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.39059758400014744, | |
"mean": 0.026039838933343162, | |
"stdev": 0.001709995884018647, | |
"p50": 0.026901851000047827, | |
"p90": 0.02779896419999659, | |
"p95": 0.027884670600013806, | |
"p99": 0.027995814920026306, | |
"values": [ | |
0.02782512900000711, | |
0.02802360100002943, | |
0.026113425999994888, | |
0.027025031999983185, | |
0.02700104799998826, | |
0.027036533000000418, | |
0.02739210900000444, | |
0.02775971699998081, | |
0.026901851000047827, | |
0.02668748000002097, | |
0.02498179000002665, | |
0.023337824000009277, | |
0.02376935099999855, | |
0.023570198000015807, | |
0.023172495000039817 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 38.40269529161844 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |