IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
a2ffe98
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", | |
"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.354496, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-6.5.0-1021-azure-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.14", | |
"optimum_benchmark_version": "0.2.1", | |
"optimum_benchmark_commit": "5e9beea10942a9d4b3bee05550004817630e3d7e", | |
"transformers_version": "4.41.0", | |
"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": "1.0.3", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 955.686912, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 13, | |
"total": 0.6316409749999252, | |
"mean": 0.048587767307686554, | |
"stdev": 0.0020453623775024367, | |
"p50": 0.04959141299997327, | |
"p90": 0.050212717800013705, | |
"p95": 0.05030110580000837, | |
"p99": 0.050357494759982725, | |
"values": [ | |
0.05000617300004251, | |
0.05025411500002974, | |
0.050047128999949564, | |
0.04983384299998761, | |
0.04783427799998208, | |
0.04905352299999777, | |
0.049327643000026455, | |
0.04959141299997327, | |
0.05037159199997632, | |
0.04969687799996336, | |
0.0458892440000227, | |
0.04631692999998904, | |
0.0434182139999848 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 41.16262406821071 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.6749868790308638e-06, | |
"ram": 6.999970397079854e-08, | |
"gpu": 0.0, | |
"total": 1.7449865830016623e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1146140.617631382 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 955.686912, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 13, | |
"total": 0.38924255900013804, | |
"mean": 0.029941735307702926, | |
"stdev": 0.001446514681541612, | |
"p50": 0.030516825999995945, | |
"p90": 0.03097372700002552, | |
"p95": 0.03128560020002169, | |
"p99": 0.031640494440011935, | |
"values": [ | |
0.030719160999979067, | |
0.029373530999976083, | |
0.03098985500002982, | |
0.030785023000021283, | |
0.030909215000008317, | |
0.030516825999995945, | |
0.02921459499998491, | |
0.029860506000034093, | |
0.031729218000009496, | |
0.030892453000035403, | |
0.027263892000007672, | |
0.03039169200002334, | |
0.026596592000032615 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 33.398197857381234 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.991020405734029e-07, | |
"ram": 4.1750833485195935e-08, | |
"gpu": 0.0, | |
"total": 1.0408528740585994e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 960750.577649556 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 12, | |
"total": 0.9405181589999643, | |
"mean": 0.07837651324999702, | |
"stdev": 0.003301421703867533, | |
"p50": 0.07955189400001927, | |
"p90": 0.08098435920000498, | |
"p95": 0.08147899295001082, | |
"p99": 0.08192913539001268, | |
"values": [ | |
0.07967351999997163, | |
0.08101862000000892, | |
0.08063941400001795, | |
0.07872141199999305, | |
0.07964803300001222, | |
0.07856301699996493, | |
0.07945575500002633, | |
0.08204167100001314, | |
0.08067601199996943, | |
0.07330637100000104, | |
0.07653828700000531, | |
0.07023604699998032 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 12.758924306957965 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |