IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
68b6e93
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": "b0a0b933f18d5fa56eadb290a26cc2099f2dd4d8", | |
"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": 947.67104, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 12, | |
"total": 0.6362601239999606, | |
"mean": 0.053021676999996714, | |
"stdev": 0.0009879796796853479, | |
"p50": 0.05330665149999447, | |
"p90": 0.054035152600016546, | |
"p95": 0.054086199050016145, | |
"p99": 0.054134867010011474, | |
"values": [ | |
0.05414703400001031, | |
0.05403642500002093, | |
0.05157386299998734, | |
0.05316608200001838, | |
0.05345428299997934, | |
0.05070891999997684, | |
0.053372851000005994, | |
0.05278962599999204, | |
0.053284173999998075, | |
0.05237403600000334, | |
0.05402370099997711, | |
0.05332912899999087 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 37.72042140425177 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.8332425392035284e-06, | |
"ram": 7.661293786705932e-08, | |
"gpu": 0.0, | |
"total": 1.909855477070588e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1047199.6567340684 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 947.67104, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 12, | |
"total": 0.39697931500001005, | |
"mean": 0.03308160958333417, | |
"stdev": 0.0006865410009691628, | |
"p50": 0.03313834499999757, | |
"p90": 0.03381396359999087, | |
"p95": 0.034019586199990216, | |
"p99": 0.034196957239990694, | |
"values": [ | |
0.032926583000005394, | |
0.03359598000000119, | |
0.03303443499999048, | |
0.03256758899999568, | |
0.03232157700000471, | |
0.03324225500000466, | |
0.03343429599999581, | |
0.0327964890000203, | |
0.034241299999990815, | |
0.033838183999989724, | |
0.033405552000004946, | |
0.031575075000006336 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 30.228275244012895 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0896824827097892e-06, | |
"ram": 4.553964979426669e-08, | |
"gpu": 0.0, | |
"total": 1.1352221325040545e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 880884.8694609365 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 11, | |
"total": 0.9463848640000094, | |
"mean": 0.0860349876363645, | |
"stdev": 0.0011781546398233853, | |
"p50": 0.08581834000000299, | |
"p90": 0.08754055299999663, | |
"p95": 0.08759233499999652, | |
"p99": 0.08763376059999643, | |
"values": [ | |
0.08764411699999641, | |
0.08462633300001698, | |
0.08574536300000091, | |
0.08581834000000299, | |
0.08396824700000138, | |
0.08685305199998083, | |
0.08559130400001891, | |
0.08754055299999663, | |
0.08622163699999419, | |
0.08742857199999321, | |
0.08494734600000697 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 11.623178284474223 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |