IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
8ea21a3
verified
{ | |
"config": { | |
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.4.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": null, | |
"numactl": false, | |
"numactl_kwargs": {}, | |
"start_method": "spawn" | |
}, | |
"environment": { | |
"cpu": " AMD EPYC 7763 64-Core Processor", | |
"cpu_count": 4, | |
"cpu_ram_mb": 16766.767104, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-6.8.0-1014-azure-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.15", | |
"optimum_benchmark_version": "0.5.0", | |
"optimum_benchmark_commit": "d070104543478b722db56ba828611524c5fbdbb5", | |
"transformers_version": "4.45.1", | |
"transformers_commit": null, | |
"accelerate_version": "0.34.2", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.3", | |
"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": 1109.172224, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 4.930470970000044, | |
"mean": 4.930470970000044, | |
"stdev": 0.0, | |
"p50": 4.930470970000044, | |
"p90": 4.930470970000044, | |
"p95": 4.930470970000044, | |
"p99": 4.930470970000044, | |
"values": [ | |
4.930470970000044 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.853615408888882e-05, | |
"ram": 2.866258736320101e-06, | |
"gpu": 0, | |
"total": 7.140241282520892e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 962.895872, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.6410140039999987, | |
"mean": 0.04578671457142848, | |
"stdev": 0.0022030377673999, | |
"p50": 0.04651666050000358, | |
"p90": 0.04755746729996986, | |
"p95": 0.04768163854996601, | |
"p99": 0.04772126930999548, | |
"values": [ | |
0.0463459510000348, | |
0.04666958699999668, | |
0.047329975000025115, | |
0.0446261459999846, | |
0.047654963999946176, | |
0.04614441199998964, | |
0.04707965500000455, | |
0.04652367400001367, | |
0.04698606099998415, | |
0.045985484000027554, | |
0.047731177000002845, | |
0.04650964699999349, | |
0.04085434400002441, | |
0.04057292699997106 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 43.68079297063228 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.5875104653333668e-06, | |
"ram": 6.638263849855157e-08, | |
"gpu": 0.0, | |
"total": 1.6538931038319183e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1209267.996441961 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 963.682304, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.4007992340000328, | |
"mean": 0.02862851671428806, | |
"stdev": 0.0017407399860645877, | |
"p50": 0.02915036650000502, | |
"p90": 0.029978681999989477, | |
"p95": 0.030159876249965124, | |
"p99": 0.030353116049968206, | |
"values": [ | |
0.03040142599996898, | |
0.029417692000038187, | |
0.029012572999988606, | |
0.029859381000051144, | |
0.02980553000003283, | |
0.028902036000033604, | |
0.02909073000000717, | |
0.02921000300000287, | |
0.029020667999986927, | |
0.030029810999963047, | |
0.029415829000015492, | |
0.027117309999994177, | |
0.02473498399996288, | |
0.024781260999986898 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 34.93020647838577 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.531048579305815e-07, | |
"ram": 3.985449635108816e-08, | |
"gpu": 0.0, | |
"total": 9.929593542816694e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1007090.5678948198 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.39413804600008007, | |
"mean": 0.02815271757143429, | |
"stdev": 0.00167802867631015, | |
"p50": 0.02868628650003302, | |
"p90": 0.029441961500015167, | |
"p95": 0.029619975599987924, | |
"p99": 0.02980492711997215, | |
"values": [ | |
0.029851164999968205, | |
0.028900623000026826, | |
0.0285269929999572, | |
0.029309801000010793, | |
0.02931706400005396, | |
0.028423539000016262, | |
0.02863482500004011, | |
0.02873774800002593, | |
0.028511734000005617, | |
0.029495488999998543, | |
0.02887723899999628, | |
0.026732337999987976, | |
0.024401427999976022, | |
0.02441806000001634 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 35.52054956906433 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |