IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
fe74246
verified
{ | |
"config": { | |
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.3.0+cpu", | |
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", | |
"task": "text-generation", | |
"model": "openai-community/gpt2", | |
"library": "transformers", | |
"device": "cpu", | |
"device_ids": null, | |
"seed": 42, | |
"inter_op_num_threads": null, | |
"intra_op_num_threads": null, | |
"hub_kwargs": { | |
"revision": "main", | |
"force_download": false, | |
"local_files_only": false, | |
"trust_remote_code": false | |
}, | |
"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", | |
"start_method": "spawn" | |
}, | |
"environment": { | |
"cpu": " AMD EPYC 7763 64-Core Processor", | |
"cpu_count": 4, | |
"cpu_ram_mb": 16757.346304, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-6.5.0-1018-azure-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.14", | |
"optimum_benchmark_version": "0.2.0", | |
"optimum_benchmark_commit": "b3690661eecec40c5905418f03e56991fd2bca89", | |
"transformers_version": "4.40.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.30.1", | |
"accelerate_commit": null, | |
"diffusers_version": "0.27.2", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "0.9.16", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 948.75648, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 11, | |
"total": 0.6621573779999892, | |
"mean": 0.06019612527272629, | |
"stdev": 0.0047213693368829855, | |
"p50": 0.05879166400001168, | |
"p90": 0.06171697599998538, | |
"p95": 0.06816258249999407, | |
"p99": 0.07331906770000103, | |
"values": [ | |
0.058658234999995784, | |
0.05694480599998997, | |
0.05879166400001168, | |
0.07460818900000277, | |
0.05989548900001296, | |
0.06171697599998538, | |
0.0589603390000093, | |
0.05789677299998175, | |
0.059302618000003804, | |
0.05758492199998955, | |
0.05779736700000626 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 33.22472984662622 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 2.097906564411364e-06, | |
"ram": 8.767284908593478e-08, | |
"gpu": 0.0, | |
"total": 2.185579413497299e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 915089.14645186 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 948.75648, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 11, | |
"total": 0.4097170200000164, | |
"mean": 0.03724700181818331, | |
"stdev": 0.0030677546415881396, | |
"p50": 0.03663920799999687, | |
"p90": 0.03975805199999627, | |
"p95": 0.04220559249999667, | |
"p99": 0.04416362489999699, | |
"values": [ | |
0.037110777999998845, | |
0.03428979000000254, | |
0.04465313299999707, | |
0.03975805199999627, | |
0.037975603000006686, | |
0.036602990000005775, | |
0.036265149000001884, | |
0.03872997300001657, | |
0.03663920799999687, | |
0.03557720399999198, | |
0.03211514000000193 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 26.847798512250137 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.3148290081563283e-06, | |
"ram": 5.495129231028326e-08, | |
"gpu": 0.0, | |
"total": 1.369780300466612e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 730044.0805429547 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 10, | |
"total": 0.976501987000006, | |
"mean": 0.0976501987000006, | |
"stdev": 0.006636779477446473, | |
"p50": 0.09629750500000966, | |
"p90": 0.10449747590000129, | |
"p95": 0.10944462245000465, | |
"p99": 0.11340233969000735, | |
"values": [ | |
0.0913180119999879, | |
0.10339811000000054, | |
0.11439176900000803, | |
0.09783349200000657, | |
0.09841052600000921, | |
0.09525892099998146, | |
0.09667086700000027, | |
0.09592414300001906, | |
0.09318656199999964, | |
0.09010958499999333 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 10.24063456411578 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |